LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-24-2004, 12:48 PM   #1
geekX
LQ Newbie
 
Registered: Feb 2004
Location: Cape Town, South Africa
Distribution: Gentoo
Posts: 3

Rep: Reputation: 0
4 primary partitions, windows dual boot trouble


I installed gentoo on a 40gig harddrive at work. I made 4 partitions:

1 - 100MB (boot partition)
2 - 512MB (swap partition)
3 - 30GB (root partition)
4 - whatever was left so that I could install windows on it.

I installed gentoo (using the first 3 partitions) and it was all working fine. Within a day or two I had to install windows xp to work on some proprietary stuff, of course. ..

I figured I'd just install it on the 4th partition, but the windows install complained that there is no free space. so I removed the 4th partition, thinking it probably wants to create it's own. Then it said I already have the maximum amount of partitions! So it seems that windows only recognises up to three partitions... I ended up removing the boot partition (now there's free space at the start of the device) thinking that I could just boot using a boot cd and then fix it later, and created the partition in the +/- 10 gigs free at the end.

Now I'm getting vmware and I want to fix linux again. (without messing up my xp install - just in case). Can I just recreate the partition at the front (using the 100mb free space) without screwing up windows? As in - does it only check the amount of partitions when you install, or should I rather use gentoo without a /boot partition and rather boot off my root partition? (how do I then create /boot on my root partition? so I just create an empty folder? what do I have to copy to it, apart from my kernel?)

I'f I'm going to install lilo again, then it will override the boot sector, so will I be able to dual boot windows by just adding an entry for it in lilo.conf? At home I have two seperate harddrives, so I never ran into this issue before.
 
Old 02-24-2004, 01:23 PM   #2
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
I'm guessing that when you deleted the boot partition you had to make changes in Gentoo. The same goes for Windows. Let's say your hard drive is hda. It was like this:

hda1 - boot
hda2 - swap
hda3 - root

Now with the boot deleted, it probably looks like this:

hda1 - swap
hda2 - root
hda3 - Windows

The partitions' names change. When you recreate the boot, the names will change again. You'll have to adjust Gentoo & Windows, because Windows will be hda4 instead of hda3 and become confused. To adjust Windows, you edit the boot.ini file.
 
Old 02-24-2004, 01:31 PM   #3
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix, 98,2000 + various
Posts: 3,171

Rep: Reputation: 51
you could have made the partition in advance and installed windows on it.
windows will boot with 4 primarys, but the windows installer isn't forgiving
about other OS's on the computer, and MS will not go to the trouble to
make their installer work with a bunch of different configurations. Hence,
the stupid error messages. windows wants to be the only primary.
you can boot linux from a logical drive, if you don't want to argue with windows.
 
Old 02-25-2004, 01:22 AM   #4
geekX
LQ Newbie
 
Registered: Feb 2004
Location: Cape Town, South Africa
Distribution: Gentoo
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by aaa
The partitions' names change. When you recreate the boot, the names will change again. You'll have to adjust Gentoo & Windows, because Windows will be hda4 instead of hda3 and become confused. To adjust Windows, you edit the boot.ini file.
where do I find this boot.ini file? I don't have a lot of data on windows yet, so I'll just back up, add the boot partition again, change this ini file and reinstall lilo to get rid of Microsoft's boot loader.

should that work? how do I create a boot partition? can I just format it as ext2, copy the kernel and run lilo and will that copy all the necessary files?
 
Old 02-25-2004, 02:04 PM   #5
aaa
Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
C:\boot.ini
See the MS knowledgebase for help on it. Don't forget to back it up.
To create a partition, you use fdisk. Linux partitions are of type 82 or 83 (one is for swap). Then you format the partition using mke2fs for ext2.
You don't really need a boot partition, you can go without one. Just boot with a bootdisk and replace the stuff deleted (the kernel image, among other things, was in the boot directory/partition, and was probably deleted), and reinstall lilo. 'fixmbr' from the Windows XP cd will restore the mbr in case you mess up.
 
Old 02-25-2004, 04:42 PM   #6
geekX
LQ Newbie
 
Registered: Feb 2004
Location: Cape Town, South Africa
Distribution: Gentoo
Posts: 3

Original Poster
Rep: Reputation: 0
thanks a lot. I'll try that. Will definitely back things up and wait for the weekend before I try it, though.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Dual boot primary Linspire & XP primary slave? watmonki Linspire/Freespire 5 11-01-2005 08:16 PM
/boot size and primary vs. extended partitions Seiken Slackware 8 03-02-2005 10:49 PM
Trouble getting Windows XP to dual boot with Fedora using GRUB davstin2002 Linux - Newbie 12 01-22-2004 03:24 PM
Dual Boot Trouble, cant load Windows 2000 wizeguy12 Linux - Newbie 6 09-24-2003 05:39 PM
Mandrake on primary HD, Win on secondary, dual boot? XDude Linux - Newbie 12 07-15-2003 12:50 AM


All times are GMT -5. The time now is 09:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration