Date: Fri, 9 Oct 2009 20:21:39 -0400 (EDT) From: vogelke+unix@pobox.com (Karl Vogel) To: freebsd-questions@freebsd.org Subject: Re: / almost out of space just after installation Message-ID: <20091010002140.16914BE61@kev.msw.wpafb.af.mil> In-Reply-To: <e277d6c80910082339m229ecd6bqfbadd12a6fb7f116@mail.gmail.com> (message from Randi Harper on Thu, 8 Oct 2009 23:39:58 -0700)
next in thread | previous in thread | raw e-mail | index | archive | help
>> On Thu, 8 Oct 2009 23:39:58 -0700, >> Randi Harper <randi@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091010002140.16914BE61>