From owner-freebsd-questions@FreeBSD.ORG Sat Oct 10 00:24:03 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C87C61065672 for ; Sat, 10 Oct 2009 00:24:03 +0000 (UTC) (envelope-from vogelke@hcst.com) Received: from beta.hcst.com (beta.hcst.com [192.52.183.241]) by mx1.freebsd.org (Postfix) with ESMTP id 837F18FC12 for ; Sat, 10 Oct 2009 00:24:03 +0000 (UTC) Received: from beta.hcst.com (localhost [127.0.0.1]) by beta.hcst.com (8.13.8/8.13.8/Debian-3) with ESMTP id n9A0O2qt031526 for ; Fri, 9 Oct 2009 20:24:02 -0400 Received: (from vogelke@localhost) by beta.hcst.com (8.13.8/8.13.8/Submit) id n9A0O1IX031525; Fri, 9 Oct 2009 20:24:01 -0400 Received: by kev.msw.wpafb.af.mil (Postfix, from userid 32768) id 16914BE61; Fri, 9 Oct 2009 20:21:39 -0400 (EDT) To: freebsd-questions@freebsd.org In-reply-to: (message from Randi Harper on Thu, 8 Oct 2009 23:39:58 -0700) Organization: Oasis Systems Inc. X-Disclaimer: I don't speak for the USAF or Oasis. X-GPG-ID: 1024D/711752A0 2006-06-27 Karl Vogel X-GPG-Fingerprint: 56EB 6DBF 4224 C953 F417 CC99 4C7C 7D46 7117 52A0 Message-Id: <20091010002140.16914BE61@kev.msw.wpafb.af.mil> Date: Fri, 9 Oct 2009 20:21:39 -0400 (EDT) From: vogelke+unix@pobox.com (Karl Vogel) Subject: Re: / almost out of space just after installation X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: vogelke+unix@pobox.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Oct 2009 00:24:03 -0000 >> On Thu, 8 Oct 2009 23:39:58 -0700, >> Randi Harper said: R> I was thinking that a more acceptable default layout (leaving swap at R> it's current default size) would be: R> / = 1GB R> /var = 2GB R> /tmp = 2GB I usually create something like this: / = 200M /usr = 8G /var = 2G /stage = 8G /home = everything else * Root stays small, so I can have backup root partitions all over without feeling guilty about wasting space. * /tmp is a limited-size memory disk. * /usr and /var are on separate partitions, preferably on different drives so I'm not seeking all over creation if /, /usr, and /var are busy. Also, filling up /usr/tmp or /var/log will be annoying but not critical. * /stage is a staging area, usually for backups to another host. I put it on a different drive than /home, so I don't compete too much with my users when, say, doing hourly backups: # cd /home # find . -newer /last/bkup -depth -print | pax -x cpio -wd | bzip2 -c > /stage/bkup.bz2 # touch /last/bkup # su bkup -c 'scp -c arcfour /stage/bkup.bz2 remote:/some/place' Could we also have some nicer defaults for /etc/fstab? # Device Mount FStype Options Dump Pass # ----------------------------------------------------------------- /dev/ad0s1a / ufs rw 1 1 devfs /dev devfs rw 0 0 fdescfs /dev/fd fdescfs rw 0 0 proc /proc procfs rw 0 0 md /tmp mfs rw,-s512m 2 0 /dev/ad0s1b none swap sw 0 0 # /dev/ad0s1d /usr ufs rw,noatime,snapshot 2 2 /dev/ad0s1e /var ufs rw,noatime,snapshot 2 2 /dev/ad0s1f /home ufs rw,noatime,nosuid,snapshot 2 2 # # CD/DVD: #/dev/acd0 /cdrom cd9660 ro,noauto 0 0 # # CD/DVD/RW: #/dev/cd0 /cdrom cd9660 ro,noauto 0 0 # ----------------------------------------------------------------- -- Karl Vogel I don't speak for the USAF or my company A society that champions freedom of religion but at the same time countenances state regulation of education has a great deal of explaining to do. --James R. Otteson