Bug#487198: grub-pc: update-grub does not put hard drives in the linux command by default
William Thomas Orr
ay1244 at gmail.com
Fri Jun 20 05:06:44 UTC 2008
Package: grub-pc
Version: 1.96+20080617-1
Severity: important
I updated grub using apt, and then in the post-inst it ran update-grub
like it was supposed to. I rebooted later, after building a new
kernel, and Grub repeatedly coyldn't find my kernel. I popped into a
command line and messed around before I realized that it listed the
kernel at /vmlinuz-2.6.25-arctor-1.8 rather than
(hd1,1)/vmlinuz-2.6.25-arctor-1.8 like it should've. Sure enough, I
made the change and it could find the kernel and it booted properly.
After booting, I ran deleted my grub.cfg and ran update-grub again (after making
sure I was running the latest version). Again, it left out the
(hd1,1) that it needs to find my kernel.
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/root / ext3 rw,errors=remount-ro,data=ordered 0 0
/dev/root /dev/.static/dev ext3 rw,errors=remount-ro,data=ordered 0 0
/dev/sdb1 /boot ext3 rw,errors=continue,data=ordered 0 0
/dev/sdb6 /home ext3 rw,errors=continue,data=ordered 0 0
/dev/sda1 /media/windows ntfs ro,uid=0,gid=0,fmask=0177,dmask=077,nls=iso8859-1,errors=continue,mft_zone_multiplier=1 0 0
/dev/sdb6 /opt/debian-386/home ext3 rw,errors=continue,data=ordered 0 0
/dev/root /opt/debian-386/tmp ext3 rw,errors=remount-ro,data=ordered 0 0
/dev/root /var/lib/schroot/mount/sid32-dddb042f-0f65-41ee-bfe9-389d81c40db5 ext3 rw,errors=remount-ro,data=ordered 0 0
/dev/sdb6 /var/lib/schroot/mount/sid32-dddb042f-0f65-41ee-bfe9-389d81c40db5/home ext3 rw,errors=continue,data=ordered 0 0
/dev/root /var/lib/schroot/mount/sid32-dddb042f-0f65-41ee-bfe9-389d81c40db5/tmp ext3 rw,errors=remount-ro,data=ordered 0 0
/dev/sdd1 /media/usbdisk ext3 rw,nosuid,nodev,noexec,errors=continue,data=ordered 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
*********************** 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 ###
set default=0
set timeout=5
set root=(hd1,5)
search --fs-uuid --set ba34c64d-89e8-4788-902e-8a0b3a01ec99
if font /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 ###
set root=(hd1,5)
search --fs-uuid --set ba34c64d-89e8-4788-902e-8a0b3a01ec99
insmod png
if background_image /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.25-arctor-1.8" {
linux /vmlinuz-2.6.25-arctor-1.8 root=/dev/sdb5 ro
}
menuentry "Debian GNU/Linux, linux 2.6.25-arctor-1.8 (single-user mode)" {
linux /vmlinuz-2.6.25-arctor-1.8 root=/dev/sdb5 ro single
}
menuentry "Debian GNU/Linux, linux 2.6.25-arctor-1.7.5" {
linux /vmlinuz-2.6.25-arctor-1.7.5 root=/dev/sdb5 ro
}
menuentry "Debian GNU/Linux, linux 2.6.25-arctor-1.7.5 (single-user mode)" {
linux /vmlinuz-2.6.25-arctor-1.7.5 root=/dev/sdb5 ro single
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/10_windows ###
menuentry "Microsoft Windows Vista Ultimate" {
set root=(hd0,1)
chainloader +1
}
### END /etc/grub.d/10_windows ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
*********************** END /boot/grub/grub.cfg
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.25-arctor-1.8 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages grub-pc depends on:
ii debconf [debconf-2.0] 1.5.22 Debian configuration management sy
ii grub-common 1.96+20080617-1 GRand Unified Bootloader, version
ii libc6 2.7-12 GNU C Library: Shared libraries
ii liblzo2-2 2.03-1 data compression library
ii libncurses5 5.6+20080614-1 Shared libraries for terminal hand
grub-pc recommends no packages.
-- debconf information:
grub-pc/linux_cmdline:
* grub-pc/chainload_from_menu.lst: true
--
-Will Orr
will.orr at mail.rit.edu
More information about the Pkg-grub-devel
mailing list