LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-29-2009, 01:52 AM   #1
GirishSharma
Member
 
Registered: Dec 2008
Posts: 37

Rep: Reputation: 16
Linux Recovery after installation of Windos XP


Hello,

I had dual boot at my home PC i.e. Linux and Win XP.

Due to some problem, i format my C: (i.e. windows) and re-installed Windows XP; but now i am not getting the option for boot with linux...

Where is my earlier RHEL - 4 linux?

How do i get dual boot option and is there any problem with earlier installed linux?

Please guide me.

Thanks and Regards
Girish Sharma
 
Old 06-29-2009, 01:56 AM   #2
austinium
Member
 
Registered: Nov 2007
Location: India
Distribution: Debian Stable, Debian Testing
Posts: 219

Rep: Reputation: 27
you need to restore GRUB as the primary boot loader, windows installs its bootloader (NTLDR for XP) during installation,

have a look at the following link
http://mybosslinuxblog.wordpress.com...lling-windows/

good luck
 
Old 06-29-2009, 01:58 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
There is a thread on this topic here:
http://www.linuxquestions.org/questi...-linux-735733/
In general it's a good idea to search this site for similar problems and if that doesn't help doing a google before starting a thread. This saves you a lot of time and trouble.
As you will see, installing windows on top of a linux installation is often a cause of trouble. Doing the reverse, installing linux on top of a windows installation is not. You can read all about it in the thread mentioned above.
cheers,
jdk
 
Old 06-29-2009, 01:59 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
If you had searched LQ you could have easily got through some similar threads. Your grub has been wiped out and windows has written its own loader.
Boot using RHEL cd to boot to rescue mode.
Once you have a shell type the command

grub-install /dev/sda

PS: Assuming that your drive is recognized as sda. You should first check it with fdisk -l
 
Old 06-29-2009, 04:32 AM   #5
GirishSharma
Member
 
Registered: Dec 2008
Posts: 37

Original Poster
Rep: Reputation: 16
Thanks chaitanya.
As i came to know for recovery the linux i should follow:

1.insert RHEL first cd and press any key to boot from CD
2.at the prompt i should type "linux rescue" and press enter
3.after few seconds and reply no to start network settings
4.at the # prompt i should type chroot /mnt/sysimage
5.grub -install /dev/hda

here i am confusing; what should i type i.e. hda or sda. How do i know that it should be <n>da; i.e. result of fdisk -l

Regards
Girish Sharma
 
Old 06-29-2009, 05:14 AM   #6
lemon09
Member
 
Registered: Jun 2009
Location: kolkata,India
Distribution: Mandriva,openSuse,Mint,Debian
Posts: 285
Blog Entries: 1

Rep: Reputation: 37
first insert the RHEL CD or DVD in the drive.
choose install and then select the option upgrade.
this will upgrade ur system and install the GRUB.
 
Old 06-29-2009, 05:57 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Post the output of fdisk -l.
 
Old 06-30-2009, 01:22 AM   #8
GirishSharma
Member
 
Registered: Dec 2008
Posts: 37

Original Poster
Rep: Reputation: 16
Hello chaitanya,

1.inserted RHEL cd 1 in cdrom.
2.boot from CD
3.linux rescue at the command prompt
4.after few seconds; selecting US keyboard and No to network settings i got the prompt.
5.chroot /mnt/sysimage
6.grub -install /dev/hda

When i see fdisk -l there was no entry of sda in the output; so i just hit hda. After 4-5 seconds, i got my prompt again without any error.
7.removed the cd from cdrom
8.reboot

Bingo...!!!

I got the two options as earlier and now both OS are working fine.

I wish to thank you and all of them who replied to my question.

Best Regards
Girish Sharma
 
Old 06-30-2009, 02:19 AM   #9
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
Well done. Happy to know you got it working and found help here. If you think you got help from here, then click the Thumps up icon for all those who helped you.
 
  


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
question on certain windos/linux issues sniperhunter Linux - Newbie 30 03-09-2008 11:52 AM
Using Windos/XP to access Linux Server asplus Linux - Server 5 12-08-2007 01:45 PM
LXer: Linux Data Recovery on Windows - Is possible through Disk Doctors Linux Recovery Software LXer Syndicated Linux News 0 10-22-2006 12:21 PM
LXer: Automate Linux installation and recovery with SystemImager LXer Syndicated Linux News 0 05-21-2006 10:33 AM
Linux slow, Windos fast :( appeal Linux - Networking 3 01-04-2005 01:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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