Thursday, August 16, 2007

How to resume Grub on a XP/Fedora system

If you install XP, then Fedora 7 on the same PC. Grub will be used as a loader for systems. However, If your XP corrupted, and re-installed. Grub will be lost. You can follow the operation listed below to resume Grub.

How to resume Grub on a XP/Fedora system:

After Boot-up using Fedora 7 Install Disk, there are four option:

- Install or upgrade an existing system
- Install or upgrade an existing system (text mode)
- Rescue installed system
- Boot from local drive

Select the 3rd option, Rescue installed system.

Follow the steps, until Rescue ask "Continue" to find your Linux installation and mount it ..., "Read-Only" or "Skip". Select "Skip".

Now you are in # shell.

type grub, the shell will change to grub>
....#grub

To check your Linux partition
grub> root (hd0,[TAB]

In my case, it's:
Possible partitions are:
Partition num: 0, Filesystem type unknown, partition type 0x07
Partition num: 1, Filesystem type is ext2fs, partition type 0x83
Partition num: 2, Filesystem type unknown, partition type 0x8e

Actually I don't know the meaning. But I guess partition 1 is my Linux.

grub> root (hd0,1)
grub> setup (hd0)

Now you can re-boot, and the Grub loader have been re-loaded.