LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   dualboot for winxp and linux but diff hard drive (https://www.linuxquestions.org/questions/linux-newbie-8/dualboot-for-winxp-and-linux-but-diff-hard-drive-178446/)

lafarga 05-06-2004 12:40 AM

dualboot for winxp and linux but diff hard drive
 
good day....

how can i add my redhat9 on the winxp boot menu selection.
my 1st hardisk is installed w/ win98 and winxp and
my 2nd hardisk is installed w/ redhat9.

hylke 05-06-2004 01:15 AM

I don't know how to do that, but an other posibility is to write your lilo/grub to mbr of your 1st harddisk, then change your lilo.conf/grub.conf so it can boot your windowses, and then run lilo/grub(im not shoure about this)

nonperson 05-06-2004 02:46 AM

first add lilo to the MBR of it's drive (/dev/hdb?)
than do a 'dd if=/dev/hdb of=~/bootsect.lnx bs=512 count=1'
this will copy your drives boot sector to your home directory, the file will be called "bootsect.lnx" than get the file onto your windows xp C:\ drive.
edit your windows boot.ini file ( you can use msconfig too I think ) and enter the line "c:\bootsect.lnx="Nonperson iz 50 L337".
Thats all there is to it, basically you put your linux drives boot sector where the windows loader can find it.
Now i've never dual booted from two hard drives before, so I don't know if this will work or not, but you might want to try this instead:
If windows can see your linux drive, and assigns it a drive letter, than you may be in luck. Try and just add the drive letter to your 'boot.ini' file, just a line that says "f:\" or whatever. Windows might be able to do it that way, keep your fingures crossed.........

lafarga 05-06-2004 05:30 AM

many thanks. it worked!!!!


All times are GMT -5. The time now is 04:08 PM.