Bug#586449: [grub-pc] /usr/sbin/grub-probe: error: cannot stat `/dev/hda'.
Abou Al Montacir
abou.almontacir at sfr.fr
Sun Jun 20 10:00:21 UTC 2010
Package: grub-pc
Version: 1.98+20100617-1
--- Please enter the report below this line. ---
I think the main issue is the following message
Paramétrage de grub-pc (1.98+20100617-1) ...
/usr/sbin/grub-probe: error: cannot stat `/dev/hda'.
Generating grub.cfg ...
The issue is that since kernel 2.26.32-5 the IDE hard drives are seen as
serial devices (/dev/sda instead of /dev/hda). This probably
makes /usr/sbin/grub-probe not working on these systems. Indeed kernel
expects and handles /dev/sda while the real device is /dev/hda. Of
course IDE drives are less and less used, but still widely used, so this
should be gracefully handled by the grub-probe executable.
In the most cases, executing grub-install /dev/sda should fix the
issue.
--- System information. ---
Architecture: i386
Kernel: Linux 2.6.32-5-686
Debian Release: squeeze/sid
500 unstable ftp.fr.debian.org
--- Package information. ---
Depends (Version) | Installed
==========================================-+-====================
libc6 (>= 2.3) | 2.11.2-1
libdevmapper1.02.1 (>= 2:1.02.36) | 2:1.02.48-2
debconf (>= 0.5) | 1.5.32
OR debconf-2.0 |
grub-common (= 1.98+20100617-1) | 1.98+20100617-1
ucf | 3.0025
Package's Recommends field is empty.
Suggests (Version) | Installed
===========================-+-===========
desktop-base (>= 4.0.6) | 5.0.5
--- Output from package bug script ---
*********************** BEGIN /proc/mounts
/dev/sda1 / ext3 rw,relatime,errors=remount-ro,data=ordered 0 0
/dev/sda6 /home ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/sda7 /usr/local ext3 rw,relatime,errors=continue,data=ordered 0 0
/dev/sda8 /mnt/data ext3 rw,relatime,errors=continue,data=ordered 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(hd0) /dev/sda
(hd1) /dev/sdb
*********************** END /boot/grub/device.map
*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 40703290-bd17-4353-89cc-58f6c45b5b43
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
fi
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 40703290-bd17-4353-89cc-58f6c45b5b43
set locale_dir=($root)/boot/grub/locale
set lang=fr
insmod gettext
set timeout=5
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 40703290-bd17-4353-89cc-58f6c45b5b43
insmod png
if background_image /boot/grub/moreblue-orbit-grub.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_linux ###
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 40703290-bd17-4353-89cc-58f6c45b5b43
echo 'Loading Linux 2.6.32-5-686 ...'
linux /boot/vmlinuz-2.6.32-5-686 root=/dev/sda1 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 40703290-bd17-4353-89cc-58f6c45b5b43
echo 'Loading Linux 2.6.32-5-686 ...'
linux /boot/vmlinuz-2.6.32-5-686 root=/dev/sda1 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-5-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-3-686' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 40703290-bd17-4353-89cc-58f6c45b5b43
echo 'Loading Linux 2.6.32-3-686 ...'
linux /boot/vmlinuz-2.6.32-3-686 root=/dev/sda1 ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-3-686
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-3-686 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 40703290-bd17-4353-89cc-58f6c45b5b43
echo 'Loading Linux 2.6.32-3-686 ...'
linux /boot/vmlinuz-2.6.32-3-686 root=/dev/sda1 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.32-3-686
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows NT/2000/XP (on /dev/sdb1)" {
insmod part_msdos
insmod fat
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set 672a-044d
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "microsoft windows xp home edition (on /dev/sdb2)" {
insmod part_msdos
insmod ntfs
set root='(hd1,msdos2)'
search --no-floppy --fs-uuid --set c43012a130129a8e
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20100620/c155af72/attachment.pgp>
More information about the Pkg-grub-devel
mailing list