Linux Dual Boot

Discussion regarding the installation and configuration of Linux distributions.
Post Reply
ziajee
Naik
Posts: 89
Joined: Mon May 05, 2003 12:22 pm
Location: Karachi

Linux Dual Boot

Post by ziajee »

i was having Redhat linux with dual boot with windows xp pro
it was working fine.
but due to some i have reinstall windows xp pro.but now i dont have dual boot option.my Linux partions are exist.
is their any idea that i can recreate bootloader..
or i have to reinstall Linux Again..

Rgds
Aasim Zia
Aasim Zia
Hungry For Information..
Faraz.Fazil
Major General
Posts: 1024
Joined: Thu Jul 04, 2002 5:31 pm
Location: Karachi/Pakistan/Earth/Universe

Post by Faraz.Fazil »

Since you installed another OS on top of linux, the linux grub bootloader got uninstalled.

All you need to do is to install the bootloader again...which is very simple in your case

Were u using grub or lilo as the bootloader?
grub is the choice by default during the setup.

If you were using grub , then, In your case, the grub configuration file grub.conf still exists on the linux partition.Just do this:

1.Boot from the RedHat Linux Cd 1

2.Choose rescue mode

3.Do a chroot /mnt/sysimage

4.Give this command:

/sbin/grub-install /dev/hda

This will reinstall grub on the MBR

Thats it...

reboot, and you will have grub again, and you will be able to boot all the os'es from grub.

If you were using lilo, let me know and ill give you further instructions.
Linux for Life!
ishtiaq ahmed
Naik
Posts: 50
Joined: Thu Dec 23, 2004 8:15 pm
Location: lahore

Post by ishtiaq ahmed »

very good and effective solution for me
thankxxx.
:) :) :)
Faraz.Fazil
Major General
Posts: 1024
Joined: Thu Jul 04, 2002 5:31 pm
Location: Karachi/Pakistan/Earth/Universe

Post by Faraz.Fazil »

Np and anytime mate.

I am glad atleast some one was sensible enough to search the forum archives for a solution to his problem and follow the guides that were already there on the forum instead of staring a thread about something that was already answered..So thanx for being sensible.I hope others follow your example.
Linux for Life!
Post Reply