LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-21-2004, 08:41 PM   #1
mike9004
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Rep: Reputation: 0
how do I boot to Redhat? Installed xp on same drive after redhat


First I installed XP on my drive leaving free space for Redhat. Then I installed Redhat and it used a utlity whose name I forget to give me the option of booting to Redhat or DOS. That was working fine but later I had to reinstall XP and when I did that I let the XP installer delete the XP partition and recreate it in the freespace not occupied by the Linux partitions. Now it boots straight to XP. I tried making the Linux boot partition the active one again using fdisk but when it boots it just gives an error loading operating system error. How can I get that Linux boot partition the default boot loader again? Did I mess it up by deleting and recreating the XP partition it used to point to?
 
Old 04-22-2004, 01:12 AM   #2
KaruppuSwamy.T
Member
 
Registered: Apr 2004
Location: Chennai, India
Distribution: Mandrake 10.0/Redhat 8.0/Ubuntu 5.04/Windows XP (SP2)
Posts: 30

Rep: Reputation: 15
YES... You can do.

Boot your PC with Red Hat installation first CD. In the boot brompt Press F5 for rescue mode. You will be asked for password of root. Then your Linux file system will be mounted.

If you are using LILO boot loader, just run lilo at shell prompt and reboot.
You will get the LILO OS selection screen.

with wishes
swamytk
 
Old 04-22-2004, 01:01 PM   #3
mike9004
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks, I did the rescue thing. At the end it sent me to the shell and asked me to run a chroot command and I did that. Still when I reboot though it goes straight to windows XP. The boot loader I was using was GRUB, not LILO. From the shell I ran grub. It lists a few commands but I don't know which of those to run. Most wanted me to follow the command with a filename. So I don't really know what to do if anything at that point.
 
Old 04-23-2004, 01:04 PM   #4
KaruppuSwamy.T
Member
 
Registered: Apr 2004
Location: Chennai, India
Distribution: Mandrake 10.0/Redhat 8.0/Ubuntu 5.04/Windows XP (SP2)
Posts: 30

Rep: Reputation: 15
yes... done!

Hi mike,

Yes. almost done. Since you had dual boot running properly already before Xp reinstallation, just you have to install GRUB again... (no need to configure again! hope you have not changed the boot partition of Windows XP while reinstalling) very simple.. just run

grub-install

This will do. reboot the machine. You will have nice Grub GUI Boot prompt! Enjoy!!!!

with wishes
swamytk
 
Old 04-24-2004, 04:08 PM   #5
mike9004
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks I ran grub-install at the shell prompt and it ran something. It displayed some commands I could use. I ended up running "grub-install install_device" without any options inbetween. I rebooted and it still went right to XP. I know I could just reinstall Redhat again and get it working but I've spent so much time configuring my other install plus I would just like to know how to do it. Any ideas?
 
  


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
Just installed redhat 9.0 but I can't boot to it and I DONT have a floopy drive...??? nirav Linux - Laptop and Netbook 2 02-14-2004 12:56 PM
Can't use Installed Linux Redhat 8 on second drive neuralSea Linux - Newbie 2 09-20-2003 04:57 PM
can i get redhat boot disk(without having redhat installed) doublefailure Linux - General 7 10-23-2002 12:52 AM
Redhat 7.2 installed but can't boot? paddym Linux - Software 8 04-21-2002 08:48 PM
Redhat 7.2 installed with kernel panic in boot up paddym Linux - Software 0 01-28-2002 08:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:08 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
Open Source Consulting | Domain Registration