Bug#470136: grub-pc: upgrade-from-grub-legacy left system unbootable

Sam Morris sam at robots.org.uk
Sun Mar 9 10:16:16 UTC 2008


Package: grub-pc
Version: 1.96+20080228-1
Severity: grave

The upgrade-from-grub-legacy left me with a system that would not boot.
Instead, I got (something like) an invalid device error. When I ran
'set', I saw that root was set to '(fd0)' and prefix to (I think)
'(fd0)/boot/grub'... despite the fact that this system has no floppy
drive!

Setting prefix to '(md0)/boot/grub', loading the normal module and then
issuing the normal command allows me to boot up.

-- Package-specific info:

*********************** BEGIN 
/dev/md0 / ext3 rw,relatime,errors=remount-ro,user_xattr,acl,data=ordered 0 0
/dev/md0 /dev/.static/dev ext3 rw,errors=remount-ro,user_xattr,acl,data=ordered 0 0
/dev/hdd /media/dvdrom iso9660 ro,nosuid,nodev,noexec 0 0
/dev/hdc /media/dvdrw udf ro,nosuid,nodev,noexec 0 0
*********************** END 

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/hda
(hd1)	/dev/hdb
(hd2)	/dev/hde
(hd3)	/dev/hdg
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/update-grub using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
insmod raid
set default=0
set timeout=5
set root=(md0)
if font (md0)/usr/share/grub/unicode.pff ; then
  set gfxmode=640x480
  insmod gfxterm
  insmod vbe
  terminal gfxterm
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
insmod png
if background_image (md0)/usr/share/images/desktop-base/debian-blueish-wallpaper-640x480.png ; then
  set color_normal=black/black
  set color_highlight=magenta/black
else
  set menu_color_normal=cyan/blue
  set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_hurd ###
### END /etc/grub.d/10_hurd ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, linux 2.6.24-1-686" {
	linux	(md0)/boot/vmlinuz-2.6.24-1-686 root=/dev/md0 ro vga=0x318 noresume quiet
	initrd	(md0)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode)" {
	linux	(md0)/boot/vmlinuz-2.6.24-1-686 root=/dev/md0 ro single vga=0x318 noresume quiet
	initrd	(md0)/boot/initrd.img-2.6.24-1-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
	linux	(md0)/boot/memtest86+.bin
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/mbr ###
menuentry "Restart boot sequence" {
	chainloader (hd0)+1
}
### END /etc/grub.d/mbr ###

### BEGIN /etc/grub.d/windows ###
menuentry "Windows XP" {
	chainloader (hd0,1)+1
}
### END /etc/grub.d/windows ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (530, 'testing'), (520, 'unstable'), (510, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]    1.5.19          Debian configuration management sy
ii  grub-common              1.96+20080228-1 GRand Unified Bootloader, version 
ii  libc6                    2.7-6           GNU C Library: Shared libraries
ii  liblzo1                  1.08-3          data compression library (old vers
ii  libncurses5              5.6+20080203-1  Shared libraries for terminal hand

grub-pc recommends no packages.

-- debconf information:
  grub-pc/linux_cmdline:
* grub-pc/chainload_from_menu.lst: true





More information about the Pkg-grub-devel mailing list