Bug#466389: grub-pc: still can't start grub2 from grub-legacy
Arthur Marsh
arthur.marsh at internode.on.net
Sat Apr 19 17:09:32 UTC 2008
Package: grub-pc
Version: 1.96+20080413-1
Followup-For: Bug #466389
I tried
dpkg-reconfigure grub-pc
again and still didn't get an entry boot in /boot/grub/menu.lst to start
grub2.
I manually added the following chain load entry:
title Chainload Grub2
root (hd0,4)
#kernel /boot/grub/boot.img
kernel /usr/lib/grub/i386-pc/lnxboot.img
savedefault
and although selecting this entry from grub-legacy's boot menu didn't
result in an error message, it claimed a size of 0x00 for the boot
image and then hung.
amarsh04 at victoria:~$ file /usr/lib/grub/i386-pc/*.img
/usr/lib/grub/i386-pc/boot.img: x86 boot sector
/usr/lib/grub/i386-pc/cdboot.img: data
/usr/lib/grub/i386-pc/diskboot.img: data
/usr/lib/grub/i386-pc/kernel.img: data
/usr/lib/grub/i386-pc/lnxboot.img: Linux kernel x86 boot executable
RW-rootFS,
/usr/lib/grub/i386-pc/pxeboot.img: data
amarsh04 at victoria:~$ ls -al /usr/lib/grub/i386-pc/*.img
-rw-r--r-- 1 root root 512 2008-04-13 23:09
/usr/lib/grub/i386-pc/boot.img
-rw-r--r-- 1 root root 512 2008-04-13 23:09
/usr/lib/grub/i386-pc/cdboot.img
-rw-r--r-- 1 root root 512 2008-04-13 23:09
/usr/lib/grub/i386-pc/diskboot.img
-rw-r--r-- 1 root root 30428 2008-04-13 23:09
/usr/lib/grub/i386-pc/kernel.img
-rw-r--r-- 1 root root 1024 2008-04-13 23:09
/usr/lib/grub/i386-pc/lnxboot.img
-rw-r--r-- 1 root root 1024 2008-04-13 23:09
/usr/lib/grub/i386-pc/pxeboot.img
Any further suggestions?
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/hda5 / ext3 rw,errors=remount-ro,data=ordered 0 0
/dev/md/0 /mirror3 ext3 rw,errors=remount-ro,data=ordered 0 0
/dev/hda7 /symonec vfat rw,uid=65534,gid=65534,fmask=0000,dmask=0000,codepage=cp437,iocharset=utf8 0 0
/dev/hda1 /victoriac vfat rw,uid=65534,gid=65534,fmask=0000,dmask=0000,codepage=cp437,iocharset=utf8 0 0
/dev/hdb1 /victoriad vfat rw,uid=65534,gid=65534,fmask=0000,dmask=0000,codepage=cp437,iocharset=utf8 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/device.map
(fd0) /dev/fd0
(hd0) /dev/hda
(hd1) /dev/hdb
*********************** 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,5)
if font (hd0,5)/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 menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### 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-trunk-686" {
linux (hd0,5)/boot/vmlinuz-2.6.25-trunk-686 root=/dev/hda5 ro
initrd (hd0,5)/boot/initrd.img-2.6.25-trunk-686
}
menuentry "Debian GNU/Linux, linux 2.6.25-trunk-686 (single-user mode)" {
linux (hd0,5)/boot/vmlinuz-2.6.25-trunk-686 root=/dev/hda5 ro single
initrd (hd0,5)/boot/initrd.img-2.6.25-trunk-686
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc8-686" {
linux (hd0,5)/boot/vmlinuz-2.6.25-rc8-686 root=/dev/hda5 ro
initrd (hd0,5)/boot/initrd.img-2.6.25-rc8-686
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc8-686 (single-user mode)" {
linux (hd0,5)/boot/vmlinuz-2.6.25-rc8-686 root=/dev/hda5 ro single
initrd (hd0,5)/boot/initrd.img-2.6.25-rc8-686
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc8" {
linux (hd0,5)/boot/vmlinuz-2.6.25-rc8 root=/dev/hda5 ro
initrd (hd0,5)/boot/initrd.img-2.6.25-rc8
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc8 (single-user mode)" {
linux (hd0,5)/boot/vmlinuz-2.6.25-rc8 root=/dev/hda5 ro single
initrd (hd0,5)/boot/initrd.img-2.6.25-rc8
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-686" {
linux (hd0,5)/boot/vmlinuz-2.6.25-rc7-686 root=/dev/hda5 ro
initrd (hd0,5)/boot/initrd.img-2.6.25-rc7-686
}
menuentry "Debian GNU/Linux, linux 2.6.25-rc7-686 (single-user mode)" {
linux (hd0,5)/boot/vmlinuz-2.6.25-rc7-686 root=/dev/hda5 ro single
initrd (hd0,5)/boot/initrd.img-2.6.25-rc7-686
}
menuentry "Debian GNU/Linux, linux 2.6.25" {
linux (hd0,5)/boot/vmlinuz-2.6.25 root=/dev/hda5 ro
initrd (hd0,5)/boot/initrd.img-2.6.25
}
menuentry "Debian GNU/Linux, linux 2.6.25 (single-user mode)" {
linux (hd0,5)/boot/vmlinuz-2.6.25 root=/dev/hda5 ro single
initrd (hd0,5)/boot/initrd.img-2.6.25
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686" {
linux (hd0,5)/boot/vmlinuz-2.6.24-1-686 root=/dev/hda5 ro
initrd (hd0,5)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode)" {
linux (hd0,5)/boot/vmlinuz-2.6.24-1-686 root=/dev/hda5 ro single
initrd (hd0,5)/boot/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24" {
linux (hd0,5)/boot/vmlinuz-2.6.24 root=/dev/hda5 ro
initrd (hd0,5)/boot/initrd.img-2.6.24
}
menuentry "Debian GNU/Linux, linux 2.6.24 (single-user mode)" {
linux (hd0,5)/boot/vmlinuz-2.6.24 root=/dev/hda5 ro single
initrd (hd0,5)/boot/initrd.img-2.6.24
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux (hd0,5)/boot/memtest86+.bin
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 95/98/Me (on /dev/hda1)" {
set root=(hd0,1)
chainloader +1
}
menuentry "Windows 95/98/Me (on /dev/hda7)" {
set root=(hd0,7)
chainloader +1
}
### 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'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.25 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.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.20 Debian configuration management sy
ii grub-common 1.96+20080413-1 GRand Unified Bootloader, version
ii libc6 2.7-10 GNU C Library: Shared libraries
ii liblzo1 1.08-3 data compression library (old vers
ii libncurses5 5.6+20080405-1 Shared libraries for terminal hand
Versions of packages grub-pc recommends:
ii os-prober 1.24 utility to detect other OSes on a
-- debconf-show failed
More information about the Pkg-grub-devel
mailing list