Bug#475718: Bug #475718 grub gets confused by hybrid apple/pc partmap
Chris Knadle
Chris.Knadle at coredump.us
Tue Jul 22 06:10:20 UTC 2008
On Monday 21 July 2008, Felix Zielcke wrote:
> Is this still a problem with grub2 1.96+20080704-2 currently in
> testing/unstable ?
I just tried, grub2 1.96+20080704-2 -- I can't even complete installing it (I
selected the recommended chain-load):
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Reading package fields... Done
Reading package status... Done
Retrieving bug reports... Done
Parsing Found/Fixed information... Done
Preconfiguring packages ...
dpkg: grub: dependency problems, but removing anyway as you request:
grub-choose-default depends on grub.
(Reading database ... 349734 files and directories currently installed.)
Removing grub ...
Processing triggers for man-db ...
Selecting previously deselected package grub-common.
(Reading database ... 349687 files and directories currently installed.)
Unpacking grub-common (from .../grub-common_1.96+20080704-2_i386.deb) ...
Selecting previously deselected package grub-pc.
Unpacking grub-pc (from .../grub-pc_1.96+20080704-2_i386.deb) ...
Selecting previously deselected package grub2.
Unpacking grub2 (from .../grub2_1.96+20080704-2_i386.deb) ...
Processing triggers for man-db ...
Setting up grub-common (1.96+20080704-2) ...
Setting up grub-pc (1.96+20080704-2) ...
Generating core.img
grub-probe: error: Cannot find a GRUB drive for /dev/hde2. Check your
device.map.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.
dpkg: error processing grub-pc (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of grub2:
grub2 depends on grub-pc; however:
Package grub-pc is not configured yet.
dpkg: error processing grub2 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
grub-pc
grub2
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up grub-pc (1.96+20080704-2) ...
Generating core.img
grub-probe: error: Cannot find a GRUB drive for /dev/hde2. Check your
device.map.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.
dpkg: error processing grub-pc (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of grub2:
grub2 depends on grub-pc; however:
Package grub-pc is not configured yet.
dpkg: error processing grub2 (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
grub-pc
grub2
Press return to continue.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
This is the contents of /boot/grub/device.map:
anan7:/boot/grub# cat device.map
(hd0) /dev/hde
(hd1) /dev/hdg
(hd2) /dev/hdh
Also, either grub2 and/or grub2-pc did not purge cleanly; it left a big mess
of files in /boot/grub/ after both were purged, which I had to manually pick
through and delete those:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
anan7:~# aptitude
(Reading database ... 349886 files and directories currently installed.)
Removing grub2 ...
Purging configuration files for grub2 ...
Removing grub-pc ...
Saving menu.lst backup in /boot/grub/menu.lst_backup_by_grub2_prerm
Running update-grub Legacy to remove our core.img in it
Searching for GRUB installation directory ... found: /boot/grub
grub-probe: error: Cannot find a GRUB drive for /dev/hde2. Check your
device.map.
Purging configuration files for grub-pc ...
Processing triggers for man-db ...
Press return to continue.
anan7:~# cd /boot/grub
anan7:/boot/grub# ls
acorn.mod echo.mod loopback.mod reiserfs.mod
affs.mod elf.mod ls.mod
reiserfs_stage1_5
afs.mod ext2.mod lspci.mod search.mod
amiga.mod fat.mod lvm.mod serial.mod
aout.mod fat_stage1_5 memdisk.mod sfs.mod
apple.mod font.mod menu.lst sleep.mod
ata.mod fshelp.mod menu.lst~ splashimages
biosdisk.mod fs.lst menu.lst_backup_by_grub2_prerm splash.xpm.gz
bitmap.mod fs_uuid.mod menu.lst_new stage1
blocklist.mod gfxterm.mod menu.lst_OLD stage2
boot.img gpt.mod minix.mod sun.mod
boot.mod gzio.mod minix_stage1_5 terminal.mod
_bsd.mod halt.mod moddep.lst terminfo.mod
bsd.mod hello.mod _multiboot.mod test.mod
cat.mod help.mod multiboot.mod tga.mod
cdboot.img hexdump.mod normal.mod udf.mod
_chain.mod hfs.mod ntfscomp.mod ufs.mod
chain.mod hfsplus.mod ntfs.mod vbeinfo.mod
cmp.mod iso9660.mod partmap.lst vbe.mod
command.lst jfs.mod pci.mod vbetest.mod
configfile.mod jfs_stage1_5 pc.mod vga.mod
cpio.mod jpeg.mod play.mod video.mod
cpuid.mod kernel.img png.mod videotest.mod
default _linux.mod pxeboot.img xfs.mod
device.map linux.mod raid.mod xfs_stage1_5
diskboot.img lnxboot.img read.mod
e2fs_stage1_5 loadenv.mod reboot.mod
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
-- Chris
--
Chris Knadle
Chris.Knadle at coredump.us
More information about the Pkg-grub-devel
mailing list