Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers
Date: Mon, 30 Aug 2010 17:09:12
Message-Id: 201008301832.23227.alan.mckinnon@gmail.com
In Reply to: Re: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers by Paul Hartman
1 Apparently, though unproven, at 18:03 on Monday 30 August 2010, Paul Hartman
2 did opine thusly:
3
4 > On Fri, Aug 27, 2010 at 9:04 PM, Daniel Pielmeier <billie@g.o> wrote:
5 > > Nikos Chantziaras schrieb am 27.08.2010 18:06:
6 > >> On 08/27/2010 07:02 PM, J. Roeleveld wrote:
7 > >>> Actually, you can:
8 > >>> http://www.ibm.com/developerworks/linux/library/l-boot-rootfs/index.htm
9 > >>> l
10 > >>>
11 > >>> (Read the section below "Use a label"):
12 > >>>
13 > >>> fstab:
14 > >>> LABEL=ROOT / ext3 defaults 1 1
15 > >>> LABEL=BOOT /boot ext3 defaults 1 2
16 > >>> LABEL=SWAP swap swap defaults 0 0
17 > >>> LABEL=HOME /home ext3 nosuid,auto 1 2
18 > >>
19 > >> This syntax never worked here. Always resulted in an unbootable system.
20 > >> Only the /dev/disk/by-label/ syntax works reliably.
21 > >
22 > > Afaik if you are using GRUB LEGACY (0.97) and want to use LABEL/UUID in
23 > > your grub.conf/menu.lst you also need an initrd. I think with GRUB 2
24 > > (1.98) it is possible without. You don't need an initrd for LABEL/UUID
25 > > in /etc/fstab for both cases.
26 >
27 > FWIW I'm using sys-boot/grub-0.97-r10 with GPT, labeled partitions and
28 > no initrd. My kernel has EFI_PARTITION compiled in (no module).
29 >
30 > My fstab looks like this:
31 >
32 > LABEL=swap none swap sw 0 0
33 > LABEL=boot /boot ext2 defaults,noatime 1 2
34 > LABEL=root / ext4 defaults,noatime 0 1
35 > LABEL=home /home ext4 defaults,noatime 0 1
36 >
37 > My kernel boot commandline still specified root by device name
38 > /dev/sda2 but otherwise my system works normally so far. :)
39
40 Don't listen to nay-sayers. Your fstab will work just fine and there's nothing
41 wrong with it.
42
43 The LABEL= sysntax has also worked for years and years now on all grub-
44 supported filesystems that support volume labels. I don't know where a
45 previous poster got the idea from that it is not supported, or you need an
46 initrd - I have never used an initrd on Gentoo and have used that syntax since
47 forever.
48
49 Similar for claims of unreliability by someone else. The only cause I can
50 think of is using weird grub patches or some combination of insane flags.
51
52
53 --
54 alan dot mckinnon at gmail dot com

Replies