[Centos] Secure server install

Gavin Carr gavin at openfusion.com.au
Thu Jan 27 21:19:12 UTC 2005


On Thu, Jan 27, 2005 at 11:49:13AM -0500, Beau Henderson wrote:
> Here's an example of one of my systems which handles everything:
> 
> /dev/hda6            1012M  238M  723M  25% /
> /dev/hda1             244M   21M  210M   9% /boot
> /dev/hda7              91G   19G   68G  22% /home
> none                 1004M     0 1004M   0% /dev/shm
> /dev/hda5             2.0G   33M  1.8G   2% /tmp
> /dev/hda2             9.7G  2.9G  6.3G  31% /usr
> /dev/hda3             9.7G  1.8G  7.5G  19% /var
> 
> Generally a 512 - 1 GB is enough for tmp. The size of each really
> depends upon what software you'll have installed and where it places
> its files.

Just to put a slightly different point of view, I tend not to use
too many partitions because I end up wasting space and admin time
on partitions I've sized incorrectly. These days you can use LVM to 
minimise the annoyance, but it's still an issue.

I've been partitioning like this lately:

/dev/hda1       2.0G    swap
/dev/hda2       100M    /boot
/dev/hda3       100M    /boot2
/dev/hda5       5.0G    /
/dev/hda6       5.0G    /2
/dev/hda7       rest    /export

and then putting large directories like /home and /var/www in /export, 
symlinked from the top.

The purpose of the /boot2 and /2 is alternate boot and root directories:
(1) they can be used as a backup of the initial install, and (2) they allow
non-destructive reinstalls - you just install your new OS to /boot2 and /2,
leaving the current OS on /boot and / - that way if you run into problems,
you can just reboot and the old OS is still there.

My AU2c.

Cheers,
Gavin

--
Open Fusion P/L - Open Source Business Solutions [ Linux - Perl - Apache ]
ph:  +612 9875 5032                                    fax: +612 9875 4317
web: http://www.openfusion.com.au                      mob: +61 403 171712
- Fashion is a variable, but style is a constant - Programming Perl




More information about the CentOS mailing list