Gentoo Archives: gentoo-user

From: Daniel Pielmeier <billie@g.o>
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 19:05:05
Message-Id: 4C7BF645.4030704@gentoo.org
In Reply to: Re: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers by Alan McKinnon
1 Alan McKinnon schrieb am 30.08.2010 18:32:
2 > Apparently, though unproven, at 18:03 on Monday 30 August 2010, Paul Hartman
3 > did opine thusly:
4 >
5 >> On Fri, Aug 27, 2010 at 9:04 PM, Daniel Pielmeier <billie@g.o> wrote:
6 >>> Afaik if you are using GRUB LEGACY (0.97) and want to use LABEL/UUID in
7 >>> your grub.conf/menu.lst you also need an initrd. I think with GRUB 2
8 >>> (1.98) it is possible without. You don't need an initrd for LABEL/UUID
9 >>> in /etc/fstab for both cases.
10 >>
11 >> FWIW I'm using sys-boot/grub-0.97-r10 with GPT, labeled partitions and
12 >> no initrd. My kernel has EFI_PARTITION compiled in (no module).
13 >>
14 >> My fstab looks like this:
15 >>
16 >> LABEL=swap none swap sw 0 0
17 >> LABEL=boot /boot ext2 defaults,noatime 1 2
18 >> LABEL=root / ext4 defaults,noatime 0 1
19 >> LABEL=home /home ext4 defaults,noatime 0 1
20 >>
21 >> My kernel boot commandline still specified root by device name
22 >> /dev/sda2 but otherwise my system works normally so far. :)
23 >
24 > Don't listen to nay-sayers. Your fstab will work just fine and there's nothing
25 > wrong with it.
26 >
27 > The LABEL= sysntax has also worked for years and years now on all grub-
28 > supported filesystems that support volume labels. I don't know where a
29 > previous poster got the idea from that it is not supported, or you need an
30 > initrd - I have never used an initrd on Gentoo and have used that syntax since
31 > forever.
32 >
33 > Similar for claims of unreliability by someone else. The only cause I can
34 > think of is using weird grub patches or some combination of insane flags.
35
36 If you are referring to my post please read again my statements. I am
37 not a native speaker so I probably did not make this clear.
38
39 I did not say that LABEL/UUID does not work within /etc/fstab.
40 Specifying the root device by using the LABEL/UUID syntax in
41 grub.conf/menu.lst however wont work without a proper initrd.
42
43 I must confess I did not test it before but I was sure it does not work.
44 I did some tests now (with sys-boot/grub-0.97-r10) and only the
45 following syntax for the grub.conf kernel command-lines works.
46
47 kernel /boot/kernel/kernel-2.6.35-gentoo-r4 root=/dev/sda3
48
49 All the others below need an initrd if you use GRUB LEGACY. Also the
50 GRUB LEGACY manual [1] does not mention LABEL or UUID at all. With GRUB
51 2 it will probably work by using the --search menu entry [1].
52
53 kernel /boot/kernel/kernel-2.6.35-gentoo-r4 root=LABEL=root
54 kernel /boot/kernel/kernel-2.6.35-gentoo-r4 root=/dev/disk/by-label/root
55 kernel /boot/kernel/kernel-2.6.35-gentoo-r4
56 root=/dev/disk/by-uuid/ab24cad5-ae0b-45d7-82f4-68357d5b6ff4
57
58 [1] http://www.gnu.org/software/grub/manual/legacy/grub.html
59 [2] http://www.gnu.org/software/grub/manual/grub.html#search
60
61 --
62 Daniel Pielmeier

Attachments

File name MIME type
signature.asc application/pgp-signature