LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Setting active partition back to /boot after XP reinstall (https://www.linuxquestions.org/questions/linux-general-1/setting-active-partition-back-to-boot-after-xp-reinstall-175503/)

fordsm 04-28-2004 09:39 AM

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:Pengy:

michaelk 04-28-2004 09:57 AM

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

fordsm 04-28-2004 10:31 AM

grub-install wants an install device. What device should I use?

fordsm 04-28-2004 10:45 AM

Sorry, I guessed it and it works great now. Thanks for the info!!

grub-install /dev/hda


All times are GMT -5. The time now is 04:56 AM.