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?
finikConnect With a Mentor Commented:
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.
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...
erikleeAuthor Commented:
ok thanks dude
All Courses

From novice to tech pro — start learning today.