LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 09-01-2008, 05:34 PM   #1
Jim@HiTek
Member
 
Registered: Aug 2008
Location: On the Road
Posts: 33

Rep: Reputation: 15
Cool Grub boot loader disappeared...can't boot openSUSE 10.3


A couple weeks ago I wiped my HDD clean, installed WinXP pro, then installed from CD openSUSE 10.3. It worked fine. SUSE partitioned the disk, installed and ran the first time without harming the XP install.

Then last week I was screwing around with XP and somehow go it into a boot loop. Nothing I tried seemed to un-loop it. So I used the SUSE 'boot from floppy' option, booted to an old Win98se boot disk, used fdisk to remove the NTFS partition, created a new partion, made it into 32 bit, then rebooted. Grub was still there when I booted to the floppy, formatted the new partition and put 'system' on it. Booting to the C prompt worked fine.

Grub still worked when I booted to the floppy, set up access to the CD drive and then installed Win98se. As 98se finalized the installation and rebooted, I noticed that the Grub boot loader was no longer there. It started going directly to Win98se.

How do I get GRUB back?

I've since installed WinXP Pro and it does not show the Linux partition but I'm not sure it's suppose to. It only shows the C: drive and the size is correct for that partition (it's not bigger then it should be).

I have a SUSE Live CD, would that have a 'restore' function?

Thanks!

Last edited by Jim@HiTek; 09-01-2008 at 05:36 PM.
 
Old 09-01-2008, 05:49 PM   #2
Jim@HiTek
Member
 
Registered: Aug 2008
Location: On the Road
Posts: 33

Original Poster
Rep: Reputation: 15
I went and found my live SUSE CD and booted to it. It has a 'rescue' option, but it's now asking for my 'rescue login' and 'password' and the names and passwords I have don't work. A little help please?

What's a 'rescue login' and is it suppose to be different from my boot login?

Thanks.

On Edit: I tried using rescue as the login and the root password but it still won't open. Seems a little strange that the 'rescue' feature needs different permissions then 'root'.

On 2nd edit: Found that I can get to what's called we would call a 'dos prompt' if I enter 'root' in the rescue login. No pswrd required. Guess I'll go do a search for rescue commands...

So now how do I get it to rescue my boot loader?

Last edited by Jim@HiTek; 09-01-2008 at 06:40 PM. Reason: Info
 
Old 09-01-2008, 07:47 PM   #3
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,117

Rep: Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817
First of all, windows always overwrites any bootloader in the mbr during an install so that's what happened to Grub. Windows doesn't show any other OS's.

Put your Opensuse disk in the drive, let it start to load and select rescue, log in as root, type command 'fdisk -l' (lower case letter L, no quotes), check output so you can see correct partition for Opensuse. Assuming you have one partition for xp, your Opensuse will probably be sda2. If that's the case, enter the following command consecutively:

grub ##This will give you a grub prompt, grub>
root (hd0,1)
setup (hd0)
quit

The above entry will work if Opensuse is on sda2 (hd0,1) so if it's on another partition, you need to make the appropriate changes. This will overwrite your mbr.

If this isn't clear to your, post the results of the fdisk -l command.

Last edited by yancek; 09-01-2008 at 07:48 PM.
 
Old 09-02-2008, 03:05 PM   #4
Jim@HiTek
Member
 
Registered: Aug 2008
Location: On the Road
Posts: 33

Original Poster
Rep: Reputation: 15
OK, I don't want to screw something up so I only did the fdisk -l and got this:

Device System
/dev/sda1 * NTFS
/dev/sda2 W95
/dev/sda5 Linux Swap/Solaris
/dev/sda6 Linux
/dev/sda7 Linux

The '*' is in the 'Boot' column. There is some other data about start and end cylinders
that I'm not showing.
 
Old 09-02-2008, 03:35 PM   #5
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,117

Rep: Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817
Your fdisk output shows Opensuse on either partition sda6 or sda7. I assume your root is sda6 but you are the only one who would be sure of that? If it's sda6 you should change the entry I previously suggested to:

root (hd0,5)
setup (hd0)
quit

Do this after logging on as root and at the grub prompt (grub>); As I indicated in my previous post, this will overwrite the master boot record. If you would rather boot from xp, that can be done. Just google for that option but Grub is easier.
 
Old 09-02-2008, 04:34 PM   #6
Jim@HiTek
Member
 
Registered: Aug 2008
Location: On the Road
Posts: 33

Original Poster
Rep: Reputation: 15
Smile

Quote:
Originally Posted by yancek View Post
Your fdisk output shows Opensuse on either partition sda6 or sda7. I assume your root is sda6 but you are the only one who would be sure of that? If it's sda6 you should change the entry I previously suggested to:

root (hd0,5)
setup (hd0)
quit

Do this after logging on as root and at the grub prompt (grub>); As I indicated in my previous post, this will overwrite the master boot record. If you would rather boot from xp, that can be done. Just google for that option but Grub is easier.
THANKS YANCEK!

That worked. All is better now.
 
Old 09-02-2008, 05:09 PM   #7
yancek
Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 5,117

Rep: Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817Reputation: 817
Glad you got it working.
 
Old 09-03-2008, 09:52 AM   #8
ceantuco
Member
 
Registered: Mar 2008
Location: New Jersey
Distribution: CentOS, Debian, Mint, Backtrack, OpenSuse
Posts: 560

Rep: Reputation: 36
I'm glad it is working! I had a similar issue yesterday but I needed my machine up and running so I copied my important files and re-installed open suse. If it happens again now I know how to fix it!
 
  


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
wireless Keyboard not working to select boot options (Grub boot loader) psrini_vasan Fedora 7 12-16-2009 06:45 PM
How to change from grub boot loader to lilo boot loader linuxjamil Linux - Software 1 05-27-2008 02:47 PM
Two hard disks - dual boot ( XP - Linux ) using microsoft boot loader, not grub cristy88 Linux - General 2 12-17-2007 07:26 PM
Grub boot loader menu shows two linux boot options pramos Linux - Newbie 3 09-13-2004 12:40 AM


All times are GMT -5. The time now is 11:02 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration