Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > alt.os.linux > #54374

Re: mounting disks by label instead of UUID

From Chris Elvidge <chris@mshome.net>
Newsgroups alt.os.linux
Subject Re: mounting disks by label instead of UUID
Date 2019-03-09 10:20 +0000
Organization A noiseless patient Spider
Message-ID <q6041j$kms$1@dont-email.me> (permalink)
References <d3e5603c-4550-4b5b-917c-544cc006efce@googlegroups.com> <slrnq872lo.55k.BitTwister@wb.home.test>

Show all headers | View raw


On 09/03/2019 09:43, Bit Twister wrote:
> On Sat, 9 Mar 2019 00:31:24 -0800 (PST), conrrrod@gmail.com wrote:
>> I like to use labelled partitions, so I can clone disks.
> 
> Yup, I use them, even swap.
> Works great as long as no two partitions have the same label.
> I have a usb hard drive I use for off system backup.
> I had the same partition names and as soon as the drive came up the
> current / partition was mounted on top of the system /.  :-(
> 
> Had to shutdown the system, boot a rescue cd, added _bkup to partitions
> on usb drive then could go back to having both system and usb drive
> mounted when I do backups.
> 
>> So when I install
>> linux, I have to drill down to the options to label them, otherwise one
>> gets the UUID crap or even worse the by-id model_serial in Suse Enterprise.
> 
> Sounds like Mageia Linux which I use. During install I have to do custom
> partitioning, then set label on each partition.
> 
>> 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?
> 
> Yes. Just not sure if you would need to run dracut -f to rebuild
> initrd/vmlinuz files.
> 
>> Second issue: when you update and get a new kernel, grub.conf will be
>> modified, and does that revert back to the UUID method?
> 
> Do not know about Suse, but I guess you will have to do it one way
> or another.
> 
> Since I do not enter all my partitions during install, I wrote a script
> to automagically change all UUIDs to LABEL in /etc/fstab.
> 
> As for grub2, I dropped my own script into /etc/grub.d which creates
> menu selections and boot selections which use partition labels.
> 

While you might find using labels easier for fstab (I do, too), you 
should leave grub to use UUIDs - they are unique after all. And 
actually, why do you care what grub-mkconfig puts in grub.cfg? Two 
partitions with the same label can confuse things, especially at boot.

OP: Why do you think using labels makes it easier to clone disks?

-- 

Chris Elvidge, England

Back to alt.os.linux | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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