LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cant dual boot........hope its not too late (http://www.linuxquestions.org/questions/linux-newbie-8/cant-dual-boot-hope-its-not-too-late-315198/)

Jablomie 04-20-2005 03:37 AM

Cant dual boot........hope its not too late
 
I recently tried to add FC3 to a box that already had XP on it. I made a linux partition using Partition Magic 8. After the it did what it does and the computer restarted it would not allow me to boot to XP. So I am assuming that there was a partitioning problem. I continued with the install of FC3 and I am afraid that I may have lost all of my files. Is there anyway to salvage this situation. I assume my windows partition isn't mounting. What do I do?

Lazarus 04-20-2005 04:18 AM

Lets assume XP is still there on the first partition. You can check using the linux version of fdisk.
Your boot sector may have been overwritten. If you boot linux using grub you can add an entry for winxp in
/boot/grub/grub.conf
To help you here is a copy of one of mine

#
# This is copied to grub.conf when makeing boot floppies
#
# written 2nd May 2002
#
title hda1 (linux)
root (fd0)
kernel /boot/vmlinuz ro root=/dev/hda1
title hda2 (linux)
root (fd0)
kernel /boot/vmlinuz ro root=/dev/hda2
title cdrom
root (fd0)
kernel /boot/vmlinuz ro root=/dev/hdc init=/sbin/recover
title windows or dos partition 1
rootnoverify (hd0,0)
chainloader +1
title windows or dos partition 2
rootnoverify (hd0,1)
chainloader +1
title floppy ... hit enter after invalid system disk
# note floppy is set to fd1 because on cd boot
# fd0 is used by the boot image
rootnoverify (fd1)
chainloader +1

You could also repair the boot sector using an xp install disk in recovery mode. I am not sure of the procedure for this. It would also mean that your linux would only be bootable from floppy or cd.
Hope this puts you in the right direction

Jablomie 04-24-2005 02:29 PM

Lazarus............thank you so much.........
This site is amazing.

masonm 04-24-2005 02:39 PM

If you post your /etc/fstab file and your /boot/grub/menu.lst file here we can help further if a grub edit alone doesn't help.


All times are GMT -5. The time now is 03:48 PM.