Bug#463391: update-grub: wrong root device
Khaled Hosny
khaledhosny at eglug.org
Thu Jan 31 11:02:35 UTC 2008
Package: grub2
Version: 1.95+20080128-1
Severity: normal
update-grub sets my root partition to (hd1,0), however when grub boot it
seems to always consider the booting disk as (hd0). device.map files
maps my sda disk to hd1, this seems to be the cause of the problem. Now,
when booting grub fails to load the font file for gfxterm and the
background image, leaving me with a pinkish screen with no visible text
making it impossible to even boot manually. I've to use a livecd and
change hd1 to hd0 in order to boot again.
-- Package-specific info:
*********************** BEGIN /proc/mounts
rootfs / rootfs rw 0 0
none /sys sysfs rw,nosuid,nodev,noexec 0 0
none /proc proc rw,nosuid,nodev,noexec 0 0
udev /dev tmpfs rw 0 0
/dev/sda1 / ext3 rw,data=ordered 0 0
/dev/sda1 /dev/.static/dev ext3 rw,data=ordered 0 0
tmpfs /lib/init/rw tmpfs rw,nosuid 0 0
usbfs /proc/bus/usb usbfs rw,nosuid,nodev,noexec 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,nosuid,noexec 0 0
/dev/hdc5 /media/sda5 vfat rw,gid=46,fmask=0007,dmask=0007,codepage=cp437,iocharset=iso8859-1,utf8 0 0
/dev/hdc6 /media/sda6 vfat rw,gid=46,fmask=0007,dmask=0007,codepage=cp437,iocharset=iso8859-1,utf8 0 0
/dev/hdc7 /media/sda7 vfat rw,gid=46,fmask=0007,dmask=0007,codepage=cp437,iocharset=iso8859-1,utf8 0 0
/dev/sda10 /media/sdb10 ext3 rw,data=ordered 0 0
/dev/sda11 /media/sdb11 ext3 rw,data=ordered 0 0
/dev/sda12 /media/sdb12 ext3 rw,data=ordered 0 0
/dev/sda5 /media/sdb5 ext3 rw,data=journal 0 0
/dev/sda6 /media/sdb6 ext3 rw,data=journal 0 0
/dev/sda8 /media/khaled ext3 rw,data=ordered 0 0
/dev/sda9 /media/sdb9 ext3 rw,data=ordered 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec 0 0
/dev/hdb /media/XPPROSP2 iso9660 ro,nosuid,nodev 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(hd0) /dev/hdc
(hd1) /dev/sda
*********************** 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=(hd0,1)
font (hd0,1)/usr/share/grub/unicode.pff
set gfxmode=640x480
insmod gfxterm
insmod vbe
terminal gfxterm
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod tga
background_image (hd0,1)/usr/share/images/desktop-base/debian-blueish-wallpaper-640x480.tga
set color_normal=black/black
set color_highlight=magenta/black
### 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.23-1-486" {
linux (hd0,1)/boot/vmlinuz-2.6.23-1-486 root=/dev/sda1 ro
initrd (hd0,1)/boot/initrd.img-2.6.23-1-486
}
menuentry "Debian GNU/Linux, linux 2.6.23-1-486 (single-user mode)" {
linux (hd0,1)/boot/vmlinuz-2.6.23-1-486 root=/dev/sda1 ro single
initrd (hd0,1)/boot/initrd.img-2.6.23-1-486
}
### END /etc/grub.d/10_linux ###
*********************** END /boot/grub/grub.cfg
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.23-1-486
Locale: LANG=ar_EG.UTF-8, LC_CTYPE=ar_EG.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages grub2 depends on:
ii debconf 1.5.18 Debian configuration management sy
ii grub-pc 1.95+20080128-1 GRand Unified Bootloader, version
grub2 recommends no packages.
-- debconf information:
grub2/numbering_scheme_transition:
--
Khaled Hosny
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20080131/088743ba/attachment.pgp
More information about the Pkg-grub-devel
mailing list