1 |
On 27 Aug 2010, at 17:06, Nikos Chantziaras wrote: |
2 |
|
3 |
> On 08/27/2010 07:02 PM, J. Roeleveld wrote: |
4 |
>> On Friday 27 August 2010 17:57:01 Bill Longman wrote: |
5 |
>>> On 08/27/2010 01:10 AM, J. Roeleveld wrote: |
6 |
>>>> On Friday 27 August 2010 09:49:41 Nikos Chantziaras wrote: |
7 |
>>>>> Anyway, make sure you have a bootable Linux CD/DVD handy. That |
8 |
>>>>> way, you |
9 |
>>>>> won't be able to blow anything up and can boot from it in order to |
10 |
>>>>> change your /etc/fstab and grub conf. |
11 |
>>>> |
12 |
>>>> Alternatively, give your partitions Labels and reconfigure /etc/ |
13 |
>>>> fstab to |
14 |
>>>> use those. |
15 |
>>>> Then you don't have to worry about the changes to the device-names. |
16 |
>>> |
17 |
>>> I second Joost's recommendation. I don't think you can use labels |
18 |
>>> on the |
19 |
>>> kernel command line, so your grub will have to know for sure which |
20 |
>>> device to boot. |
21 |
>> |
22 |
>> Actually, you can: |
23 |
>> http://www.ibm.com/developerworks/linux/library/l-boot-rootfs/index.html |
24 |
>> |
25 |
>> (Read the section below "Use a label"): |
26 |
>> |
27 |
>> fstab: |
28 |
>> LABEL=ROOT / ext3 defaults 1 1 |
29 |
>> LABEL=BOOT /boot ext3 defaults 1 2 |
30 |
>> LABEL=SWAP swap swap defaults 0 0 |
31 |
>> LABEL=HOME /home ext3 nosuid,auto 1 2 |
32 |
> |
33 |
> This syntax never worked here. Always resulted in an unbootable |
34 |
> system. Only the /dev/disk/by-label/ syntax works reliably. |
35 |
|
36 |
Because you need to use the `root=/dev/sdaX` format in GRUB? |
37 |
|
38 |
I think an appropriate initrd/initramfs is required - I'm not sure if |
39 |
there are any other requirements - to use labels in GRUB. I think it's |
40 |
common to do things this way on RedHat systems, maybe with some other |
41 |
distros - that's what fouled me up when I tried using labels in GRUB; |
42 |
I just found grub.conf examples using them, and was unaware of this |
43 |
requirement. |
44 |
|
45 |
|
46 |
Stroller. |