Skip to contentSkip to conversation

os-prober incorrectly generates stanza - wrong root= device.

DISCUSSION Chris Jones 2 participants 3 messages Oct 28, 2009

lore
Share & tools
lore
#0 lore raw

While detecting other kernels, update-grub generates the following:

menuentry "Debian GNU/Linux, kernel 2.6.24-etchnhalf.1-686 (on /dev/sda12)" {                    
        insmod ext2                                                                              
        set root=(hd0,12)                                                                        
        search --no-floppy --fs-uuid --set 042b6b67-5464-426e-a60a-21b71dfbcb74                  
        linux /boot/vmlinuz-2.6.24-etchnhalf.1-686 root=/dev/hda5 ro                             
        initrd /boot/initrd.img-2.6.24-etchnhalf.1-686                                           
}                                                                                                
menuentry "Debian GNU/Linux, kernel 2.6.24-etchnhalf.1-686 (single-user mode) (on /dev/sda12)" { 
        insmod ext2                                                                              
        set root=(hd0,12)                                                                        
        search --no-floppy --fs-uuid --set 042b6b67-5464-426e-a60a-21b71dfbcb74                  
        linux /boot/vmlinuz-2.6.24-etchnhalf.1-686 root=/dev/hda5 ro single                      
        initrd /boot/initrd.img-2.6.24-etchnhalf.1-686                                           
}                                                                                                

/dev/sda12 is the correct partition, which is correctly reported in the menuentry and set root= statements, but not on the linux statement.

The result, when trying to boot these entries, is that another system which has its /root & /root/boot on /dev/sda5 is booted instead.

This happens with grub 1.97 as shipped by ubuntu 9.10.

Not sure this qualifies as a bug, or just incorrect setup my end.

Thanks,

CJ

#1 lore raw

Am Dienstag, den 27.10.2009, 23:23 -0400 schrieb Chris Jones:

Quoted 20 lines

While detecting other kernels, update-grub generates the following:

menuentry "Debian GNU/Linux, kernel 2.6.24-etchnhalf.1-686 (on /dev/sda12)" {                    
        insmod ext2                                                                              
        set root=(hd0,12)                                                                        
        search --no-floppy --fs-uuid --set 042b6b67-5464-426e-a60a-21b71dfbcb74                  
        linux /boot/vmlinuz-2.6.24-etchnhalf.1-686 root=/dev/hda5 ro                             
        initrd /boot/initrd.img-2.6.24-etchnhalf.1-686                                           
}                                                                                                
menuentry "Debian GNU/Linux, kernel 2.6.24-etchnhalf.1-686 (single-user mode) (on /dev/sda12)" { 
        insmod ext2                                                                              
        set root=(hd0,12)                                                                        
        search --no-floppy --fs-uuid --set 042b6b67-5464-426e-a60a-21b71dfbcb74                  
        linux /boot/vmlinuz-2.6.24-etchnhalf.1-686 root=/dev/hda5 ro single                      
        initrd /boot/initrd.img-2.6.24-etchnhalf.1-686                                           
}                                                                                                

/dev/sda12 is the correct partition, which is correctly reported in the menuentry and set root= statements, but not on the linux statement.

Quoted 7 lines

The result, when trying to boot these entries, is that another system which has its /root & /root/boot on /dev/sda5 is booted instead.

This happens with grub 1.97 as shipped by ubuntu 9.10.

Not sure this qualifies as a bug, or just incorrect setup my end.

os-prober is a seperate package. It has nothing to do with us, except that we call it to generate menuentries, if it's avaible.
It takes the root= value for the Linux kernel out of lilo.conf, menu.lst or grub.cfg depending what you have on that partition installed. So you have to change the bootloader configuration of your Debian etch.

Signature · 2 lines
Felix Zielcke
Proud Debian Maintainer and GNU GRUB developer
#2 lore raw
Quoted 1 line · Felix Zielcke

Am Dienstag, den 27.10.2009, 23:23 -0400 schrieb Chris Jones:

[..]

Quoted 8 lines
Quoted 2 lines

Not sure this qualifies as a bug, or just incorrect setup my end.

os-prober is a seperate package. It has nothing to do with us, except that we call it to generate menuentries, if it's avaible. It takes the root= value for the Linux kernel out of lilo.conf, menu.lst or grub.cfg depending what you have on that partition installed. So you have to change the bootloader configuration of your Debian etch.

Ouch..!

These legacy systems were restored from backups when moving to a larger hard drive and the grub-legacy configuration files are therefore obsolete.

Rather than changing these retired configuration files, I will remove os-prober and add my other systems manually to 40_custom.

Thanks much for prompt response.

CJ