Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 01-29-2004, 04:54 PM   #1
Registered: Oct 2001
Location: Overland Park, KS
Distribution: OpenSuSE Leap 42.3
Posts: 368

Rep: Reputation: 30
How do I reinstall GRUB after Ghost - SuSE

Previously with RedHat whenever I ghosted the partition the mbr would be corrupt...I would use the boot floppy to bring up the root partition and simply run LILO and reboot and the world was right again...
Recently I had to reinstall SuSE completely because I was unable to figure out how to reinstall GRUB after ghosting. I have a SuSE standard boot disk that will give me access to the login screen, once inside root how do I reinstall GRUB into the mbr?.....thanks for your advice
Old 01-29-2004, 05:07 PM   #2
Senior Member
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
Once you are booted up to Linux, you can run the command:
grub-install /dev/hda
Old 01-29-2004, 06:18 PM   #3
Registered: Oct 2001
Location: Overland Park, KS
Distribution: OpenSuSE Leap 42.3
Posts: 368

Original Poster
Rep: Reputation: 30
thanks so much....nm

Old 01-29-2004, 06:24 PM   #4
Registered: Oct 2001
Location: Overland Park, KS
Distribution: OpenSuSE Leap 42.3
Posts: 368

Original Poster
Rep: Reputation: 30
should that be /dev/hda1 or hdb1?

I have the grub boot-loader installed to the should the command be grub-install /dev/hda1
OR grub-install /dev/hdb1....? Please advise and thanks for your help homey
Old 03-10-2004, 07:29 AM   #5
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: debian IceWM
Posts: 5,550

Rep: Reputation: Disabled
not sure if homey has seen this, so forgive me having a go,

grub will think the homey command of hda as the first drive (ide) detected and install to its mbr.

Each drive has a mbr so are you wanting to install to slave drive hdb?

2) if homeys original instruction fails for you, and you have grub installed there is another way.

open a terminal and su to get root access
type grub and press enter
prompt changes to grub> And NOW acts like a bash command editor

try this

grub> root (hd0,0) ##assuming your /boot folder is on /dev/hda1 edit correction
grub> setup (hd0) ## to setup mbr
grub > quit ## to end the sequence nicely

if you have probs with this post your /etc/fstab so we know where your /boot partition is and ditto for /


Last edited by aus9; 03-23-2004 at 07:24 AM.
Old 04-05-2004, 08:33 PM   #6
LQ Newbie
Registered: Apr 2004
Location: Brooklyn, NY
Distribution: Fedora Core 1
Posts: 1

Rep: Reputation: 0

I'm not the original poster, but I just wanted to post a big THANK YOU to those of you that partiicpated in this forum. Specifically aus9, your advice worked like a charm. I had done some repartitioning on my 2nd hard drive, which also had my linux installation on it. Suddenly GRUB wouldn't load, although I could pass the correct commands to it to get into my system. I checked out the grub.conf file, which looked correct, however it wasn't working. Running
#grub, then
>root (hd1,2), then
>setup (hd0)

to install it back to my first disk MBR did the trick! Here I am in Fedora 1 again...thank you thank you!



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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
winxp ghost image with grub husnos Linux - General 12 07-01-2005 01:55 PM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM
Norton Ghost (2001) and grub r.stiltskin Linux - Software 4 01-12-2004 05:14 PM
RH9, Norton Ghost, and the Grub Boot Loader... Vince0000 Red Hat 2 10-01-2003 01:55 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:21 AM.

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
Open Source Consulting | Domain Registration