Posts Tagged ‘plan’

This may sound boring but it is important to take note  the Linux File System. I pasted a screenshot of the sub directories of the root directory in Linux. You may check http://tldp.org/LDP/intro-linux/html/intro-linux.html for details.

root-subdirectories

root-subdirectories

It is important to plan your Linux partition. Why partition? To achieve higher data security in case of disaster. You can partition your hard disk to a maximum of four partitions and you could even extend it. i386 systems can be sliced up to fifteen to sixty three partitions. For this to become possible, one of the primary partition should become an extended partition and logical partitions should be added to it. Sound confusing? It looks like this:

/dev/hda1 –> primary
/dev/hda2 –> extended
—   /dev/hda5 –> logical
—   /dev/hda6 –> logical
—   /dev/hda7 –> logical
—   /dev/hda.. –> logical

Note: Logical partition always starts from hda5.

Recommended partition:

Swap
This is the space on the hard drive that can be used as a virtual memory. Linux have a maximum of 2GB swap limit. The traditional swap space value is twice the physical RAM. You can increase or decrease it or enter any value you prefer. Or you may not use any swap partition at all, as long as your system have a higher physical RAM.

The root file system (/)
This is the top of the directory tree and it contains Linux and all Linux installation files. The size of the root partition will vary depending on what you plan to install.

/home
This is the directory where your data are stored. It is roughly equivalent to the “My Documents” folder on a MS Windows desktop.

Or another recommendation would be:
sda1   –>   /boot
sda5   –>   /
sda6   –>   /home
sda7   –>  /usr
sda8   –>   /var
sda9   –>   /tmp
sda10 –>  swap

On  servers, system data tends to be separated from user data. Here is the recommended partition for a server system:
– a partition with all data necessary to boot the machine
– a partition with configuration data and server programs
– one or more partitions containing the server data such as database tables, user mails, an ftp archive etc.
– a partition with user programs and applications
– one or more partitions for the user specific files (home directories) •
– one or more swap partitions (virtual memory)

It will still depend upon you on how you’ll partition a system. These are just recommendations. Once partitions are made, you can only add more. Changing sizes or properties of existing partitions is even possible but not advisable.