Friday, July 01, 2005

Change Win ME to Win XP while other Linux OSs on the same hdd

A computer was installed Windows ME on C: (/dev/hda1), Fedora Core 3 (/dev/hda7) and Slackware 10.1 (/dev/hda6). After formatting C: and installing Windows XP to that drive, it was found that the GRUB vanishes. How to fix the problem?

  1. Insert FC3 installation disk into your CD drive and boot it from CD.
  2. You will get boot : prompt
  3. boot : linux rescue
  4. Go through the on screen tasks like Language Selection (EN), Keyboard Selection (US), Enable Network Interface (NO) etc. Now you will be presented with a screen, which system to restore. There was two options /dev/hda6 and /dev/hda7. Select to /dev/hda7 as Fedora Core 3 was installed in that drive. The system will now be mounted.
  5. A message Your system has been mounted under /mnt/sysimage will be shown to you.
  6. You will be automatically placed on a shell. Now do the following tasks in the shell.
  7. chroot /mnt/sysimage (you will go to root environment with this)
  8. grub-install /dev/hda
  9. Now you will be informed that the boot image is successfully transferred to /dev/hda. Now type exit to exit from the root environment and again type exit to exit from the shell and this will reboot your computer.
  10. Viola...........you have finished the job. You can see your old GRUB with all options and new Win there.

0 Comments:

Post a Comment

<< Home