If any os like Win XP is installed on a sytem running linux, the linux boot loader GRUB gets overwritten. This creates problems as the windows boot loader NTLDR is unable to boot linux. To solve this issue simply restore GRUB as the boot loader and you can dual boot both linux and XP. To restore GRUB try any one of the following methods:
- Insert a linux installation CD and enter the Rescue mode. If such a boot option is not visible, type "linux rescue" at the boot : prompt. At the terminal which opens, type the following one after the other, where X is the partition containing linux. To find this simply type "root (hdO," and hit the tab key, which will display the partitions on your disk. Choose X as the one with type Ox83 :
- Boot into a live CD environment. Open a terminal and type the following commands sequentially :
find /boot/grub/stage1 - output will be like (hdO,X)
- The third method is using the graphical Recover options that come with certain distros of linux. Simply enter the recovery mode with the installation CD in the drive during boot. There will be automated recovery options for restoring GRUB. However this is not available with all distros of linux.