Grub doesn't install to partition boot record (PBR)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub2 (Ubuntu) |
Expired
|
Medium
|
Unassigned |
Bug Description
Binary package hint: grub2
What i wanted to do is to install grub into the PBR to be able to chainload it from the grub menu from the grub in the master boot record.
But grub is not installed into PBR, nor by the alternate cd''s installer nor by running the grub-install command with --force-Option from from the runnning system or from the live system. It says bloklists are not recommended, but "installation finished, no error reported". But theres is no bootable Grub then. Choosing the chainload entry in the MBR's Grub shows "Invalid signature".
ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: grub-pc 1.98-1ubuntu5
ProcVersionSign
Uname: Linux 2.6.32-21-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Tue May 4 04:32:05 2010
InstallationMedia: Kubuntu 10.04 "Lucid Lynx" - Beta amd64 (20100406)
ProcEnviron:
LANGUAGE=
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: grub2
I can reproduce exactly the same behaviour.
I installed the bootloader of my choice to MBR and intended to chainload several other OS from that.
Two of those OS should be Mint10-64bit (based on Ubuntu 10.10 64bit) and CAELinux (based on Ubuntu 10.04 bit). Installing GRUB2 to their respective partition boot records didnt succeed either with the standard Mint10 installation procedure (Though I could select /dev/sda6 during installation!) or with both Live systems.
In both of the live systems I did the following:
#### start code #### caelinux: /$ sudo grub-install --force --root- directory= /mnt /dev/sda6 grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea.. grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and its use is discouraged..
caelinux@
/usr/sbin/
/usr/sbin/
Installation finished. No error reported.
caelinux@ caelinux: /$ sudo fdisk -l 2>/dev/null | egrep "Disk /|/dev/" | sed "s#^/dev/#Part /dev/#" | awk '{print $2}' | sed 's/://' | xargs -n1 -IX sudo sh -c "hexdump -v -s 0x80 -n 2 -e '2/1 \"%x\" \"\\n\"' X | xargs -n1 -IY sh -c \"case \"Y\" in '48b4') echo X: GRUB 2 v1.96 ;; 'aa75' | '5272') echo X: GRUB Legacy ;; '7c3c') echo X: GRUB 2 v1.97 oder höher ;; *) echo X: Kein GRUB Y ;; esac\""
/dev/sda: GRUB 2 v1.97 oder höher
/dev/sda1: Kein GRUB 00
/dev/sda2: Kein GRUB ffff
/dev/sda5: Kein GRUB 00
/dev/sda6: Kein GRUB 00
/dev/sda7: Kein GRUB 00
/dev/sda8: Kein GRUB 00
/dev/sda9: Kein GRUB 00
#### end code ####
This is reproducible. Apparently the grub-install command doesnt do, what it should per definition (Id say the man page is definition) but gives a success message anyway. Chainloading the respective partition PBRs results in the above mentioned "invalid signature".