First, as has been said combine / /usr and /usr/local. I find that 2Gb is plenty. But keep /usr/src/on a separate partition. The reason is below.
Second, configure *two* root partitions. That way, when you wnat to upgrade some critical components e.g. libc or binutils, you can build a new system in your spare partition and avoid any risk to your live system. If you have /usr/src/separated out, then its location does not change when you switch from one root to the other.
Third, make the first parition on your disk /boot, which is shared between both roots. This helps to avoid any lingering problems with the first 1024 cylinders, and simplifies writing your lilo.conf.
/tmp should only need a few Mb, not Gb.
I mount my root as read-only. This helps to prevent both finger trouble and hackers. All executable files and system configurations are in the RO partitions. There are a few files that need to be moved, but the number is now very small. You will also need a loopback FS or a RAM disk for /tmp.
My configuration is
/boot 50Mb RO / 2Gb RO /spare 2Gb RO /usr/src 4Gb RO /var 4Gb RW /home everything else RW
At the end of my boot sequence, in rc.*, I execute SIZE=10000 /bin/dd if=/dev/zero of=/var/tmp.surrogate count=$SIZE /sbin/mke2fs -F /var/tmp.surrogate $SIZE /sbin/losetup /dev/loop0 /var/tmp.surrogate /bin/mount -t ext2 /dev/loop0 /tmp /bin/chmod 1777 /tmp /bin/mount -o ro,remount -n /
The RO partitions get remounted as RW just temporarily when I need to alter something, but for normal oeprations they are switched back to RO.
On 15-Nov-2002 Richard Kettlewell wrote:
"Michael Sage" michael.sage@pitman-norwich.co.uk writes:
This is a really silly but quite important question, how do u determin how you partition your harddrive?
I have just got an 80Gb Hdd for our new Linux Fileserver, I was thinking something like this:
/ 2Gb /tmp 2Gb /var 4Gb /usr 5Gb /usr/local 5Gb /home 60Gb swap 2Gb
Why bother separating /, /usr and /usr/local into separate filesystems, BTW? I can see why a separate / makes sense if there's only limited space for the root filesystem, but that's evidently not the case here...
-- http://www.greenend.org.uk/rjk/
main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!