Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 02-09-2005, 06:09 PM   #1 (permalink)
Microsoft MVP
 
Vishal Gupta's Avatar
 
Join Date: Jul 2005
Location: AskVG.com
Posts: 5,173
Default Recovering SUSE 9.1 Boot Loader


Guys!
There r 3 OS installed in my sys: Win 98, Win XP and SUSE 9.1
If something goes wrong and I reinstall 98 or XP, the Boot Loader of SUSE linux is overwritten and lost.
I want to know how to recover it?
The Red Hat Linux trick to recover its boot loader doesnt work!
Pls tell me the solution.
__________________
:arrow: http://www.AskVG.com/
Vishal Gupta is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 02-09-2005, 06:17 PM   #2 (permalink)
Alpha Geek
 
Join Date: Dec 2003
Posts: 780
Default

Boot into any live cd which supports your hardware and the filesystem used by Suse (preferably, use a rescue disk if you can).

Mount your linux partitions under a certain directory, say /mnt/linux (Note that if you have a different partition for /boot, you will need to mount it under /mnt/linux/boot). Now chroot to /mnt/linux (chroot /mnt/linux) and run grub-install /dev/hda to install GRUB to your MBR.

If you used a suse rescue disk, it would probably mount your linux partitions automatically at a certain locations, probably somewhere and /mnt. All you would need to do is the chroot'ing and the grub-install bit

If some partition layout had changed after GRUB was wiped out, you will need to make the necessary adjustments to the file /boot/grub/menu.lst to reflect them.
__________________
Hardware - Celeron 266 MHz, 128MB RAM, Intel i740 8MB RAM
Software - Slackware Linux 10.1; Archlinux 0.7; Windows 98 SE
Humanware - GS/CS C++ L+++ w b+++ DI+ D+ e
ujjwal is offline  
Old 02-09-2005, 06:26 PM   #3 (permalink)
Microsoft MVP
 
Vishal Gupta's Avatar
 
Join Date: Jul 2005
Location: AskVG.com
Posts: 5,173
Default

thnx for the tip ujjwal!
But is there no other way to reflect the changes in /boot/grub/menu.lst file automatically?
__________________
:arrow: http://www.AskVG.com/
Vishal Gupta is offline  
Old 14-09-2005, 04:13 PM   #4 (permalink)
Microsoft MVP
 
Vishal Gupta's Avatar
 
Join Date: Jul 2005
Location: AskVG.com
Posts: 5,173
Default

ujjwal!
Can u pls tell me step-by-step method to recover it?
I lost SUSE boot loader after i installed XP again.
Now I hv no recovery floppy disk only hv SUSE setup CD.
Can u pls tell me what should i do now to reinstall the boot loader?
I hv xp installed on C:\drive, 98 installed on D:\ drive and rest for SUSE partitions.
thnx in advance...
__________________
:arrow: http://www.AskVG.com/
Vishal Gupta is offline  
Old 15-09-2005, 07:50 PM   #5 (permalink)
Alpha Geek
 
Join Date: Dec 2003
Posts: 780
Default

Sorry I cannot give you step by step instructions, as I do not use Suse, but try booting in the Setup CD, and see if you either have a "rescue" mode, or some other mode which will give you a console. If you cannot find this, press CTRL+ALT+F2, and you should get a login prompt. From here, you can try the steps I mentioned in the previous post.
__________________
Hardware - Celeron 266 MHz, 128MB RAM, Intel i740 8MB RAM
Software - Slackware Linux 10.1; Archlinux 0.7; Windows 98 SE
Humanware - GS/CS C++ L+++ w b+++ DI+ D+ e
ujjwal is offline  
Old 15-09-2005, 07:54 PM   #6 (permalink)
Microsoft MVP
 
Vishal Gupta's Avatar
 
Join Date: Jul 2005
Location: AskVG.com
Posts: 5,173
Default

Yes!
It shows Rescue mode.
But can u tell me the command to mount the partition?
I mean which partition I hv to mount?

I hv xp installed on C:\drive, 98 installed on D:\ drive and rest for SUSE partitions.

pls.
thnx in advance!
__________________
:arrow: http://www.AskVG.com/
Vishal Gupta is offline  
Old 16-09-2005, 04:57 PM   #7 (permalink)
Alpha Geek
 
Join Date: Dec 2003
Posts: 780
Default

Post the output of fdisk -p here, that will give an idea of the partitions to mount. I would guess, if there is no seperate /boot partition, and the swap partition lies before the linux partition, the commands you need would be

Code:
mkdir /mnt/linux
mount /dev/hda7 /mnt/linux
chroot /mnt/linux
grub-install /dev/hda
If it does not work replace hda7 with hda6,8,9 and see (ls /mnt/linux) if the layout of /mnt/linux is similiar to the root of your linux partitions.
__________________
Hardware - Celeron 266 MHz, 128MB RAM, Intel i740 8MB RAM
Software - Slackware Linux 10.1; Archlinux 0.7; Windows 98 SE
Humanware - GS/CS C++ L+++ w b+++ DI+ D+ e
ujjwal is offline  
Old 16-09-2005, 09:01 PM   #8 (permalink)
Microsoft MVP
 
Vishal Gupta's Avatar
 
Join Date: Jul 2005
Location: AskVG.com
Posts: 5,173
Default

thnx a lot buddy!
I got my boot loader back...
__________________
:arrow: http://www.AskVG.com/
Vishal Gupta is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Charan
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 02:43 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2