Red Hat Bugzilla – Bug 438765
Cannot rescue a bad MBR with grub-install due to bad path to grub
Last modified: 2013-01-14 09:55:49 EST
Description of problem:
When booting into rescue mode (linux rescue) from boot.iso,
once one gets to the system prompt and tries to execute
'grub-install --root-directory=/mnt/sysimage /dev/sda'
it returns with a failure of 'can't find /sbin/grub' or
'/sbin/grub not found', or some such.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. boot system into rescue mode (linux rescue from boot.iso prompt)
2. once to system prompt, enter 'grub-install --root-directory=/mnt/sysimage
/sbin/grub not found
grub-install fixes/sets up MBR for grub
If one symlinks /usr/sbin/grub to /sbin/grub, the above works.
So, either the path in grub-install needs to be changed to
/usr/sbin/grub, or $PWD/grub, or a symlink from /usr/sbin/grub to /sbin/grub
must be added, or the hard-path shouldn't be wired and let the PATH variable
I suggest marking this as a duplicate of #422641.
*** This bug has been marked as a duplicate of bug 422641 ***