LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-28-2004, 09:39 AM   #1
fordsm
LQ Newbie
 
Registered: Apr 2004
Location: Nashville, TN
Distribution: Red Hat
Posts: 3

Rep: Reputation: 0
Setting active partition back to /boot after XP reinstall


I had to reinstall XP on my laptop which has Redhat Fedora and XP with Grub bootloader. I ran XP install and had it delete the C: partition and the had it create and install back to that partition. The linux, boot and swap partitions are still there. The problem is that the XP install set C: as the active partition and Grub no longer come up. I guess I need to use some tool to set the active partition to /boot. What is the best tool to use? Also, if I do that will grub work or will I have to modify grub also
 
Old 04-28-2004, 09:57 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Actually, XP overwrote the Master Boot Record (MBR) where grub was installed. linux does not care about the active partition bit. To restore grub boot the 1st install CD to rescue mode then run the following commands:
chroot /mnt/sysimage
grub-install
 
Old 04-28-2004, 10:31 AM   #3
fordsm
LQ Newbie
 
Registered: Apr 2004
Location: Nashville, TN
Distribution: Red Hat
Posts: 3

Original Poster
Rep: Reputation: 0
grub-install wants an install device. What device should I use?
 
Old 04-28-2004, 10:45 AM   #4
fordsm
LQ Newbie
 
Registered: Apr 2004
Location: Nashville, TN
Distribution: Red Hat
Posts: 3

Original Poster
Rep: Reputation: 0
Sorry, I guessed it and it works great now. Thanks for the info!!

grub-install /dev/hda
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I want my dual boot back but can't reinstall XP LinuxPadawan General 0 05-18-2005 08:11 PM
Attempt triple Boot XP/XP/Linux, active partition problem. FrankyG SUSE / openSUSE 7 03-09-2005 06:04 PM
Need boot floppy to change active partition Jldindc Linux - Newbie 1 12-13-2004 03:42 PM
Specify existing swap partition at boot when reinstall? GeirG Linux - General 2 09-11-2004 07:42 AM
How do I change the active boot partition Tayste_2000 Linux - Newbie 4 07-06-2002 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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