1 |
On Fri, Aug 27, 2010 at 9:04 PM, Daniel Pielmeier <billie@g.o> wrote: |
2 |
> Nikos Chantziaras schrieb am 27.08.2010 18:06: |
3 |
>> On 08/27/2010 07:02 PM, J. Roeleveld wrote: |
4 |
>>> |
5 |
>>> Actually, you can: |
6 |
>>> http://www.ibm.com/developerworks/linux/library/l-boot-rootfs/index.html |
7 |
>>> |
8 |
>>> (Read the section below "Use a label"): |
9 |
>>> |
10 |
>>> fstab: |
11 |
>>> LABEL=ROOT / ext3 defaults 1 1 |
12 |
>>> LABEL=BOOT /boot ext3 defaults 1 2 |
13 |
>>> LABEL=SWAP swap swap defaults 0 0 |
14 |
>>> LABEL=HOME /home ext3 nosuid,auto 1 2 |
15 |
>> |
16 |
>> This syntax never worked here. Always resulted in an unbootable system. |
17 |
>> Only the /dev/disk/by-label/ syntax works reliably. |
18 |
>> |
19 |
> |
20 |
> Afaik if you are using GRUB LEGACY (0.97) and want to use LABEL/UUID in |
21 |
> your grub.conf/menu.lst you also need an initrd. I think with GRUB 2 |
22 |
> (1.98) it is possible without. You don't need an initrd for LABEL/UUID |
23 |
> in /etc/fstab for both cases. |
24 |
|
25 |
FWIW I'm using sys-boot/grub-0.97-r10 with GPT, labeled partitions and |
26 |
no initrd. My kernel has EFI_PARTITION compiled in (no module). |
27 |
|
28 |
My fstab looks like this: |
29 |
|
30 |
LABEL=swap none swap sw 0 0 |
31 |
LABEL=boot /boot ext2 defaults,noatime 1 2 |
32 |
LABEL=root / ext4 defaults,noatime 0 1 |
33 |
LABEL=home /home ext4 defaults,noatime 0 1 |
34 |
|
35 |
My kernel boot commandline still specified root by device name |
36 |
/dev/sda2 but otherwise my system works normally so far. :) |