From: Rahul on
Bit Twister <BitTwister(a)mouse-potato.com> wrote in
news:slrnhtk28t.6i2.BitTwister(a)cooker.home.test:

> Yep, I set mine up to run labels. Running with /dev/xxxx can have
> fstab problems when dinking around with partition/mount order.
>
> UUID is pretty static until you reformat and forget to set old UUID. :-(
>

blkid gives me:

blkid
/dev/mapper/VolGroup00-LogVol01: TYPE="swap"
/dev/mapper/VolGroup00-LogVol00: UUID="a761cfce-afe3-468a-b6fd-
ce0bb28b6a7a" TYPE="ext3"
/dev/sda1: LABEL="/boot" UUID="3fc6f861-15f9-4260-b404-86dd14368f95"
TYPE="ext3"
/dev/sda2: TYPE="swap"
/dev/sdb1: UUID="faeccc9c-6824-4f20-b425-d08a62e1d95f" TYPE="ext3"
/dev/VolGroup00/LogVol01: TYPE="swap"
/dev/VolGroup00/LogVol00: UUID="a761cfce-afe3-468a-b6fd-ce0bb28b6a7a"
SEC_TYPE="ext2" TYPE="ext3"


Would I have been better off using the UUID's in grub? Although grub itself
doesn't know them I think. But I can use them on the kernel lines that are
passed as linux options. On the other hand I can use LABEL's too in that
context.

Are there any pros and cons of using LABELs versus UUIDs in various
contexts?

--
Rahul
From: Bit Twister on
On Fri, 30 Apr 2010 00:17:30 +0000 (UTC), Rahul wrote:


> Are there any pros and cons of using LABELs versus UUIDs in various
> contexts?

Like I said, if you have to reformat after a crash, before restoring backup,
you need to set reformatted partition's UUID same as value used/seen
in /etc/fstab and/or in grub's menu.lst. Otherwise you have to edit
the files to set new UUID values.


From: Robert Heller on
At Thu, 29 Apr 2010 23:51:11 +0000 (UTC) Rahul <nospam(a)nospam.invalid> wrote:

>
> Robert Heller <heller(a)deepsoft.com> wrote in news:G-
> mdnWtRPso8kUfWnZ2dnUVZ_hmdnZ2d(a)posted.localnet:
>
> > You don't have to worry about the LVM volumns 'moving around' because
> > of device discovery order -- the volumn group works like a e[234]fs
> > LABEL. You should be using LABEL= for all file systems on 'bare' on bare
> > partititions (eg /dev/sd<mumble>1 for /boot). (You *can* use LABEL= for
> > file systems on LVM volumns, but you don't *have* to.)
> >
>
> But there is no way to teach grub to use LABELs or Logvols, right?

No. Grub is stuck with what the BIOS understands. Grub is one up on
LILO: grub understands what the ext2 file system is all about. LILO
only knows about sector addresses (either CHS or LBA). To understand
LABEL= and LVM requires the linux kernel itself, which is what grub or
lilo need to find and load into memory. It is quite literally a
bootstrapping process, hence the name: grub (and lilo) are boot[strap]
loaders...



>

--
Robert Heller -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software -- Linux Installation and Administration
http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
heller(a)deepsoft.com -- Contract Programming: C/C++, Tcl/Tk


From: Robert Heller on
At Fri, 30 Apr 2010 00:17:30 +0000 (UTC) Rahul <nospam(a)nospam.invalid> wrote:

>
> Bit Twister <BitTwister(a)mouse-potato.com> wrote in
> news:slrnhtk28t.6i2.BitTwister(a)cooker.home.test:
>
> > Yep, I set mine up to run labels. Running with /dev/xxxx can have
> > fstab problems when dinking around with partition/mount order.
> >
> > UUID is pretty static until you reformat and forget to set old UUID. :-(
> >
>
> blkid gives me:
>
> blkid
> /dev/mapper/VolGroup00-LogVol01: TYPE="swap"
> /dev/mapper/VolGroup00-LogVol00: UUID="a761cfce-afe3-468a-b6fd-
> ce0bb28b6a7a" TYPE="ext3"
> /dev/sda1: LABEL="/boot" UUID="3fc6f861-15f9-4260-b404-86dd14368f95"
> TYPE="ext3"
> /dev/sda2: TYPE="swap"
> /dev/sdb1: UUID="faeccc9c-6824-4f20-b425-d08a62e1d95f" TYPE="ext3"
> /dev/VolGroup00/LogVol01: TYPE="swap"
> /dev/VolGroup00/LogVol00: UUID="a761cfce-afe3-468a-b6fd-ce0bb28b6a7a"
> SEC_TYPE="ext2" TYPE="ext3"
>
>
> Would I have been better off using the UUID's in grub? Although grub itself
> doesn't know them I think. But I can use them on the kernel lines that are
> passed as linux options. On the other hand I can use LABEL's too in that
> context.
>
> Are there any pros and cons of using LABELs versus UUIDs in various
> contexts?

LABELs are more 'human friendly' -- you can set them to something you
will remember and understand. UUID are machine generated sequences that
have no appearent meaning.

>

--
Robert Heller -- Get the Deepwoods Software FireFox Toolbar!
Deepwoods Software -- Linux Installation and Administration
http://www.deepsoft.com/ -- Web Hosting, with CGI and Database
heller(a)deepsoft.com -- Contract Programming: C/C++, Tcl/Tk


From: Rahul on
Robert Heller <heller(a)deepsoft.com> wrote in
news:NMydne_fjOuAq0fWnZ2dnUVZ_oGdnZ2d(a)posted.localnet:

> LABELs are more 'human friendly' -- you can set them to something you
> will remember and understand. UUID are machine generated sequences that
> have no appearent meaning.
>

Ah ok, thanks! I thought there was something "permanant" about a uuid. Some
kind of unique drive<->uuid mapping. Like a MAC address.

--
Rahul