A general Linux partition question

i read somewhere u can only have 4 partitions on the HD.

I have 4G hd with 2 partitions
D: winnt NTFS

[1] If i install Linux i can only have 2 more partitions - root '/' and swap-partition.  How can i then create the following:-

I am not sure if these are necessary but i read that they will save you alot of pain when you re-install Linux in the future as your personal software/files are in those partitions.

Any comments?

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

First of all, 2 partitions are enough for Linux (one for / and one for swap). Second, I'm
not sure how the division to /usr and /home
can save you on re-installation. It has some advantages of course (typical scenario: if everything is one one partition /, the user in home uses all the space on the system, such as there is no space left for /tmp, and system crashes). But, on the other hand, you meet here the opposite problem: if you do divide
to several disks, you can end up in a situation where you just don't have enougt space for smooth work on one partition, while there'is plenty redundant on the other.

Second and most important: The problem of "maximum 4 partitions" was resolved looong-time ago by Micro$oft. The solution is called "logical partitions".
So, on the free space you have you can create
one partition, and to divide it to as many as you wish logical ones. You probably remember this scheme even from DOS times, so to make your life easier, Linux's fdisk does supports it as well, so the problem is really not a problem.
It is only a matter of using the fdisk correctly.

Hope that helps.
erikleeAuthor Commented:
i used diskdruid from mandrake and it barked at me when i tried creating the fifth partition...
eriklee: real hackers still use fdisk and not
some graphical/featureless druids :)
This is my partition table(as seen in linux fdisk):

Disk /dev/hda: 255 heads, 63 sectors, 1027 cylinders
Units = cylinders of 16065 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/hda1   *         1       128   1028128+   6  FAT16
/dev/hda2           129       766   5124735    5  Extended
/dev/hda3           767       774     64260   82  Linux swap
/dev/hda4           775      1024   2008125   83  Linux
/dev/hda5           129       320   1542208+   7  HPFS/NTFS
/dev/hda6           321       766   3582463+   b  Win95 FAT32

How many partitions do you see?
The trick is like I told,/dev/hda2 is extended partition and hda5 and hda6 are logical partitions on it (you can see by the start and end numbers). This was done in dos, but linux partitions can be managed this way as well.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
erikleeAuthor Commented:
ok thanks dude
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.