'grub-install --force "(hd0)"' fails on trusty during installation
Bug #1292628 reported by
William Van Hevelingen
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub-installer (Ubuntu) |
Fix Released
|
High
|
Colin Watson |
Bug Description
Network/PXE installs of Trusty fail on installing grub.
The error message in syslog is:
Installing grub on '(hd0)'
Running chroot /target grub-install --force "(hd0)"
Installing for i386-pc platform
grub-install: error: disk `hd0' not found
error: Running 'grub-install --force ''(hd0)''' failed.
The workaround is the following
chroot target
echo "(hd0) /dev/sda" > /boot/grub/
Then prompting the installer to try installing again.
Changed in grub2 (Ubuntu): | |
importance: | Undecided → High |
description: | updated |
description: | updated |
description: | updated |
To post a comment you must log in.
I've helped look into this for the OP.
It seems the part that is failing is:
# /usr/sbin/ grub-install --force "(hd0)" grub-bios- setup: error: disk `hd0' not found.
/usr/sbin/
Which I thought was odd, so I created a device.map file:
# echo "(hd0) /dev/sda" > /boot/grub/ device. map grub-install --force "(hd0)"
# /usr/sbin/
Installation finished. No error reported.
At the end of the grub-bios-setup help page it says:
DEVICE must be an OS device (e.g. /dev/sda).