Quote:
|
Originally Posted by MasterKevossavi
I am using a Western Digital 100gb ultra ata 133 drive for Windows (primary master).
The other hard drive is a Maxtor 40gb ata drive (sorry, don't know the exact specs) to have Fedora on.
I want to dual boot to both Windows XP, and Fedora. I know that I can boot Fedora with the boot disk from installation, but my problem is that Grub just hangs.
Is there a way to use the MS bootloader instead of Grub? Or another way to get Grub to work (for sure)?
Thanks
|
Hi MasterKevossavi!!
I have something to Dual-boot your pc with Windows XP and Fedora Core or any other Linux distr without messing-up the MBR with GRUB. Follow the next steps to get it:
1. If you have already installed Windows XP and Fedora with the GRUB loader installed on the MBR, do the following:
- Insert your WindowsXP installation CD and reboot your computer.
- When the computer boots with the WinXP CD, use the recovery mode to get into the console
- use the commands "fixmbr" and "fixboot" (to restore your MBR, GRUB won't load again the nex time you boot your system)
- reboot your pc
2. Now you would be able to boot Windows xp without the GRUB menu, if it doesn't appear, follow the next:
- Insert your Fedora CD/DVD (it's better if you have the RescueCD of FC), reboot your computer in rescue mode to get into the console mode.
- Install GRUB on the first sector of the /boot partition. DO NOT INSTALL IT ON THE MBR!.
- If you are performing the Fedora Core installation, for the "Boot Loader Installation" screen:
Select "Use GRUB as the boot loader"
- Select Install Boot Loader record on "...First sector of boot partition".
- After finishing the FC installation, reboot into Linux. If you don't have a boot disk, try booting in linux rescue mode
If you already have Linux installed:
- Run the following command (e.g. assuming /boot is /dev/hda2): grub-install /dev/hda2.
- If you don't know which partition contains /boot, run the df command and check the output.
Edit /etc/grub.conf and make sure there is an entry for your version of Windows.
Determine which partition contains the /boot partition by running the df command. You'll see output like this:
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda3 8665372 1639580 6585612 20% /
/dev/hda2 46636 5959 38269 14% /boot
/dev/hda6 513776 189504 324272 37% /osshare
none 256624 0 256624 0% /dev/shm
From this output, we see that /boot is on /dev/hda2.
- Make a copy of the Linux boot sector onto a floppy or onto a FAT32 partition. We'll name this copy linux.bin.
To make a copy onto a floppy:
- Mount the floppy drive if it's not mounted (assumes /mnt/floppy exists): mount -t msdos /dev/fd0 /mnt/floppy
- Run the following command: dd if=/dev/hda2 of=/mnt/floppy/linux.bin bs=512 count=1
- Substitute the path for the if= parameter (the input file) with the appropriate partition from the previous step. E.g., set if= to /dev/hda2.
To make a copy onto a FAT32 (vfat) partition:
- Mount the FAT32 partition if it's not mounted yet. If it isn't listed in the df output, it hasn't been mounted yet. Check out steps 3a-3c for mounting a FAT32 partition on the "Share Partitions HOWTO".
- Run the following command: dd if=/dev/hda2 of=/osshare/linux.bin bs=512 count=1
- Substitute the path for the if= parameter (the input file) with the appropriate partition from the previous step. E.g., set if= to /dev/hda2. Substitute the path for the of= parameter (the output file) with whatever is appropriate for your system. The example here (of=/osshare/linux.bin) is for copying onto a FAT32 partition called osshare.
Reboot into Windows
Copy the linux.bin file to C:\
Run notepad and edit C:\boot.ini. Note that C:\boot.ini is a hidden system file, so it probably won't show up in Windows Explorer. To edit the file, try: Start->Run and enter: notepad C:\boot.ini. Add the following line at the end:
c:\linux.bin="Fedora Core"
- If your C: filesystem is NTFS (not FAT32), you must edit C:\boot.ini as a user with administrator-level privileges.
To make C:\boot.ini writable, you can either :
Use Explorer:
-Go to Tools->Folder Options->View and select Show hidden files and folders and deselect Hide protected operating system files (Recommended).
- Right-click on the file, view the Properties and uncheck Read-only. You can now edit the file.
- After editing the file, restore the settings to their original state.
Use the command-line:
Make the file writable: attrib -R -S -H C:\boot.ini.
After you've finished editing the file, put the settings back: attrib +R +S +H C:\boot.ini
Reboot your computer and you will see the MS Boot Loader and you will be able to choose either Windows XP or Fedora Core!!
that's all