LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 12-12-2003, 04:34 AM   #1
yarnar
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, 06:22 AM   #2
hw-tph
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.

Håkan
 
Old 12-12-2003, 06:58 AM   #3
yarnar
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, 02:09 AM   #4
Shade
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:

Code:
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 /

-Shade
 
Old 12-13-2003, 02:15 AM   #5
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

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


Reply


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 11-30-2005 11:07 PM
Install GRUB in MBR or /boot? kmlinux12 Linux - Enterprise 7 09-25-2004 01:47 AM
fdisk /mbr can't get rid of GRUB?! zaltar Linux - Newbie 8 11-21-2003 08:11 AM
how do i install grub in the mbr? spyghost Linux - Newbie 2 11-07-2003 09:52 AM
GRUB Install on MBR JakeFarley Linux - Newbie 3 10-22-2002 07:16 AM


All times are GMT -5. The time now is 10:22 AM.

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