next up previous contents index
Next: Networking Information Sources Up: The root partitions Previous: Example #1: Simple partitioning   Contents   Index

Example #2: Complex partitioning

Partition Mount Point Size (MB)
/dev/hda1 /boot 16
/dev/hda2 swap 100
/dev/hda3 / 300
/dev/hda5 /home 200
/dev/hda6 /tmp 300
/dev/hda7 /usr 500
/dev/hda8 /usr/local 200


Using a /boot partition keeps the kernel images stored there within the sector requirements for LILO, and gives one partition that can be booted which can then mount some other partition as root. Under the given situation that is /dev/hda3, but there is still room on this drive for another partition and potentially another root file system. The kernel for that alternate system would also reside on the /boot partition and be configured with LILO to use the alternate root file system. /home, /tmp, /usr, and /usr/local are on separate partitions so that their growth can be controlled.

Another interesting note about Example #2 is that the numbers of the partitions skips the number 4. IDE partitions come in two flavors: primary, and logical. There can only be 4 primary partitions on any physical IDE device, but many more logical partitions can be created. However, to create logical partitions, at least one of the primary partitions must be turned over for this purpose. Thus, in our example above, the fourth primary partition has been taken over for the logical partitions 5 thru 8. Even if we made partition 3 into a logical partition as well, the logical partition numbers would still begin with 5, leaving the numbers for unused primary partitions completely unassigned.

While Example #1 will produce a perfectly useful Linux installation, it is often useful for something a bit more complex. Feel free to choose just those components of the complex partitioning example that fit the specific needs for your system.


next up previous contents index
Next: Networking Information Sources Up: The root partitions Previous: Example #1: Simple partitioning   Contents   Index
Dale Scheetz