LinuxQuestions.org
Visit Jeremy's Blog.
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 01-26-2004, 11:47 AM   #1
jonsmel
LQ Newbie
 
Registered: Jan 2004
Posts: 2

Rep: Reputation: 0
Angry Dual Windows XP and Red Hat 9 Grub Problems


Help someone,

I am new to Linux and I installed a dual boot with windows XP
I removed Red Hat 9 and when I restarted the grub loader of course is no longer there and I can't get back into windows.
If someone can help me get around this Please.
I don't know if reinstalling Redhat would fix the problem or not.

Thanks,

Jon
 
Old 01-26-2004, 11:57 AM   #2
Kilka
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Mandrake, Redhat, openBSD, Gentoo
Posts: 84

Rep: Reputation: 15
redhat rescue....

I believe RH9 disk1 includes a rescue feature. You should be able to install a bootloader with this rescue feature. At least you can with mandrake 9.2.


-Kilka
 
Old 01-26-2004, 12:15 PM   #3
jonsmel
LQ Newbie
 
Registered: Jan 2004
Posts: 2

Original Poster
Rep: Reputation: 0
I just want to get it to boot back into windows so I can save some of my info, then I can reformat and setup Linux differently.
I just want to get the boot loader to boot into windows.

Any other help.

Jon
 
Old 01-26-2004, 12:52 PM   #4
Kilka
Member
 
Registered: Sep 2003
Location: Canada
Distribution: Mandrake, Redhat, openBSD, Gentoo
Posts: 84

Rep: Reputation: 15
RIP linux boot

that would work, all it does is detect OS's, and makes entries in them for the boot loader. So it takes like no time at all to reinstall the bootloader. If you just want to read some stuff from the disk you could try RIP linux as well, it will mount an ntfs partition (I think, check to make sure) and you can copy it whereever....to another partition or something.

-Kilka
 
Old 01-26-2004, 10:02 PM   #5
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
Put in your XP cd, select repair run Recovery Console.

At the command line type: FIXMBR.

Grub will be removed and windows XP Will boot.

Excerpt from http://www.ntfs.com/mbr-damaged.htm

The simplest way to repair or re-create MBR is to run Microsoft's standard utility called FDISK with a parameter /MBR, like

A:\> FDISK.EXE /MBR

FDISK is a standard utility included in MS-DOS, Windows 95, 98, ME.

If you have Windows NT / 2000 / XP, you can boot from startup floppy disks or CD-ROM, choose repair option during setup, and run Recovery Console. When you are logged on, you can run FIXMBR command to fix MBR.
 
Old 01-26-2004, 10:34 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Do a google search for NT Grub boot howto.
You may not need to reinstall. I have WindowXP/Mandrake dual boot and use the NT loader (XP is NT by the way) to boot into linux.
 
Old 01-27-2004, 04:34 AM   #7
zatka
Member
 
Registered: Dec 2003
Distribution: Fedora 7
Posts: 75

Rep: Reputation: 15
this link might help u.........

http://www.geocities.com/epark/linux...w2k-HOWTO.html
 
Old 01-27-2004, 02:38 PM   #8
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
I thought in his post, he said he already "nuked" fedora?
 
Old 01-28-2004, 12:32 PM   #9
grandpa-geek
LQ Newbie
 
Registered: Jan 2004
Distribution: mostly Redhat
Posts: 6

Rep: Reputation: 0
I think you need to do what Eqwatz suggests. When either Grub or Lilo install, they copy the Master Boot Record (MBR) to a save file and replace it. You then need the Linux system installed to boot. (BTW, if you didn't hose your /boot partition, the MBR may still be saved there. Get in with a rescue disk and copy it off to something before you do anything else.) Before you delete Linux, you need to restore the MBR. You could try to boot the RH 9 CD in rescue mode or see if you can use something like Knoppix as a rescue.
 
Old 01-28-2004, 02:07 PM   #10
Eqwatz
Member
 
Registered: May 2003
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341

Rep: Reputation: 30
If you have a successful install of linux, there will be a backup of the original MBR. Frankly though, it is easier if everything gets hosed up to restore XP MBR with above technique. Then, you can boot up RIP (do a search on http://www.google.com/linux for: recovery is possible) I have personally never successfully re-installed grub using Rip. I have successfully edited a mounted old_system/etc/lilo.conf with the correct information; mounted that over /etc using the --bind arguement with mount; cp mounted /sbin/lilo to /sbin/lilo (on RIP); mounted old_system-/boot over /boot (again using --bind); then running /sbin/lilo.

People tell me that the process for grub is almost identical, but I never held my lips in the exact right position to make it work.

Stage 1.5, and stage 2 of grub is the "boot.b" binary file you see in your /boot directory of Linux.
 
Old 01-29-2004, 09:12 AM   #11
doctorv
LQ Newbie
 
Registered: Nov 2003
Distribution: Fedora core 1
Posts: 7

Rep: Reputation: 0
Try this:

1- Insert RH9 cd1
2- In the first menu type "linux rescue"
3- Follow on screen instructions
4- You don't need to edit grub.conf
5- Type "grub-install /dev/mbr" or "grub-install /dev/hda"
6- Reboot your system.
7- You system should now work without doing other changes.
 
  


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
Cannot dual boot Windows XP with Red Hat 9 fries321 Linux - Newbie 6 08-03-2006 09:24 AM
Dual booting Windows 98 and Red Hat 6 psarangi Linux - Software 14 07-07-2004 09:19 PM
GRUB, MBR, red hat 9 winxp in dual hard disks samik Linux - Newbie 2 10-15-2003 02:29 PM
how can i dual boot between windows and red hat? phancom Linux - Newbie 2 09-17-2003 09:53 AM
grub + Red hat Linux 8 + Windows XP Naru Linux - Newbie 8 12-10-2002 07:23 PM

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

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