Linux - Use Windows boot loader to boot Fedora (boot.ini)

Partition Allocation
/dev/sda1 20G - Windows XP (NTFS)
/dev/sda2 88G - Data (NTFS)
/dev/sda3 10G - Fedora 9 (ext3)
/dev/sda4 2G - SWAP (swap)

1. install Windows XP
create C:\ with 20G
create D:\ with 88G
install Windows on C:\

2. Install Fedora 9
create \ paratition on /dev/sda3
create SWAP partition on /dev/sda4
install GRUB on /dev/sda3
install Fedora on /dev/sda3

3. Create Linux boot configuration file
CD boot
type "linux rescue" or Select "Rescue installed program"
choose language "English"
choose keyboard "US"
Setup Network "No"
Rescue "Continue"
type "chroot /mnt/sysimage"
type "dd if=/dev/hda1 of=/grub.lnx bs=512 count=1"

Insert USB disk
type "fdisk –l" to list out the inserted USB
type "cd /mnt"
type "mkdir usb"
type "mount /dev/sda1 /mnt/usbdisk"
type "cp /grub.lnx /mnt/usbdisk"
type "umount /mnt/usbdisk"

Reboot into Windows XP

4. Edit Windows Boot menu
copy grub.lnx into c:\Windows\
change the file attribute as Read-only
edit boot.ini
# add the line
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /fastdetect /NoExecute=OptIn
c:\Windows\grub.lnx="Fedora 9"

Comments