LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Another dual-boot thread... (https://www.linuxquestions.org/questions/linux-newbie-8/another-dual-boot-thread-461223/)

patdawg 07-05-2006 11:01 AM

Another dual-boot thread...
 
So, I have an Intellistation A-Pro that has one SATA drive in it with Red Hat Enterprise Linux 4 Update 2 installed, with a lot of applications and data on it that I can't mess with. What I'd like to do is add a second SATA drive and install WinXP Pro on it. What's the easiest way to setup a dual-boot like this?

acid_kewpie 07-05-2006 01:08 PM

i guess this depends on what "easy" means really. often the easiest to get something up and running is not the easiest thing to manage in the long run. *MY* preference is to do a little groundwork in the first place to benefit in the long run. in your situation, i would say remove the linux drive, put windows in and install like a normal dedicated windows system, new drive runnign as master. then put the linux drive back in as master, and the windows drive as slave. then boot into linux exactly as you always have before. then you just need to add a grub entry to the linux system to boot to the windows one. this is where the little trick comes in in that you need to make windows *think* that it is the master drive when it boots, so we tell the bios to lie via grub: http://www.gnu.org/software/grub/manual/grub.html#map basically add a new section at the bottom of the /boot/grub/grub.conf file that says something liek
Code:

title Windows
        map (hd0) (hd1)
        map (hd1) (hd0)
        rootnoverify (hd1)
        chainloader +1

this says, make the master the slave, the slave the master, use the real slave drive without looking for linux there and use it as a valid boot device. that'll then appear in the boot menu next time and off you go. the main benefit here is that windows doesn't have a clue at all that the linux drive exists. normally you'd end up having windows as the master drive and have grub on that drive too, which is really horrible, especially with Windows affinity to overwrite bootsectors without asking you. this way windwos can not damage anything and if the linux drive goes tits up, just remove it, put windows back as the real master drive and it'll still boot without a second thought.

patdawg 07-05-2006 02:37 PM

Thanks soo much dude...those tips definitely help, and I'm going to try it in an hour or two. Also, is grub a part of Linux, or something I need to install?

acid_kewpie 07-05-2006 03:48 PM

grub is redhat's bootloader of choice. it will already be installed, you just need to modify the config file.

patdawg 07-05-2006 07:41 PM

I followed your instructions to the letter, and it worked perfectly. Thanks a ton for your help. This is much better for me than having two OSs on the same disk and messing around with partitions.

acid_kewpie 07-06-2006 01:31 AM

muythoughts exactly. you'd also otherwise have been in the position that windows on install always overwrites the boot sector on the primary drive. so it you already had linux there you'd have had to reinstall grub afterwards just to get back to a level playing field.

HTH


All times are GMT -5. The time now is 09:20 AM.