Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux > #54375
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Newsgroups | alt.os.linux |
| Subject | Re: mounting disks by label instead of UUID |
| Date | 2019-03-09 12:21 +0100 |
| Message-ID | <gehlteFmto9U1@mid.individual.net> (permalink) |
| References | <d3e5603c-4550-4b5b-917c-544cc006efce@googlegroups.com> |
On 3/9/19 9:31 AM, conrrrod@gmail.com wrote: > I like to use labelled partitions, so I can clone disks. The label will also be cloned, you will need to change the label of the clone or else that one may be mounted instead of the original. So why not change the UUID on the clone? After you cloned the partition just run tune2fs /dev/sdYX -U random where Y is the letter your or drive and X is the partition number, keep in mind to have your clone unmounted during this process. To figure out UUID you can use blkid: blkid | grep UUID | grep sdYX > So if linux was not installed with the label option, do you only have to > edit /etc/fstab and /boot/grub.conf to use the labels? In some cases (specially older versions of Linux distributions) grub may not have support for LABEL/UUID, which could make booting to fail. Of course you have to ensure that you have a label on the disk before you change fstab or grub.conf. Don't forget to regenerate your initramfs image after you changed your fstab, regardless if you use LABEL or UUID. > Second issue: when you update and get a new kernel, grub.conf will be > modified, and does that revert back to the UUID method? Depends on your /etc/default/grub and your distributions script in /etc/grub.d/ for generating boot options for Linux (most often 10_linux). -- //Aho
Back to alt.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
mounting disks by label instead of UUID conrrrod@gmail.com - 2019-03-09 00:31 -0800
Re: mounting disks by label instead of UUID Bit Twister <BitTwister@mouse-potato.com> - 2019-03-09 03:43 -0600
Re: mounting disks by label instead of UUID Chris Elvidge <chris@mshome.net> - 2019-03-09 10:20 +0000
Re: mounting disks by label instead of UUID Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-03-11 21:40 +0100
Re: mounting disks by label instead of UUID "Carlos E.R." <robin_listas@es.invalid> - 2019-03-11 22:02 +0100
Re: mounting disks by label instead of UUID Jasen Betts <jasen@xnet.co.nz> - 2019-03-12 08:14 +0000
Re: mounting disks by label instead of UUID "J.O. Aho" <user@example.net> - 2019-03-11 22:17 +0100
Re: mounting disks by label instead of UUID Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-03-11 22:39 +0100
Re: mounting disks by label instead of UUID "J.O. Aho" <user@example.net> - 2019-03-11 23:26 +0100
Re: mounting disks by label instead of UUID "David W. Hodgins" <dwhodgins@nomail.afraid.org> - 2019-03-11 18:45 -0400
Re: mounting disks by label instead of UUID "J.O. Aho" <user@example.net> - 2019-03-09 12:21 +0100
Re: mounting disks by label instead of UUID Pascal Hambourg <pascal@plouf.fr.eu.org> - 2019-03-11 21:50 +0100
Re: mounting disks by label instead of UUID "J.O. Aho" <user@example.net> - 2019-03-11 22:12 +0100
Re: mounting disks by label instead of UUID Eric Pozharski <whynot@pozharski.name> - 2019-03-12 13:30 +0200
Re: mounting disks by label instead of UUID "Carlos E.R." <robin_listas@es.invalid> - 2019-03-09 13:11 +0100
csiph-web