Hi, I had to reorganise my partitions and it was necessary to copy my root partition and then delete the original (I won't bore you with the reasons for this). This meant that the device id for the root partition changed (/dev/sda1 to /dev/sda2 or something similar).
To make it easier in future I now refer to all my partitions by volume label instead of by number. This has the advantage of making the menu.lst and fstab (in Linux) more easily human-readable. Unfortunately it seems that the following statements in menu.lst will not work
groot=LABEL=mylabel root LABEL=mylabel
and at boot grub gives Error 11: Unrecognized device string
This is rather odd because the following statements (from menu.lst) work correctly
kopt=root=LABEL=ubuntu8-04 ro kernel /boot/vmlinuz-2.6.24-20-generic root=LABEL=ubuntu8-04 ro quiet splash
so I have had to change these to groot=(hd0,3) root (hd0,3)
Is there any way I can make these work with labels instead of numbers? I have attached an extract from menu.lst below and fstab below.
Kind regards, Jonathan Ellis
---------- Extract from menu.lst ---------------------
## ## Start Default Options ## ## default kernel options ## default kernel options for automagic boot options ## If you want special options for specific kernels use kopt_x_y_z ## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro ## kopt_2_6_8=root=/dev/hdc1 ro ## kopt_2_6_8_2_686=root=/dev/hdc2 ro # kopt=root=LABEL=ubuntu8-04 ro
####### Irrelevant lines deleted in this email for clarity ######
## default grub root device ## e.g. groot=(hd0,0) # groot=(hd0,3)
####### Irrelevant lines deleted in this email for clarity ######