Read on full site | Join TechSpot! (it's free) | Bookmark / Share this



Mixing HDD, RH 7.2 / WinXP

Justin
05-05-2002, 01:22 AM
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.

Mictlantecuhtli
05-05-2002, 08:20 AM
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.

Ad
05-05-2002, 08:20 AM
  

Justin
05-05-2002, 05:18 PM
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

Justin
05-06-2002, 02:07 AM
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.

Mictlantecuhtli
05-06-2002, 12:14 PM
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*.

Justin
05-06-2002, 04:39 PM
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.

Mictlantecuhtli
05-07-2002, 11:44 AM
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.

Justin
05-07-2002, 10:29 PM
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.

Mictlantecuhtli
05-08-2002, 11:54 AM
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.

Post a reply, see related topics & more

Tip: Download Advanced SystemCare 3 Free - Clean, Repair, Protect & Optimize your PC.



 Top Technology News

TechSpot Blog: Disable Windows automatic check for solutions after a program crashes

Weekend Open Forum: Google Chrome OS and the future of cloud computing

Tech Tip of the Week: Unearth Region-Specific Windows 7 Themes

Sony: PlayStation 3 to be 3D-capable via firmware update

iSuppli: DDR3 to account for over half of DRAM shipments by Q2 2010

Facebook named third most popular video website behind YouTube and Hulu

Patriot introduces new PS-100 SSD series

Sony working on digital store for music, movies, books

More Tech News

  
 Software Downloads

Norton Virus Definitions 2003-07 November 20, 2009

AVG Anti-Virus Updates November 20, 2009

Norton Virus Definitions 2008-09 November 20, 2009

avast! Virus Definitions November 20, 2009

McAfee SuperDAT Update 5808

Kaspersky Anti-Virus Update November 20, 2009

Google SketchUp 7.1.6087

More Downloads



Copyright © 1998-2009 TechSpot.com. TechSpot is a registered trademark. All Rights Reserved.