[Bug 1292628] Re: 'grub-install --force "(hd0)"' fails on trusty during installation
    Steve Langasek 
    steve.langasek at canonical.com
       
    Wed Mar 26 22:25:51 UTC 2014
    
    
  
The code in grub-installer does the following:
# Try to avoid using (hd0) as a boot device name.  Something which can be
# turned into a stable by-id name is better.
default_bootdev_os="$($chroot $ROOT grub-mkdevicemap --no-floppy -m - | head -n1
 | cut -f2)"
if [ "$default_bootdev_os" ]; then
        default_bootdev="$($chroot $ROOT readlink -f "$default_bootdev_os")"
else
        default_bootdev="(hd0)"
fi
So it would be useful to know the output of the intermediate commands in
your environment.
-- 
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:
  Confirmed
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