[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Partitioning scheme/size
My typical setup ('cept on Fat Alphas):
/ 35MB can be readonly with a terminal attached and no net logins.
Never (ever) needed more.
/var 100MB [nodev/nosuid/noexec]
logs,mail,print spool. Mail machines get their
own mqueue partition.
/usr 200MB [mounted read only]
/tmp varies. [nodev/nosuid/noexec] MFS is fine sometimes.
sometimes bumps because some packages want to
toss a script in there and run it. tough.
SWAP varies. 1.5 - 2 x RAM is a baseline.
/home Rest Of Disk will contain /usr/src/ and /usr/obj/ data often.
[nosuid/nodev - and often noexec on production machines]
/JAIL/ 20MB [readonly] contains a JAIL area for named, www, ftp,
and so forth may have /JAIL/dev/ for a couple needed devices.
/JAIL/DATA 50MB (or more on web machines) [nosuid/noexec/nodev]
data for named, web, so forth.
Now this is somewhat anal. The writable partitions don't allow
devices or programs to be executed. Why? It means that new programs
don't just "appear" suddenly. This is deliberate and the common
setup I use on a machine that's set up, done, just running it's
stuff. I don't WANT sudden change. Break it, it's a pain in the
ass to hack. (properly, RO partitions are on pinned RO disks).
May be a pain for a home machine to kick around on, but it's a
goal.
Quoting kmself@ix.netcom.com (kmself@ix.netcom.com):
> On Thu, Aug 31, 2000 at 06:02:48PM -0500, David J. Kanter wrote:
> > I was thinking:
> > / 64M
> > /var 64M
> > /home 100M
> > /usr 2-4Gb
> > /tmp seems too small to dedicate a separate partition.
> ...until it isn't (small).
>
> Here's my standard FAQ on partitioning. It's oriented to Debian
> GNU/Linux, but should be largely applicable.
> ------------------------------------------------------------------------
> The following is my recommended partitioning for a typical
> workstation/server Debian GNU/Linux x86 box:
> / 50 - 100 MB
> /tmp 50 - 100 MB
> /var 200 - 500 MB
> /usr 1 - 2+ GB
> /usr/local 1 - 2+ GB
> /home remainder