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 ######

## ## End Default Options ##

title        Ubuntu 8.04.1, kernel 2.6.24-20-generic
root        (hd0,3)
kernel        /boot/vmlinuz-2.6.24-20-generic root=LABEL=ubuntu8-04 ro quiet
splash
initrd        /boot/initrd.img-2.6.24-20-generic
quiet

####### Irrelevant lines deleted in this email for clarity ######

----------------- Linux fstab file -----------------------

# /etc/fstab: static file system information.
#
# <file system>     <mount point>           <type>      <options>
    <dump>  <pass>
proc                /proc                   proc        defaults
    0    0
LABEL=ubuntu8-04    /                ext3
relatime,errors=remount-ro    0    1
LABEL=grub        /boot/grub            ext3        nodev,nosuid
0    2
LABEL=home        /home                ext3        nodev,nosuid
0    2
LABEL=swap2        none                    swap        sw
    0    0

LABEL=extraspace    /media/extraspace        ext3        nodev,nosuid
        0    2
LABEL=spare        /media/spare            ext3        nodev,nosuid
    0    2
LABEL=winxp        /mnt/winxp            ntfs        nodev,nosuid
    0     2

/dev/scd0           /media/cdrom0           udf,iso9660
user,noauto,exec,utf8        0    0
/dev/fd0            /media/floppy0          auto
rw,user,noauto,exec,utf8    0    0
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to