Bug 438765 - Cannot rescue a bad MBR with grub-install due to bad path to grub
Summary: Cannot rescue a bad MBR with grub-install due to bad path to grub
Keywords:
Status: CLOSED DUPLICATE of bug 422641
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: grub
Version: 5.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Václav Pavlín
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-03-24 23:39 UTC by Don Dutile (Red Hat)
Modified: 2013-01-14 14:55 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-01-14 14:55:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Don Dutile (Red Hat) 2008-03-24 23:39:52 UTC
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):
5.2-beta

How reproducible:
Always

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
/dev/sda'
3. 
  
Actual results:
/sbin/grub not found


Expected results:
grub-install fixes/sets up MBR for grub

Additional info:
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
resolve it.

Comment 1 Ed Avis 2009-08-16 15:08:01 UTC
I suggest marking this as a duplicate of #422641.

Comment 2 Václav Pavlín 2013-01-14 14:55:49 UTC

*** This bug has been marked as a duplicate of bug 422641 ***


Note You need to log in before you can comment on or make changes to this bug.