Gentoo Archives: gentoo-user

From: Bill Longman <bill.longman@×××××.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 20:05:10
Message-Id: AANLkTi=6jtVSr9SxYnPdJqTJ_Be0fkkWqtwzPBh36-3r@mail.gmail.com
In Reply to: Re: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers by Dale
1 On Mon, Aug 30, 2010 at 10:54 AM, Dale <rdalek1967@×××××.com> wrote:
2
3 > Alan McKinnon wrote:
4 >
5 >> Apparently, though unproven, at 18:03 on Monday 30 August 2010, Paul
6 >> Hartman
7 >> did opine thusly:
8 >>
9 >>
10 >>
11 >>> On Fri, Aug 27, 2010 at 9:04 PM, Daniel Pielmeier<billie@g.o>
12 >>> wrote:
13 >>>
14 >>>
15 >>>> Nikos Chantziaras schrieb am 27.08.2010 18:06:
16 >>>>
17 >>>>
18 >>>>> On 08/27/2010 07:02 PM, J. Roeleveld wrote:
19 >>>>>
20 >>>>>
21 >>>>>> Actually, you can:
22 >>>>>>
23 >>>>>> http://www.ibm.com/developerworks/linux/library/l-boot-rootfs/index.htm
24 >>>>>> l
25 >>>>>>
26 >>>>>> (Read the section below "Use a label"):
27 >>>>>>
28 >>>>>> fstab:
29 >>>>>> LABEL=ROOT / ext3 defaults 1 1
30 >>>>>> LABEL=BOOT /boot ext3 defaults 1 2
31 >>>>>> LABEL=SWAP swap swap defaults 0 0
32 >>>>>> LABEL=HOME /home ext3 nosuid,auto 1 2
33 >>>>>>
34 >>>>>>
35 >>>>> This syntax never worked here. Always resulted in an unbootable
36 >>>>> system.
37 >>>>> Only the /dev/disk/by-label/ syntax works reliably.
38 >>>>>
39 >>>>>
40 >>>> Afaik if you are using GRUB LEGACY (0.97) and want to use LABEL/UUID in
41 >>>> your grub.conf/menu.lst you also need an initrd. I think with GRUB 2
42 >>>> (1.98) it is possible without. You don't need an initrd for LABEL/UUID
43 >>>> in /etc/fstab for both cases.
44 >>>>
45 >>>>
46 >>> FWIW I'm using sys-boot/grub-0.97-r10 with GPT, labeled partitions and
47 >>> no initrd. My kernel has EFI_PARTITION compiled in (no module).
48 >>>
49 >>> My fstab looks like this:
50 >>>
51 >>> LABEL=swap none swap sw 0 0
52 >>> LABEL=boot /boot ext2 defaults,noatime 1 2
53 >>> LABEL=root / ext4 defaults,noatime 0 1
54 >>> LABEL=home /home ext4 defaults,noatime 0 1
55 >>>
56 >>> My kernel boot commandline still specified root by device name
57 >>> /dev/sda2 but otherwise my system works normally so far. :)
58 >>>
59 >>>
60 >> Don't listen to nay-sayers. Your fstab will work just fine and there's
61 >> nothing
62 >> wrong with it.
63 >>
64 >> The LABEL= sysntax has also worked for years and years now on all grub-
65 >> supported filesystems that support volume labels. I don't know where a
66 >> previous poster got the idea from that it is not supported, or you need an
67 >> initrd - I have never used an initrd on Gentoo and have used that syntax
68 >> since
69 >> forever.
70 >>
71 >> Similar for claims of unreliability by someone else. The only cause I can
72 >> think of is using weird grub patches or some combination of insane flags.
73 >>
74 >>
75 >>
76 >
77 > So I don't have to have the complete path in fstab like this:
78 >
79 > /dev/disk/by-label/boot /boot ext2 noatime 1 2
80 > /dev/disk/by-label/root / reiserfs defaults 0 1
81 > /dev/disk/by-label/swap none swap sw 0 0
82 > /dev/disk/by-label/portage /usr/portage ext3 defaults 0 1
83 > /dev/disk/by-label/home /home reiserfs defaults 1 1
84 >
85 > Can you post a grub.conf file that uses labels? Sort of a example to look
86 > at and go by.
87 >
88
89 Dale, there are two examples of fstabs in this message (actually three). But
90 you only want to see those you didn't write. You just need to put
91 "LABEL=somelabel" in the first column.
92
93 --
94 Bill Longman

Replies

Subject Author
Re: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers Dale <rdalek1967@×××××.com>