LarryJ
15th October 2006, 11:21 PM
After many trips to "Google", I succeeded in getting XP Pro installed on my second SATA drive (SATA2) and Fedora on my first SATA drive (SATA1, that is Serial ATA drive one). Both drives use the SATA IDE controllers (SATA1 and SATA2) provided by my MB an ASUS P4800E. I know dual boot has been previously covered but I couldn't find a post that matched my situation. Hope this helps someone.
The procedure:
0. Obviously, the drives should be blank and without anything you want to save. This will erase both drives.
1. Physically connect both SATA drives inside your PC case with the drive cable SATA1 going to the drive you have labeled in pencil Fedora. The drive cable from SATA2 should connect to the second SATA drive you should label as XP.
2. Connect a power cable to the SATA2 drive (the XP drive) but not to the Fedora (SATA1) drive.
3. Unearth your XP disk and install XP on SATA2 by booting from your XP/Windows Setup CD. Since the other drive (which is connected to SATA1) is not powered up, XP should be presented with only one drive choice upon which to install itself (mainly SATA2, the second serial HD) Install then remove the XP CD
4. Verify that XP boots from SATA2.
5. Power down the PC. Disconnect power cable from SATA2(XP) and connect a power cable to SATA1(Fedora). Boot from your Fedora ISO install CD or DVD and install Fedora on SATA1.
6.Remove the Fedora ISO DVD/CD Reboot and verifiy that Fedora boots.
7. Power down the PC then make sure both SATA drives have a power connector attached. (Connect a power cable to each drive (SATA1 and SATA2)
8. Enter BIOS Setup by hitting Del during boot. (Other keys work on other systems but DEL works with the ASUS P4800E) Once in bios setup, specify that HD 3 has boot priority. This means that the HD connected to SATA1 will be looked at for a boot loader after the system looks at your CD/DVD ROM and Floppy. There bios should find grub booting should continue. Save and continue booting.
9. Fedora should boot. Login as root. Edit /etc/grub.conf with your favorite editor (I use gedit).
You'll be adding the very last seven lines as shown below. (Nine lines counting the blank lines at the beginning and end)
-----------Exerpted contents of my /etc/grub.conf-----------------------------
# grub.conf generated by anaconda and modified by LJ 10/15/06
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda SATA IDE 1 SATA2 is switched (/dev/sdb) and contains XP
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title Fedora Core (2.6.17-1.2157_FC5smp)
root (hd0,0)
kernel /vmlinuz-2.6.17-1.2157_FC5smp ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.17-1.2157_FC5smp.img
title MS Windows XP Pro --on SATA2--
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
---------------End of grub.conf file ----------------
The lines just above beginning with "title" and ending with "chainloader" are the key. hd1,0 refers to the second hard drive (connected to SATA2) , first partition which linux mounts as /dev/sdb1. hd0,0 refers to the first hard drive , first partition, which we connected to SATA controller slot SATA1 as labeled on the MB.
Upon reboot, you should see the grub menu with Fedora and XP offered as choices.
Hope this helps someone. I'm a Fedora beginner with one year experience but I can tell you this scheme does work here for me.
I rigged up a power switch on the back side of the case. When I am using Fedora (almost 99% of the time now), I do not supply power to the SATA1 XP drive. So it isn't spinning and wearing out and getting confused. When I need XP to power up Quicken, I power down, flip the switch, power up, then select XP from the grub boot menu.
Larry
REF: http://ask.metafilter.com/mefi/47609
(Search for /boot/grub)
The procedure:
0. Obviously, the drives should be blank and without anything you want to save. This will erase both drives.
1. Physically connect both SATA drives inside your PC case with the drive cable SATA1 going to the drive you have labeled in pencil Fedora. The drive cable from SATA2 should connect to the second SATA drive you should label as XP.
2. Connect a power cable to the SATA2 drive (the XP drive) but not to the Fedora (SATA1) drive.
3. Unearth your XP disk and install XP on SATA2 by booting from your XP/Windows Setup CD. Since the other drive (which is connected to SATA1) is not powered up, XP should be presented with only one drive choice upon which to install itself (mainly SATA2, the second serial HD) Install then remove the XP CD
4. Verify that XP boots from SATA2.
5. Power down the PC. Disconnect power cable from SATA2(XP) and connect a power cable to SATA1(Fedora). Boot from your Fedora ISO install CD or DVD and install Fedora on SATA1.
6.Remove the Fedora ISO DVD/CD Reboot and verifiy that Fedora boots.
7. Power down the PC then make sure both SATA drives have a power connector attached. (Connect a power cable to each drive (SATA1 and SATA2)
8. Enter BIOS Setup by hitting Del during boot. (Other keys work on other systems but DEL works with the ASUS P4800E) Once in bios setup, specify that HD 3 has boot priority. This means that the HD connected to SATA1 will be looked at for a boot loader after the system looks at your CD/DVD ROM and Floppy. There bios should find grub booting should continue. Save and continue booting.
9. Fedora should boot. Login as root. Edit /etc/grub.conf with your favorite editor (I use gedit).
You'll be adding the very last seven lines as shown below. (Nine lines counting the blank lines at the beginning and end)
-----------Exerpted contents of my /etc/grub.conf-----------------------------
# grub.conf generated by anaconda and modified by LJ 10/15/06
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda SATA IDE 1 SATA2 is switched (/dev/sdb) and contains XP
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
#hiddenmenu
title Fedora Core (2.6.17-1.2157_FC5smp)
root (hd0,0)
kernel /vmlinuz-2.6.17-1.2157_FC5smp ro root=/dev/VolGroup00/LogVol00
initrd /initrd-2.6.17-1.2157_FC5smp.img
title MS Windows XP Pro --on SATA2--
root (hd1,0)
savedefault
makeactive
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
---------------End of grub.conf file ----------------
The lines just above beginning with "title" and ending with "chainloader" are the key. hd1,0 refers to the second hard drive (connected to SATA2) , first partition which linux mounts as /dev/sdb1. hd0,0 refers to the first hard drive , first partition, which we connected to SATA controller slot SATA1 as labeled on the MB.
Upon reboot, you should see the grub menu with Fedora and XP offered as choices.
Hope this helps someone. I'm a Fedora beginner with one year experience but I can tell you this scheme does work here for me.
I rigged up a power switch on the back side of the case. When I am using Fedora (almost 99% of the time now), I do not supply power to the SATA1 XP drive. So it isn't spinning and wearing out and getting confused. When I need XP to power up Quicken, I power down, flip the switch, power up, then select XP from the grub boot menu.
Larry
REF: http://ask.metafilter.com/mefi/47609
(Search for /boot/grub)