From owner-freebsd-questions Tue Sep 26 2:31:44 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (zoom0-064.telepath.com [216.14.0.64]) by hub.freebsd.org (Postfix) with SMTP id 8AF8037B43C for ; Tue, 26 Sep 2000 02:31:38 -0700 (PDT) Received: (qmail 64565 invoked by uid 100); 26 Sep 2000 09:30:59 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14800.27859.773098.863042@guru.mired.org> Date: Tue, 26 Sep 2000 04:30:59 -0500 (CDT) To: "David J. Kanter" Cc: questions@freebsd.org Subject: Re: Max partitions per slice In-Reply-To: <20000925194551.A7790@freebsd.mindspring.com> References: <99824587@toto.iv> <14799.22594.938807.141382@guru.mired.org> <20000925194551.A7790@freebsd.mindspring.com> X-Mailer: VM 6.72 under 21.1 (patch 10) "Capitol Reef" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG David J. Kanter writes: > On Mon, Sep 25, 2000 at 08:50:58AM -0500, Mike Meyer wrote: > > Of course, I've never seen > > anyone who needed more than 7 active partitions, so I've not seen it > > done. > Fair enough. What partitioning scheme do you recommend? As usual, the correct answer to that question is "it depends". I've done just / and /var for servers, and my last install (a system for testing some commercial software on) had nothing but /. > This will be just a home machine. /tmp and /var generally seem like good > candidates for separate file systems. Does breaking up /usr into /usr/src > and /usr/obj seem foolish? All of this will be on one disk. For a personal workstation, I'd say /, /usr and /home (or whatever you want to call the local stuff). /home gets separated from the system so I can move "just my stuff" easily if I need to. Some fairly sharp people believe a / & /usr split is no longer needed, but I have different backup strategies for / and /usr. For servers - which presumably will be logging things to /var frequently - I'd add /var. /tmp can be left alone, mounted on mfs or md, symlinked to a different partition (which means some things won't work until it's mounted) or mounted on a small partion. Personally, I add said small partition to swap and put it on mfs, just so it gets cleaned across reboots. Putting /usr/src and /usr/obj in separate partitions on the same disk seems very foolish. You've just *guaranteed* lots of head movement on that disk when doing a make. I leave /usr/obj on /usr, and symlink /usr/src to a second disk. That way I get the benefit of overlapping I/O operations (you need SCSI or different IDE controllers for that), and if /usr gets fried, I can rebuild from the src on the second disk. > Oh, and what do you think about sizes for those partitions? / can be very small; 32MB is doable, but a bit tight. 64MB is more than enough. If you need more than that for /var, you probably shouldn't put /var on / anyway. You may want to move /compat/linux off of root. Swap has to be twice memory (+ any mfs space) so the system can do a core dump on crashes. If you can afford the disk space, more isn't a bad thing. /usr - with src & obj on it - a gig. If you're going to be building lots of ports and not cleaning up, more. I have 2 gig, src (> 500meg) elsewhere, and nothing but the system and ports on /usr, and I run out of room pretty regularly. That means I have to do a "make clean" in the ports tree.