Partition sizes

Jerry McAllister jerrymc at clunix.cl.msu.edu
Thu Nov 25 22:08:13 PST 2004


> 
> I'll be installing FBSD 5.3 on an 80GB hard drive (machine has 512MB of
> RAM) and was considering the following partitions:
> 
> /
> /usr
> /usr/local
> /var
> /var/tmp
> /tmp
> /home
> SWAP

For that big a main disk, my likely division would be something like:

   /     512 MB
   swap  1.25 GB
   /tmp  512 MB
   /usr  2 GB
   /var  4 GB
   /home all remaining disk - probably be about 66 GB before newfsing.

Then, I wouldn't have a separate /usr/local or /var/tmp partitions.
I would use /tmp for tmp stuff and since /var is big, not worry about 
the few things that want to assume tmp is in var.
For /usr/local, /usr/src and /usr/ports, I would copy them 
in to home as /home/usr.local  /home/usr.src and /home/usr.ports and 
then make sym links to them in /usr
If that sounds confusing, check the archive.  I and several others
have posted detailed steps to do it several times over the last year
or so.

If you are going to do a database or something that will really
eat up space in /var, then you might want to move some of that
to /home in a similar manner.  If you don't have any of that
stuff, you might want to cut /var in half.   If you install Apache
(or another web server), this should accomodate that too.  You would
most likely be putting your document root in something that lives
in /home -   maybe in /usr/local  (which is really /home/usr.local)
or just in /home/some_user_id/www   or whatever so since the big
user of space is the web pages themselves, it will be using up the
most space in /home too.

Have fun,

////jerry

   
> 
> I'm looking for some recommendations around what the partition sizes
> should be assuming I'm allocating the entire disk to FreeBSD.  It will
> be a used as a desktop and not a server, but I'd be curious about the
> sizing differences as I'll be setting up a similar machine as a
> mail/FTP/web server.
> 
> Thanks.
> 
> 
> --=20
> Cheers,
> Trey
> ---
> 
> The most costly of all follies is to believe passionately in the
> palpably
> not true. It is the chief occupation of mankind.
> -- H.L. Mencken=20
> 
> 9:25pm up 3:13, 4 users, load average: 1.74, 0.80, 0.56=20
> Linux salamander 2.6.8-20041025161453-default #1 Mon Oct 25 16:14:53 UTC
> 2004 i686 i686 i386 GNU/Linux
> 
> --=-rDwP+bTRGCl/yAYcEhar
> Content-Type: application/pgp-signature; name=signature.asc
> Content-Description: This is a digitally signed message part
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (GNU/Linux)
> 
> iD8DBQBBppQ3EGwvX2++Pg0RAtwHAJoDnpXTy4CTn2Bxp2luxMCCUw+5FQCfbKyP
> BSXJjHQkVM0Mf+PAB7rboEU=
> =2g17
> -----END PGP SIGNATURE-----
> 
> --=-rDwP+bTRGCl/yAYcEhar--
> 
> 



More information about the freebsd-questions mailing list