LinuxQuestions.org
Help answer threads with 0 replies.
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 03-15-2004, 05:20 PM   #1
ihsus
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Rep: Reputation: 0
SuSE 9.0 Pro: Reinstalling the bootloader on MBR


Hello guys!

I was a happy SuSE user after days of struggling to configure everything.
The other day, I used Partition Magic to resize partitions to make more room for my Linux partition. (Dual boot with Win2000 & SuSE)
After rebooting, I noticed Partition Magic nuked GRUB, so I used my Win2000 CD to do FIXMBR, and now Windows works fine.
My problem is I cannot find a way to reinstall GRUB or LILO so I can choose which OS to boot again...
I've got SuSE Disks, and the latest Knoppix CD.
I'm currently on Knoppix and it detects both my Windows partition (hda1) and SuSE partition (hda3) without any problem.

I've been googling and searching bunch of forums for days without much success, this forum has many similar threads and I tried some solutions suggested in there, but none of them worked...

Here are some things I've tried

First, I used my SuSE DVD and booted in rescue mode (Btw, is something wrong with my computer since SuSE Disks don't boot in graphic mode anymore?),
anyway I did
Code:
grub-install /dev/hda
which gave me back
Code:
Probing devices to guess BIOS drives...blablabla
And then I got this error
Code:
/dev/root: Not found or not a block device.
I don't think the rescue mode can detect existing Linux partition, or I don't know the command to mount it..

I also did
Code:
grub > root (hd0,1)
grub > setup (hd0)
but setup gave me an error and I think it said something about hd0 not being found...

I am totally clueless now, if any of you guys can help this , it'd be great!
Thank you in advance.

Last edited by ihsus; 03-15-2004 at 06:56 PM.
 
Old 03-15-2004, 05:30 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,593

Rep: Reputation: 188Reputation: 188
Boot into your SuSE rescue mode. Then tell rescue mode to boot an existing system which boots you into your SuSE system. Then do grub-install.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 03-15-2004, 05:33 PM   #3
ihsus
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
The problem is I don't know the command to do it
Could you tell me more about it?
 
Old 03-15-2004, 05:46 PM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,593

Rep: Reputation: 188Reputation: 188
"The problem is I don't know the command to do it
Could you tell me more about it?"

By "do it" I guess you mean switching from your rescue system to your SuSE system.

In the graphic version of the SuSE rescue DVD there is a line somewhere that says "boot existing system" and you highlight that and press enter.

Since you are not in graphic mode on the SuSE rescue DVD then I guess that you are at a command prompt. Use the chroot command to switch to the / partition of your installed SuSE system. For example if your SuSE / partition is /dev/hda3 and it is an ext3 partition then:
mkdir /wren
mount -t ext3 /dev/hda3 /wren
chroot /wren

After you chroot then your may have to mount /boot if /boot is a separate partition. Then:
grub-install
___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 03-15-2004 at 05:50 PM.
 
Old 03-15-2004, 05:49 PM   #5
ihsus
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
Thank you jailbait.
I'll try that and will get back with the result.
 
Old 03-15-2004, 06:54 PM   #6
ihsus
LQ Newbie
 
Registered: Mar 2004
Posts: 13

Original Poster
Rep: Reputation: 0
YEEEAHH! That worked Thank you thank you!
Here's what I did
Code:
Booted in rescue mode.

mkdir /wren
mount /dev/hda3 /wren
chroot /wren
grub-install /dev/hda
Thank you jailbait, you made me a happy
 
Old 03-15-2004, 07:24 PM   #7
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,593

Rep: Reputation: 188Reputation: 188
Now I suggest that you make a SuSE boot floppy to use the next time you destroy the MBR.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 03-24-2004, 01:45 AM   #8
ariehle
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Rep: Reputation: 0
Jailbate,

I am a long suffering MS user who after years of proding by me older bro have gone totally linux, suse 9.0 to be exact.
The Dell Inspirion I slaved over to tune up w/linux (well - watched my bro do it via command line for a couple hours...) has booted to "primary disk not found". The suse cd gets me into rescue mode, from there I am totally clueless, could you post the command lines I should type in to rescue the configuration?

Mahalo and aloha,

ar
 
Old 03-24-2004, 10:32 AM   #9
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,593

Rep: Reputation: 188Reputation: 188
"could you post the command lines I should type in to rescue the configuration?"

There are two ways to use the SuSE install CD to get into your SuSE system.

1. Look through the install CD GUI until you find an option to "boot an existing system" or something similar. Select that option and the SuSE installer will give you a list of every bootable partition that it found. Select your SuSE Linux partition and SuSE will boot it for you.

2. If you go to the rescue mode command line interface then you can boot into SuSE Linux if you know what partition is your / partition. Assuming that your / partition is /dev/hda3 then you would use the following command to switch to your SuSE Linux system:

mkdir /ukelele
mount /dev/hda3 /ukelele
chroot /ukelele

3. If your brother made a boot floppy like he should have then a third way to get into your SuSE is to boot with the boot floppy.

Once you get into SuSE you can probably fix the problem. From your description of the problem I cannot tell exactly what your problem is. I suspect that it is a problem with your boot loader. Are you using lilo or grub?

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 03-25-2004, 04:20 AM   #10
ariehle
LQ Newbie
 
Registered: Mar 2004
Posts: 3

Rep: Reputation: 0
Jailbait,

Thank you - I have the machine back on line.
Immediately upon successful rescue I attempted to create a rescue disk to no avail.
I was relying on the YaST's processes to complete it, but after 6 trys (some w/new disks) I gave up. The error message only occurred at aprox 90% of disk verification.
Any prior history w/this problem?

I am going to the "lifeboat" site you recommend now to create the boot disk, I am just un command line savvy for the most part - - wish me luck...

Thanks again,

ar
 
Old 03-25-2004, 10:50 AM   #11
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,593

Rep: Reputation: 188Reputation: 188
"Immediately upon successful rescue I attempted to create a rescue disk to no avail.
I was relying on the YaST's processes to complete it, but after 6 trys (some w/new disks) I gave up. The error message only occurred at aprox 90% of disk verification.
Any prior history w/this problem?"

I always create boot floppies by hand. If you are using lilo then section 8 of this HOWTO explains how to do it:

http://tldp.org/HOWTO/LILO.html

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
  


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
Installing Slackware 10 over SuSE 9.1, need to change bootloader in the MBR EOHooligan Linux - General 3 01-09-2005 07:12 AM
Reinstalling the bootloader evilmonkey Linux - Software 2 12-10-2004 01:13 PM
reinstalling grub on the mbr shanenin Linux - Software 1 12-01-2004 01:00 PM
reinstalling lilo bootloader free kevin Linux - Newbie 5 08-02-2004 04:14 PM
SuSE 9.1 Pro - bootloader equinox Linux - Distributions 5 05-21-2004 05:43 AM


All times are GMT -5. The time now is 10:15 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