Hello. I'm looking for your thoughts on Linux partitioning.
I read an article a year or two ago in which the authour outlined the following partitioning strategy:
/boot
/
/home
/var
swap
/usr
/usr/local
/data
His reasoning (which seemed logical enough at the time) was as follows (much of which will be verbatim):
Security:
- sets /boot aside as a read only i.e. a barrier to any monkey business.
- Isolating the /boot files from the root partition also eliminates the potential of grevious errors such as overwriting the kernel
Isolation:
- keeping directories like /home and /var out of the root partition can prevent downloads and logs, traces etc from fragmenting or filing up the root partition (which can lead to evil kernel panics etc).
- your /usr directory is where all your applications reside, and it gets lots of activity during installation, and as you add and upgrade packages.
- your home directory sees lots of activity from applications, so you may want to keep your personal files elsewhere out of the way.
- a separate partition for the /usr/local directory as this is where most additional 3rd party software (i.e. Java, Acrobat....) gets installed. Having these 3rd party softwares on a separate partition makes it easier to keep it intact across Linux re-installations, when one changes from one Linux distro to another or installs a new release. i.e. installing a new distro doesn't require reinstalling all software.
Convenience:
-Having a separate /home and /data partition (to keep all your own personal work files like documents, spreadsheets, images, MP3s, etc in if you don't want to keep in the /home/name directory) is convenient.
- /home directory contains your desktop configuration and mail files, so you can keep those more easily across system upgrades if they are in a separate partition.
- your /home and /data working directories are easy to replicate or backup if you have them on separate partitions.
His idea for layout on a single disk would be
/boot, /, swap, /home, /var, /usr, /usr/local, /data ......... memory constrained system
/boot, /, /home, /var, /usr,/usr/local, swap, /data ......... no memory constraints
Now here's what the Suse 10 Getting Started Doc has to say:
So, given the above data, one would think that the strategy in a single disk, non memory constrained system could be:
/boot (50MB), / (1GB), /home (5GB), /var (1GB), /usr (5GB) ,/opt (5GB), swap (512MB), /data (The world `s your oyster)
Partition Layout/Order - accross two disks, non-memory constrained system:
/boot (50MB) , / (1GB) ........ ???
swap (512MB), ....... ??? ....... essentially I'm not sure about what to in this case.
Anyways, again, looking for your input on what you think is reasonable in regards to all that discussed above (capacities, strategies, placements etc etc etc.)
I read an article a year or two ago in which the authour outlined the following partitioning strategy:
/boot
/
/home
/var
swap
/usr
/usr/local
/data
His reasoning (which seemed logical enough at the time) was as follows (much of which will be verbatim):
Security:
- sets /boot aside as a read only i.e. a barrier to any monkey business.
- Isolating the /boot files from the root partition also eliminates the potential of grevious errors such as overwriting the kernel
Isolation:
- keeping directories like /home and /var out of the root partition can prevent downloads and logs, traces etc from fragmenting or filing up the root partition (which can lead to evil kernel panics etc).
- your /usr directory is where all your applications reside, and it gets lots of activity during installation, and as you add and upgrade packages.
- your home directory sees lots of activity from applications, so you may want to keep your personal files elsewhere out of the way.
- a separate partition for the /usr/local directory as this is where most additional 3rd party software (i.e. Java, Acrobat....) gets installed. Having these 3rd party softwares on a separate partition makes it easier to keep it intact across Linux re-installations, when one changes from one Linux distro to another or installs a new release. i.e. installing a new distro doesn't require reinstalling all software.
Convenience:
-Having a separate /home and /data partition (to keep all your own personal work files like documents, spreadsheets, images, MP3s, etc in if you don't want to keep in the /home/name directory) is convenient.
- /home directory contains your desktop configuration and mail files, so you can keep those more easily across system upgrades if they are in a separate partition.
- your /home and /data working directories are easy to replicate or backup if you have them on separate partitions.
His idea for layout on a single disk would be
/boot, /, swap, /home, /var, /usr, /usr/local, /data ......... memory constrained system
/boot, /, /home, /var, /usr,/usr/local, swap, /data ......... no memory constraints
Now here's what the Suse 10 Getting Started Doc has to say:
4 GB or More:
A swap partition, a root partition (1 GB), and one partition each for the following
directories as needed: /usr (4 GB or more), /opt (4 GB or more), and /var
(1 GB). If you do not want to have separate partitions for these directories, add the
suggested disk space to the root partition. The rest of the available space can be
used for /home.
Depending on the hardware, it might also be useful to create a boot partition (/boot)
to hold the boot mechanism and the Linux kernel. This partition should be located at
the start of the disk and should be at least 8 MB or one cylinder. As a rule of thumb,
always create such a partition if it was included in YaST's original proposal. If you are
unsure about this, create a boot partition to be on the safe side.
You should also be aware that some (mostly commercial) programs install their data
in /opt. Therefore, either create a separate partition for /opt or make the root partition
large enough. KDE and GNOME are also installed in /opt.
So, given the above data, one would think that the strategy in a single disk, non memory constrained system could be:
/boot (50MB), / (1GB), /home (5GB), /var (1GB), /usr (5GB) ,/opt (5GB), swap (512MB), /data (The world `s your oyster)
Partition Layout/Order - accross two disks, non-memory constrained system:
/boot (50MB) , / (1GB) ........ ???
swap (512MB), ....... ??? ....... essentially I'm not sure about what to in this case.
Anyways, again, looking for your input on what you think is reasonable in regards to all that discussed above (capacities, strategies, placements etc etc etc.)