Bug#489287: grub-install to GPT disk failed: Cannot read `/boot/grub/core.img' correctly
Quinn Li
quinn.liqin at gmail.com
Sat Jul 5 00:46:48 UTC 2008
*********************** BEGIN /proc/mounts
/dev/sda2 / ext3 rw,errors=remount-ro,data=ordered 0 0
/dev/sda2 /dev/.static/dev ext3 rw,errors=remount-ro,data=ordered 0 0
/dev/sda1 /mnt/ubuntu ext3 rw,errors=remount-ro,data=ordered 0 0
/dev/sda7 /mnt/home ext3 rw,errors=remount-ro,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 /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,2)
search --fs-uuid --set 90332deb-e15c-4668-b82f-3ba5f829030b
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=(hd0,2)
search --fs-uuid --set 90332deb-e15c-4668-b82f-3ba5f829030b
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 ###
set root=(hd0,2)
search --fs-uuid --set 90332deb-e15c-4668-b82f-3ba5f829030b
menuentry "Debian GNU/Linux, linux 2.6.24-1-686" {
linux /boot/vmlinuz-2.6.24-1-686
root=UUID=90332deb-e15c-4668-b82f-3ba5f829030b ro
initrd /boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode)" {
linux /boot/vmlinuz-2.6.24-1-686
root=UUID=90332deb-e15c-4668-b82f-3ba5f829030b ro single
initrd /boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.18-6-xen-686" {
linux /boot/vmlinuz-2.6.18-6-xen-686
root=UUID=90332deb-e15c-4668-b82f-3ba5f829030b ro
initrd /boot/initrd.img-2.6.18-6-xen-686
}
menuentry "Debian GNU/Linux, linux 2.6.18-6-xen-686 (single-user mode)" {
linux /boot/vmlinuz-2.6.18-6-xen-686
root=UUID=90332deb-e15c-4668-b82f-3ba5f829030b ro single
initrd /boot/initrd.img-2.6.18-6-xen-686
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
*********************** END /boot/grub/grub.cfg
On Sat, Jul 5, 2008 at 3:20 AM, Robert Millan <rmh at aybabtu.com> wrote:
> On Sat, Jul 05, 2008 at 01:43:19AM +0800, Quinn Li wrote:
>> Package: grub2
>> Version: 1.96+20080626-1
>> Severity: important
>>
>> I have two harddisks on my PC, /dev/sda(hd0) and /dev/sdb(hd1). sda uses GUID partition table, sdb uses MSDOS partition table.
>>
>> I'm unable to install grub2 to /dev/sda. when I invoke sudo grub-install '(hd0,1)', or to (hd0), or any other partition on /dev/sda, I got:
>>
>> sudo grub-install '(hd1)'
>> /usr/sbin/grub-setup --directory=/boot/grub --device-map=/boot/grub/device.map (hd0,1)
>> grub-setup: error: Cannot read `/boot/grub/core.img' correctly
>>
>> But it is OK for me to install grub2 to sdb.
>>
>> sudo grub-install '(hd1)'
>> /usr/sbin/grub-setup --directory=/boot/grub --device-map=/boot/grub/device.map (hd1)
>> Installation finished. No error reported.
>> This is the contents of the device map /boot/grub/device.map.
>> Check if this is correct or not. If any of the lines is incorrect,
>> fix it and re-run the script `grub-install'.
>>
>> (hd0) /dev/sda
>> (hd1) /dev/sdb
>
> Please include the output of:
>
> sudo bash -c "/usr/share/bug/grub-pc/script 3>&1"
>
> --
> Robert Millan
>
> <GPLv2> I know my rights; I want my phone call!
> <DRM> What good is a phone call… if you are unable to speak?
> (as seen on /.)
>
More information about the Pkg-grub-devel
mailing list