Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-12-2003, 05:34 AM   #1
LQ Newbie
Registered: Nov 2003
Location: Bangalore,India.
Posts: 20

Rep: Reputation: 0
Unhappy I did fdisk/mbr, how to install GRUB again?

GRUB was dual booting RH Linux and Win 98.
I read it some where and did "fdisk/mbr" in Win98.
Now how can I restore GRUB without reinstalling Linux?

I dont have a bootable floppy disk.
I only have installation cds, version 7.2.
Please let me know installing GRUB again with my previous configuration.
Old 12-12-2003, 07:22 AM   #2
Senior Member
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You should be able to boot your Linux installation from the installation CD. The command line is probably something along the lines of rescue root=/whatever/your/root/device/is.

Once you have logged in you can run grub-install.

Old 12-12-2003, 07:58 AM   #3
LQ Newbie
Registered: Nov 2003
Location: Bangalore,India.
Posts: 20

Original Poster
Rep: Reputation: 0
Installation CD booted in rescue mode and mounted the file system of my hda in /mnt/sysimage.
That means my hard disks' root ( / ) is mounted on /mnt/sysimage/.

I did the following:

$ /mnt/sysimage/sbin/grub/grub-install /dev/hda
as my original "/sbin/grub/" is now equal to /mnt/sysimage/sbin/grub.

But it gave an error message:
/sbin/grub: Not Found

I also tried

$ /mnt/sysimage/sbin/grub/grub-install /mnt/sysimage/dev/hda

But no use. Another error message ( I dont remember it, sorry)
I use RedHat Linux 7.2

Now please help me.
Old 12-13-2003, 03:09 AM   #4
Senior Member
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
you will need to chroot to /mnt/sysimage

the command will be:

chroot /mnt/sysimage /bin/bash
Then it should be able to find your /sbin/grub

What that command does is set /mnt/sysimage to be /

Old 12-13-2003, 03:15 AM   #5
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
/sbin/grub-install ?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub - fdisk /MBR lucho707 Linux - Software 1 12-01-2005 12:07 AM
Install GRUB in MBR or /boot? kmlinux12 Linux - Enterprise 7 09-25-2004 02:47 AM
fdisk /mbr can't get rid of GRUB?! zaltar Linux - Newbie 8 11-21-2003 09:11 AM
how do i install grub in the mbr? spyghost Linux - Newbie 2 11-07-2003 10:52 AM
GRUB Install on MBR JakeFarley Linux - Newbie 3 10-22-2002 08:16 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration