[Bug 1292628] Re: 'grub-install --force "(hd0)"' fails on trusty during installation

Ben Kero 1292628 at bugs.launchpad.net
Fri Mar 14 18:31:19 UTC 2014


I've helped look into this for the OP.

It seems the part that is failing is:

# /usr/sbin/grub-install --force "(hd0)"
/usr/sbin/grub-bios-setup: error: disk `hd0' not found.

Which I thought was odd, so I created a device.map file:

# echo "(hd0) /dev/sda" > /boot/grub/device.map
# /usr/sbin/grub-install --force "(hd0)"
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).

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/1292628

Title:
  'grub-install --force "(hd0)"' fails on trusty during installation

Status in “grub2” package in Ubuntu:
  New

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/device.map

  Then prompting the installer to try installing again.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1292628/+subscriptions



More information about the foundations-bugs mailing list