Mixing HDD, RH 7.2 / WinXP

Status
Not open for further replies.

Justin

Posts: 914   +0
OK.

Here's the situation.

HDD 1 is a WinXP HDD

HDD2 is a redhat 7.2 HDD

Currently, you have HDD2 as the only HDD on the system, as primary master, linux is the only OS. Now, I want to make HDD1 as the primary master and dual-boot that way. I can already boot into XP, but what do I have to change to be able to boot into linux as well? I read through the dual boot guide but that was kinda not what I was looking for, since it is assuming you already have an OS installed and are doing a fresh install; in this case both OS's were installed seperately at seperate times.

Again, originally HDD2 was primary master, now it is primary slave, and HDD1 is primary master with WinXP.

I was told it was quite easy, how would I go about doing this? Thanks a lot.
 
Set your computer to boot from primary slave disk, then:

Boot to Linux. Type df. It should tell which partition is "/", ie. boot partition. It should be /dev/hdb1 or something like that. You also should have XP partition mounted, in this example it's /mnt/winxp.

Originally posted by Phantasm66:
this is what you do:

/sbin/lilo

-----should say that it has added linux sucessfully...., then:

dd if=/dev/hdb1 of=/mnt/winxp/bootsect.lin bs=512 count=1

adapt the dd command for any changes to mount point or device name if applicable.

In other words, put your / partition device name there, in "if=" section. This should copy the bootsector to XP root directory, ie. to C:\BOOTSECT.LIN

Then reboot, go into XP, and add this

c:\bootsect.lin="Red Hat Linux"

to the bottom of boot.ini which is located in c:\ (hidden and read only by default.)

If you now reboot again, you will be able to boot linux without the boot disk.
Just set your computer to boot from primary master again, and it should work.
 
I can't boot to linux if the HDD is primary slave. On boot, it gives me a kernel panic saying it cannot find init, and several bad access errors to /hda1.

The WinXP HDD does not have LILO as the bootloader, which is why I can't just mount it. Linux will not boot unless it is the primary master, how can I fix this?

Thanks again
 
Ok scratch that. I found what I needed to fix and changed it myself, everything worked fine and I can now boot *from a floppy* into Linux.

LILO is on the second HDD and is not on MBR, so is it still possible to modify XP's bootloader to boot from that HDD? I tried to mount the XP partition, however it refused to mount it because it was NTFS.
 
dd command doesn't require partitions to be mounted, you could use /dev/hda1 or whatever your XP partition is instead of /mnt/winxp.
Then again, if ntfs support is compiled to kernel, you could mount it by mount -t ntfs *xp partition here* *mount point*.
 
Hmm... didn't work.

I wasn't able to mount the XP partition so I just transferred bootsect.lin via FTP to the XP partition instead, and I added the entry. When I select redhat however, it just gives me a blank screen with a blinking cursor, nothing more.
 
hmm, Linux was installed when that hdd was master, not slave, and now Linux doesn't find the boot files as it's slave..
Grub could handle this, I'm not sure how LILO behaves. And I've never used NT bootloader to boot to Linux. I'll see what I can find out about this.
 
Thanks a lot. I now reinstalled Linux with the HDD as seconday master, I can boot just fine from a bootdisk, but regardless of what I put in boot.ini (whether its path or the actual disk/location) and regardless of whether or not I point to bootsect.lin it either just gives a blank screen or restarts.
 
Could you post the contents of /etc/lilo.conf?
Lilo doesn't seem to be installed correctly for some reason, or bootsect.lin isn't created correctly.
Lilo should be installed to the first sector of your Linux disk, not to MBR. Then, the first sector from that disk should be copied to c:\bootsect.lin and boot.ini should point to this file. Once again, I repeat that I haven't used NT bootloader for this purpose & I don't use lilo, so I can't guarantee that this will work.
 
Status
Not open for further replies.
Back