LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   dual boot - a little different (https://www.linuxquestions.org/questions/mandriva-30/dual-boot-a-little-different-216116/)

gwkampfengerl 08-11-2004 04:08 AM

dual boot - a little different
 
hi guys, i have a little problem and i hope that someone here can help me a bit. first of, i did quite extensive search both an the fora here and on google, however, i didn't find a solution to my problem.

i have to work with a very specific statistical tool, that only runs under windows so i have to set up a dual boot system. nothing too special about this.

however, i have installed my mandrake 10 ce in /dev/hda and plan to install xp on /dev/hdb, my second hard disk. everything i found about dual booting is setting it up when xp existed and the linux distribution will be installed later on. my problem is just the other way round. since i guess that when installing xp it will automatically overwrite the master boot record i'm not sure how to edit my lilo.conf in order to set up a working dual boot. did anybody had to set up a system like this? any help is greatly appreciated...

ppuru 08-11-2004 04:18 AM

After installing XP, boot your system with Disc 1 of the Mandrake distribution cds. Get into rescue mode. You should find an option to reinstall lilo on the MBR.

gwkampfengerl 08-11-2004 04:23 AM

Quote:

Originally posted by ppuru
After installing XP, boot your system with Disc 1 of the Mandrake distribution cds. Get into rescue mode. You should find an option to reinstall lilo on the MBR.
thanks for the very quick anwer ppuru. i hope it works that way, will try it out :)

gwkampfengerl 08-11-2004 04:39 AM

hm, one more question just arose. when i try to boot xp it says that some files (i guess the mbr things) have to be written to /dev/hda and since i have 3 linux compatible partitions on /hda, xp obviously can't write anything to my first hard disk.

should i create a little win compatible partition on /dev/hda or is there a known workaround to this problem?

pingu 08-11-2004 04:50 AM

Do you have XP installed already? If so, 'C:' is assigned to hdb1. When you create a Win-partition on hda this will be 'C:', hdb1 is 'D:' This will require a reinstall of Windows. (Really smart, isn't it?...)
Maybe you could try this instead: When you want to boot Windows, enter BIOS setup and change disk 1 to "not installed". Now XP recognizes hdb as the first disk, and puts what it needs in C:
Not all BIOS's boot from a slave, you might have to put that disk on secondary master. Check your booting-options in BIOS first.
No guarantees, but I do believe it should work. If not, I don't think it should ruin anything? Well, it's on your own risk anyway...

gwkampfengerl 08-11-2004 05:09 AM

Quote:

Originally posted by pingu
Do you have XP installed already? If so, 'C:' is assigned to hdb1. When you create a Win-partition on hda this will be 'C:', hdb1 is 'D:' This will require a reinstall of Windows. (Really smart, isn't it?...)
Maybe you could try this instead: When you want to boot Windows, enter BIOS setup and change disk 1 to "not installed". Now XP recognizes hdb as the first disk, and puts what it needs in C:
Not all BIOS's boot from a slave, you might have to put that disk on secondary master. Check your booting-options in BIOS first.
No guarantees, but I do believe it should work. If not, I don't think it should ruin anything? Well, it's on your own risk anyway...

hello pingu, thanks for your replay. i have not installed xp already, that's the fucking problem... :D

i thought at the way you described (disabling hda,...) already, however my motherboard is pretty old and that won't work unfortunately...

hm... *me keeps thinking*

pingu 08-11-2004 06:25 AM

In that case you can safely create a 'C:\' partition on hda.
Make it the very first partition, now I don't know this but I do believe you'll get problems if the first partition is linux... Microsoft doesn't like penguins, you know...
Of course, you could always try, I could be wrong - must happen some day, right? :p

vectordrake 08-11-2004 11:22 AM

What I always do:

Unplug the linux drive from the controller and put the drive intended for Windows on the first plug (set the jumpers to be master for this). Install Windows. Pull the drive off the plug and replace your Linux drive to its rightful place as first in line. Put your jumpers back to slave on the Windows drive (where it should be!) and put it back on the second plug of the controller. Boot back to Linux and add the Windows drive (partition) to your /etc/lilo.conf or /boot/grub/menu.lst. You will have your dual boot with Windows second and Linux first. You will have no bootloader problems and you also have the benefit of being able to use either OS independantly of the other this way too (eg: pull one drive and run the other alone).

The only thing you'll need to do to your bootloader config file is to "fool" windows into thinking its still on the first drive. So, for /etc/lilo.conf
Code:

other="windows"
root=/dev/hdb
boot-as=0x80 #those are zeros

and /boot/grub/menu.lst
Code:

title Windows XP
rootnoverify (hd1,0)
map (hd0,0) (hd1,0)
map (hd1,0) (hd0,0)
makeactive
chainloader +1

should work. Good luck.


All times are GMT -5. The time now is 01:14 AM.