LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 12-30-2004, 12:41 PM   #1
Sevoma
Member
 
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61

Rep: Reputation: 15
Restoring Grub


Ok. I has Suse 9.1 dual booted with win2k. I installed xp over win2k not thinking that it would erase my boot loader. I removed xp and now I have to get into linux. Can someone tell me how to restore bootloader. Thanks in advance for any help.
 
Old 12-30-2004, 12:54 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Since grub should still be setup on your Linux partitions, its just the first stage you should need to restore. and also know which parition the /boot directory was on ( or if it has one of its own ). if its the first partition of the primary master it would be hda1, but in grub parlance (hd0,0).

If you have the SUSE CD, boot with that, and see if theres an emergency or recovery boot, all you need is a login with root. then type the following

Code:
grub
root (hd0,0) 
setup (hd0)
quit
You should replace (hd0,0) with where your /boot directory is. If you don't know where it is ( or your unsure ) before typing in the root command type "find /boot/grub/stage1" (without quotes) this should return the proper parameter for the root command. Setup will install stage1 in the master boot record.

Now just reboot and grub should be back.
 
Old 12-30-2004, 01:06 PM   #3
Sevoma
Member
 
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61

Original Poster
Rep: Reputation: 15
Thanks I'll try that
 
Old 12-30-2004, 01:10 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
grub-install /dev/hda

will work if u want to install grub on MBR

regards
 
Old 12-30-2004, 01:17 PM   #5
Sevoma
Member
 
Registered: Jul 2004
Distribution: Debian x86_64
Posts: 61

Original Poster
Rep: Reputation: 15
THANK YOU SO MUCH LEONSCAPE! It worked! Thank you masand too, I didn't need to try yours. The bootloader is back to normal thanks guys.
 
Old 12-31-2004, 01:54 PM   #6
ChronusDark
Member
 
Registered: May 2004
Distribution: Ubuntu 7.10 Gutsy Gibbion
Posts: 37

Rep: Reputation: 15
i would like to thank you leonscape i had a similar problem and it fixed thank thanks thanks
 
Old 12-31-2004, 10:52 PM   #7
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
Your very welcome! It's nice to help out.
 
  


Reply



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
Restoring GRUB using a rescue cd aus9 Linux - Software 7 05-13-2013 01:31 AM
Restoring Windows with a GRUB bootloader Lee Barker Linux - Newbie 11 11-18-2005 10:33 PM
restoring grub nayankk Linux - Newbie 2 09-10-2005 03:59 PM
Restoring grub after win reinstall praveendasigi Linux - Distributions 1 01-25-2005 11:58 PM
Restoring GRUB sami Linux - Newbie 11 10-30-2002 05:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 10:57 PM.

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