Click to See Complete Forum and Search --> : linux 7.0 + win 2000 dual boot


lienje
10-28-2002, 06:12 AM
Ok I wil lay as much detail down as to what I have done and the way every partition is set up and labeled.

hda2 2008mb ntfs (windows 2000) Is ntfs srewing this up?
hda5 219mb Linux swap
hda6 4698mb linux native
hda7 1066mb linux swap
hda8 6000mb linux native (x windows)

I have a 40 gig hard drive.
I installed the lilo in hda6 under master boot record (mbr)
When I installed hda8 partition of Linux 7.0 I put the lilo in the bootsector. By the way both partitions of linux are the same version and kernel. The kernel is 2.2.16-22 (Guniness).

I typed in these commands to get the linux file and placed that
next to boot.ini
I renamed boot.ini to BOOTSEC.LNX="LINUX"
I then restarted my PC to get a invalid boot file and it went strait
to the c:/winnt folder and booted windows 2000.


# Begin /root/ntset
/sbin/lilo &&
dd if=/dev/hda6 of=/bootsect.lin bs=512 count=1 &&
mount /dev/hda1 /w2k &&
cp -f /bootsect.lin /w2k
# End /root/ntset

I used the command mcopy bootsec.lnx a:
Is this that the right command to use?
Is lilo a option that appears on my boot screen that lets me select what OS to choose?
I also am wondering how to boot my hda8 partition.

I am very new to this and have worked on this all weekend browsing sights and messing with thes commands in linux.
I will also provide some more details later on if they are requested.

Verry respectfully,
Jesse

mdwatts
10-28-2002, 06:54 PM
You renamed boot.ini to BOOTSEC.LNX="LINUX"?

See if these G4L search results for 'lilo boot.ini' (http://www.google.com/linux?hl=en&lr=&ie=ISO-8859-1&q=lilo+boot.ini) help as I'm sure you will find plenty of tutorials for setting up and using the NT boot.ini to dual/multiboot.

Post back if you need further assistance.

MustangLinux
10-28-2002, 07:47 PM
Originally posted by lienje
hda2 2008mb ntfs (windows 2000) Is ntfs srewing this up?
hda5 219mb Linux swap
hda6 4698mb linux native
hda7 1066mb linux swap
hda8 6000mb linux native (x windows)

I have a 40 gig hard drive.


Hey Jesse,

This isn't adding up. I'm only counting 9 1/2 gig there. Where's the other 30 Gig? There shouldn't be a problem with NTFS itself, but installing it all on one disk is a bit tricky, well, just need to be carefull. Also, you've defined two swap partitions. Any particular reason? You only need one, and one thing I'm not seeing is a root partition, though you may be saying you set that to hda6.

The problem I see is that your BIOS is most likely set to boot off this one disk, and that is going to take the active partition, or hda1 (something else missiong from your list) unless you change it with fdisk (if you do this, make sure you use the Linux version and not the Windows version of fdisk). Do a man page on fdisk and that should give you some more information on how to setup hard disks.

Originally posted by lienje
I renamed boot.ini to BOOTSEC.LNX="LINUX"

Got to question that one too. Hope you mean that you edited the file to say that, but as I remember Lilo's command syntax, you'll still need to setup which partition you are actually booting from.

Originally posted by lienje
I then restarted my PC to get a invalid boot file and it went strait to the c:/winnt folder and booted windows 2000.

Yeah, that's what I would expect the way it's setup. Hda1 is the default boot sector unless you change it and I have a feeling that's where Windows is really installed. You might want to consider installing Linux first and installing it so that root is on hda1, swap on hda2, you're other linux drives (/usr,/home... etc as desired) are the next drives. Make your NTFS drive you'r last partition. Tell Windows to install there. Only problem with this is that Lilo won't autodetect Windows, so you'll have to configure Lilo to boot Windows after you're done installing both systems.

Good luck.