also @ TechSpot: Motorola Droid 4 unboxing, hands-on video
Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Sign up or Login to participate.

Go Back   TechSpot OpenBoards > Software > The Alternative OS

Download Now:

Mixing HDD, RH 7.2 / WinXP

Thread Tools Search this Thread
  #1  
Old 05-05-2002
Justin's Avatar
TechSpot Guru
 
Location: Oregon, USA
Member since: Apr 2002, 1,595 posts
System specs
Mixing HDD, RH 7.2 / WinXP

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.
  #2  
Old 05-05-2002
Mictlantecuhtli's Avatar
TechSpot Special Forces
 
Location: Finland
Member since: Feb 2002, 4,886 posts
System specs
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.

Quote:
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.
  #3  
Old 05-05-2002
Justin's Avatar
TechSpot Guru
 
Location: Oregon, USA
Member since: Apr 2002, 1,595 posts
System specs
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
  #4  
Old 05-06-2002
Justin's Avatar
TechSpot Guru
 
Location: Oregon, USA
Member since: Apr 2002, 1,595 posts
System specs
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.
  #5  
Old 05-06-2002
Mictlantecuhtli's Avatar
TechSpot Special Forces
 
Location: Finland
Member since: Feb 2002, 4,886 posts
System specs
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*.
  #6  
Old 05-06-2002
Justin's Avatar
TechSpot Guru
 
Location: Oregon, USA
Member since: Apr 2002, 1,595 posts
System specs
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.
  #7  
Old 05-07-2002
Mictlantecuhtli's Avatar
TechSpot Special Forces
 
Location: Finland
Member since: Feb 2002, 4,886 posts
System specs
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.
  #8  
Old 05-07-2002
Justin's Avatar
TechSpot Guru
 
Location: Oregon, USA
Member since: Apr 2002, 1,595 posts
System specs
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.
  #9  
Old 05-08-2002
Mictlantecuhtli's Avatar
TechSpot Special Forces
 
Location: Finland
Member since: Feb 2002, 4,886 posts
System specs
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.
Closed Thread

Similar Topics
Topic Replies Forum
Mixing different brands of ram? 4 Other Hardware
Mixing Ram 7 Processors and Motherboards
Mixing RAM 14 Processors and Motherboards
Mixing RAM 3 Overclocking, Cooling and Modding
mixing memory 4 Other Hardware

Thread Tools Search this Thread
Search this Thread:

Advanced Search
All times are GMT -4. The time now is 12:29 PM.