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


Groups > alt.os.linux > #54376

Re: mounting disks by label instead of UUID

From "Carlos E.R." <robin_listas@es.invalid>
Newsgroups alt.os.linux
Subject Re: mounting disks by label instead of UUID
Date 2019-03-09 13:11 +0100
Message-ID <c5nclf-2td.ln1@Telcontar.valinor> (permalink)
References <d3e5603c-4550-4b5b-917c-544cc006efce@googlegroups.com>

Show all headers | View raw


On 09/03/2019 09.31, conrrrod@gmail.com wrote:
> I like to use labelled partitions, so I can clone disks. 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.
> 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?

After you create the labels somehow, you edit /etc/fstab, yes. That's
the manual way.

Or you can use the YaST partitioner module.


But you don't edit "/boot/grub.conf" manually. Well, in openSUSE it
doesn't even exist. There is "/boot/grub2/grub.cfg", and you never edit
it manually because changes are lost on next update.

What we do is edit "/etc/default/grub", and then do what the comment in
it says:

# If you change this file, run 'grub2-mkconfig -o /boot/grub2/grub.cfg'
afterwards to update
# /boot/grub2/grub.cfg.

You also need to run "mkinitrd" to apply changes in fstab.

> Second issue: when you update and get a new kernel, grub.conf will be
> modified, and does that revert back to the UUID method?

See my above comment.


Isengard:~ # locate grub.conf
Isengard:~ #


-- 
Cheers, Carlos.

Back to alt.os.linux | Previous | Next — Previous 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