Dual Booting Linux and Windows 2000

Dual Booting Linux and Windows 2000

Post by Joh » Sat, 16 Feb 2002 11:28:41



Hi all

I'm trying to accomplish the task of dual booting both Redhat linux
7.1 and Windows 2000.  The catch is that I already have Windows 2000
installed on two hard drives configured in a RAID-0 configuration
using a HPT370 hardware raid controller (IWILL SIDE-RAID100).  Linux
is installed on a hard-drive on IDE-0.  I tried to dual boot through
the NTLDR using the following steps:

1) created a boot linux boot image and copied it to a floppy
    dd if=/dev/hda6 of=/bootsect.lnx bs=512 count=1
    mount -t msdos /dev/fd0 /mnt
    cp /bootsect.lnx /mnt
    umount /mnt

2) I rebooted to Windows 2000 and copied the bootsect.lnx to the root
directory

3) I modified my boot.ini to append the following line
    c:\bootsect.lnx="Linux"

I rebooted the machine and received a menu where I could boot Windows
2000 and Linux and I thought I was home free.  When I chose the Linux
option, the computer just displayed a blank screen like it couldn't
find the boot image on the ide0 hard drive.  Why is this??  Is there
another way to do this?

Thanks in advance to all replies
John

 
 
 

Dual Booting Linux and Windows 2000

Post by Joh » Mon, 18 Feb 2002 15:07:29


Just an FYI...

I also tried to get this to work using LILO, but couldn't get LILO to
recognize the RAID card.  Really would love to be able to switch OSes
at boot!!


> Hi all

> I'm trying to accomplish the task of dual booting both Redhat linux
> 7.1 and Windows 2000.  The catch is that I already have Windows 2000
> installed on two hard drives configured in a RAID-0 configuration
> using a HPT370 hardware raid controller (IWILL SIDE-RAID100).  Linux
> is installed on a hard-drive on IDE-0.  I tried to dual boot through
> the NTLDR using the following steps:

> 1) created a boot linux boot image and copied it to a floppy
>     dd if=/dev/hda6 of=/bootsect.lnx bs=512 count=1
>     mount -t msdos /dev/fd0 /mnt
>     cp /bootsect.lnx /mnt
>     umount /mnt

> 2) I rebooted to Windows 2000 and copied the bootsect.lnx to the root
> directory

> 3) I modified my boot.ini to append the following line
>     c:\bootsect.lnx="Linux"

> I rebooted the machine and received a menu where I could boot Windows
> 2000 and Linux and I thought I was home free.  When I chose the Linux
> option, the computer just displayed a blank screen like it couldn't
> find the boot image on the ide0 hard drive.  Why is this??  Is there
> another way to do this?

> Thanks in advance to all replies
> John


 
 
 

Dual Booting Linux and Windows 2000

Post by Dave Uhrin » Mon, 18 Feb 2002 15:32:37


You can easily boot NT-whatever from lilo installed to the MBR:

[etc]# cat lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
lba32 # Allow booting past 1024th cylinder with a recent BIOS
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
vga = normal

image = /boot/vmlinuz-2.4.17
  root = /dev/hda5
  label = linux
  read-only

other = /dev/hda1
  label = winxp      <-  This one is NT-5.1
  table = /dev/hda

other = /dev/hda2
  label = freebsd
  table = /dev/hda

other = /dev/hda3
  label = solaris
  table = /dev/hda

image = /vmlinuz
  root = /dev/hda5
  label = old
  read-only
[etc]#

 
 
 

Dual Booting Linux and Windows 2000

Post by Joh » Tue, 19 Feb 2002 12:54:04


Dave

Are any of those OSes installed on a hardware Raid controller?  If it
is can you explain how you got linux (LILO) to recognize the raid
controller?

Thanks John



> You can easily boot NT-whatever from lilo installed to the MBR:

> [etc]# cat lilo.conf
> # LILO configuration file
> # generated by 'liloconfig'
> #
> # Start LILO global section
> lba32 # Allow booting past 1024th cylinder with a recent BIOS
> boot = /dev/hda
> message = /boot/boot_message.txt
> prompt
> timeout = 1200
> # Override dangerous defaults that rewrite the partition table:
> change-rules
> reset
> vga = normal

> image = /boot/vmlinuz-2.4.17
>   root = /dev/hda5
>   label = linux
>   read-only

> other = /dev/hda1
>   label = winxp      <-  This one is NT-5.1
>   table = /dev/hda

> other = /dev/hda2
>   label = freebsd
>   table = /dev/hda

> other = /dev/hda3
>   label = solaris
>   table = /dev/hda

> image = /vmlinuz
>   root = /dev/hda5
>   label = old
>   read-only
> [etc]#

 
 
 

Dual Booting Linux and Windows 2000

Post by Dave Uhrin » Tue, 19 Feb 2002 13:21:12



> Dave

> Are any of those OSes installed on a hardware Raid controller?  If it
> is can you explain how you got linux (LILO) to recognize the raid
> controller?

If you had looked at the config file you would have seen that all of
them had /dev/hda? locations, i.e., the master drive on the primary IDE
controller.

As to getting Linux to recognize a RAID controller, I have no idea.  I
use Linux on my desktop system and use Solaris on my server.  The other
OS which appear in that lilo.conf file are for educational usage.

I have in the past installed Linux on a system using a Promise Ultra100
TX2 controller where the hard drive was recognized as /dev/hde.  The
BIOS on that system was set to boot from SCSI first.

 
 
 

Dual Booting Linux and Windows 2000

Post by Nico Kadel-Garci » Tue, 19 Feb 2002 13:40:11




> > Dave

> > Are any of those OSes installed on a hardware Raid controller?  If it
> > is can you explain how you got linux (LILO) to recognize the raid
> > controller?

> If you had looked at the config file you would have seen that all of
> them had /dev/hda? locations, i.e., the master drive on the primary IDE
> controller.

> As to getting Linux to recognize a RAID controller, I have no idea.  I
> use Linux on my desktop system and use Solaris on my server.  The other
> OS which appear in that lilo.conf file are for educational usage.

In my experience, hardware RAID controllers have the drives appear as SCSI
drives of the same number as the individual RAID sets. For example, an
8-drive 3Ware IDE raid controller with the last 6 drives configured as RAID5
and the first two drives as mirrors will show two drives:

    /dev/sda (the mirror drive).
    /dev/sdb (the RAID5 array).

Boot with the RedHat installation CD into rescue mode and see what you see
in /proc/scsi, and which /dev/sd? drives are accessible with fdisk.

 
 
 

Dual Booting Linux and Windows 2000

Post by Joh » Wed, 20 Feb 2002 04:30:38


Thanks for your reply Nico.

I'm not at my machine currently, but using your example how do I tell
LILO to boot off of two devices (one raid array)? I've had some
experience using LILO to boot other IDE drives, but I never configured
LILO to boot a RAID array.

Thanks
John





> > > Dave

> > > Are any of those OSes installed on a hardware Raid controller?  If it
> > > is can you explain how you got linux (LILO) to recognize the raid
> > > controller?

> > If you had looked at the config file you would have seen that all of
> > them had /dev/hda? locations, i.e., the master drive on the primary IDE
> > controller.

> > As to getting Linux to recognize a RAID controller, I have no idea.  I
> > use Linux on my desktop system and use Solaris on my server.  The other
> > OS which appear in that lilo.conf file are for educational usage.

> In my experience, hardware RAID controllers have the drives appear as SCSI
> drives of the same number as the individual RAID sets. For example, an
> 8-drive 3Ware IDE raid controller with the last 6 drives configured as RAID5
> and the first two drives as mirrors will show two drives:

>     /dev/sda (the mirror drive).
>     /dev/sdb (the RAID5 array).

> Boot with the RedHat installation CD into rescue mode and see what you see
> in /proc/scsi, and which /dev/sd? drives are accessible with fdisk.

 
 
 

Dual Booting Linux and Windows 2000

Post by Nico Kadel-Garci » Wed, 20 Feb 2002 06:12:05



Quote:> Thanks for your reply Nico.

> I'm not at my machine currently, but using your example how do I tell
> LILO to boot off of two devices (one raid array)? I've had some
> experience using LILO to boot other IDE drives, but I never configured
> LILO to boot a RAID array.

> Thanks
> John

*IF* the particular hardware RAID shows the hardware-mirrored boot drive as
/dev/sda, you need to do the following steps, it just looks like a normal
SCSI device. Use the partitions as found on the disk.

How exactly does the device show up for "fdisk" reports or installation
attempts using "fdisk" with the installation CD? Or does it show up? And
what is reported by /proc/pci?





> > > > Dave

> > > > Are any of those OSes installed on a hardware Raid controller?  If
it
> > > > is can you explain how you got linux (LILO) to recognize the raid
> > > > controller?

> > > If you had looked at the config file you would have seen that all of
> > > them had /dev/hda? locations, i.e., the master drive on the primary
IDE
> > > controller.

> > > As to getting Linux to recognize a RAID controller, I have no idea.  I
> > > use Linux on my desktop system and use Solaris on my server.  The
other
> > > OS which appear in that lilo.conf file are for educational usage.

> > In my experience, hardware RAID controllers have the drives appear as
SCSI
> > drives of the same number as the individual RAID sets. For example, an
> > 8-drive 3Ware IDE raid controller with the last 6 drives configured as
RAID5
> > and the first two drives as mirrors will show two drives:

> >     /dev/sda (the mirror drive).
> >     /dev/sdb (the RAID5 array).

> > Boot with the RedHat installation CD into rescue mode and see what you
see
> > in /proc/scsi, and which /dev/sd? drives are accessible with fdisk.

 
 
 

Dual Booting Linux and Windows 2000

Post by Joh » Thu, 21 Feb 2002 13:37:44


Nico

I remember when I was installing Linux that FDISK complained about
corrupted partitions the two drives in the raid.

/proc/pci reports:

 Bus 0, device 11, function 0:
  Unknown mass storage controller: Triones Technologies, Inc. HPT366
(rev 3).
  IRQ 11.
  Master Capable Latency=120.
  I/O at 0xdc00 [0xdc07]
  I/O at 0xd800 [0xd803]
  I/O at 0xd400 [0xd407]
  I/O at 0xdc00 [0xd003]
  I/O at 0xcc00 [0xccff]

also in /var/log/messages:
  localhost kernel: hde : IC35LO20AVER07-0, ATA Disk Drive
  localhost kernel: hdg : IC35LO20AVER07-0, ATA Disk Drive

Thanks for taking the time to help, Nico

Quote:> *IF* the particular hardware RAID shows the hardware-mirrored boot drive as
> /dev/sda, you need to do the following steps, it just looks like a normal
> SCSI device. Use the partitions as found on the disk.

> How exactly does the device show up for "fdisk" reports or installation
> attempts using "fdisk" with the installation CD? Or does it show up? And
> what is reported by /proc/pci?

 
 
 

Dual Booting Linux and Windows 2000

Post by Nico Kadel-Garci » Thu, 21 Feb 2002 21:22:40



Quote:> Nico

> I remember when I was installing Linux that FDISK complained about
> corrupted partitions the two drives in the raid.

> /proc/pci reports:

>  Bus 0, device 11, function 0:
>   Unknown mass storage controller: Triones Technologies, Inc. HPT366
> (rev 3).
>   IRQ 11.
>   Master Capable Latency=120.
>   I/O at 0xdc00 [0xdc07]
>   I/O at 0xd800 [0xd803]
>   I/O at 0xd400 [0xd407]
>   I/O at 0xdc00 [0xd003]
>   I/O at 0xcc00 [0xccff]

> also in /var/log/messages:
>   localhost kernel: hde : IC35LO20AVER07-0, ATA Disk Drive
>   localhost kernel: hdg : IC35LO20AVER07-0, ATA Disk Drive

Huh. Never worked with that controller card, so I can't say what it should
look like. You're sure you had hardware RAID, not software RAID, and that
this card is in fact set up to do hardware RAID on those two drives?

- Show quoted text -

Quote:> Thanks for taking the time to help, Nico

> > *IF* the particular hardware RAID shows the hardware-mirrored boot drive
as
> > /dev/sda, you need to do the following steps, it just looks like a
normal
> > SCSI device. Use the partitions as found on the disk.

> > How exactly does the device show up for "fdisk" reports or installation
> > attempts using "fdisk" with the installation CD? Or does it show up? And
> > what is reported by /proc/pci?

 
 
 

1. Dual Boot Windows 2000 - BestLinux 2000

I have read many messages in this newsgroup about setting up a dual
boot between these 2 OS's however none of them have solved my problem.

My setup is as follows:

2 seperate HD's - First HD - Primary master - had Windows Adv. Server
2000 installed

Second HD - Primary Slave - Is where I installed BestLinux.  When
prompted where I wanted to write the MBR for LILO I chose hda - or the
drive with Windows installed.  This locked me out of my Windows 2000
OS entirely.  I then went into Linux and edited lilo.conf by
adding/editing:

    boot=/dev/hda - I changed this to boot=/dev/hdb

Then I added:
    other=/dev/hda
    label=windows

This still didn't bring windows as a boot option for me.  I added in
delay=20 and every other variation I found in these newsgroups to no
avail.  Finally I did a fdisk /mbr to get back to my windows install.
Then I reinstalled BestLinux this time putting the MBR on devb.  This
of course now locked me out of my Linux OS.  So my question is, how in
the hell do I get these two OS's to dual boot other than buying a boot
manager?  It can't be that hard.

2. es1938 stutter pain

3. Dual boot Linux & Windows 2000 - large disk

4. cron jobs

5. Setup Dual Boot Linux/Windows 2000 Server

6. rm6 6.22.01.44 --> 6.22.1

7. Can I dual boot Red Hat Linux 6.2 and Windows 2000?

8. System VERY unstable with X. Why?

9. Setup Dual Boot Linux/Windows 2000 Server

10. replacing windows 2000 with linux (NOT dual booting)

11. Can I dual boot Red Hat Linux 6.2 and Windows 2000?

12. Dual Booting Windows 2000 and Redhat Linux 7.2

13. dual boot linux and windows 2000 server