Gentoo Archives: gentoo-user

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