[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: partition this thing!



At 11:02 PM 9/26/99 +0300, you wrote:
This is my first try at more than swap and /.    tiny /boot, giant
/home, right?  Anyone feel like helping?

I don't think a separate partition for /boot would be a good idea. /boot is the default location for the kernel. Having the kernel and init (usually /sbin) on different partitions is probably bad. I don't see how that would work unless you mounted them both on the first pass (could take some mucking around in your startup scripts, and generally not a good idea).

/home doesn't *have* to be giant. If you have multiple users, I would highly suggest separating /var, /usr, /tmp and possibly /var/tmp. With quotas enabled on /home, this eliminates most disk-filling attacks. Its also important to mount user-writable partitions with suid execution disabled (specified in /etc/fstab).

For an example of a decent partitioning scheme on relatively little space (for a pretty minimal server in this case.. no X, etc. ) take a look at this:

$ df

Filesystem         1024-blocks  Used Available Capacity Mounted on
/dev/hda1              21777   10748     9905     52%   /
/dev/hda2             198181  103638    84309     55%   /usr
/dev/hda3              22043   10632    10273     51%   /var
/dev/hdc1              89266      33    84623      0%   /home
/dev/hdc3              19805      13    18769      0%   /tmp
/dev/hdc4              20447      13    19378      0%   /var/tmp

$ cat /etc/fstab

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options>                  <dump> <pass>
/dev/hda1       /             ext2   defaults,errors=remount-ro 0      1
/dev/hdc2       none          swap   sw                         0      0
proc            /proc         proc   defaults                   0      0
/dev/hda2       /usr          ext2   defaults                   0      2
/dev/hda3       /var          ext2   defaults,nosuid            0      2
/dev/hdc1       /home         ext2   defaults,nosuid            0      2
/dev/hdc3       /tmp          ext2   defaults,nosuid            0      2
/dev/hdc4       /var/tmp      ext2   defaults,nosuid            0      2


Reply to: