From owner-freebsd-questions@FreeBSD.ORG Tue Jul 19 18:26:42 2005 Return-Path: X-Original-To: FreeBSD-questions@freebsd.org Delivered-To: FreeBSD-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC1AF16A41F for ; Tue, 19 Jul 2005 18:26:42 +0000 (GMT) (envelope-from bob89@eng.ufl.edu) Received: from scorpion.eng.ufl.edu (scorpion.eng.ufl.edu [128.227.116.10]) by mx1.FreeBSD.org (Postfix) with SMTP id 7889543D46 for ; Tue, 19 Jul 2005 18:26:42 +0000 (GMT) (envelope-from bob89@eng.ufl.edu) Received: (qmail 28949 invoked from network); 19 Jul 2005 18:26:41 -0000 Received: from scanner.engnet.ufl.edu (128.227.152.221) by scorpion.eng.ufl.edu with SMTP; 19 Jul 2005 18:26:41 -0000 From: Bob Johnson Organization: UF College of Engineering To: ross@axe.homelinux.net Date: Tue, 19 Jul 2005 14:26:40 -0400 User-Agent: KMail/1.7.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200507191426.40842.bob89@eng.ufl.edu> Cc: FreeBSD-questions@freebsd.org Subject: RE: /boot on a separate partition X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2005 18:26:43 -0000 Garance A Drosihn wrote: > At 9:30 PM +0100 7/18/05, Ross Kendall Axe wrote: > > > >... I want to place the /boot directory in a small 25MB partition > >at the start of the drive. Setting up the partition with sysinstall > >is easy enough, but does anyone have any suggestions of how to > >diddle the bootloader to accept this configuration? > > I doubt you can on FreeBSD. The problem is that the OS would have > to mount both / and /boot before it could do anything, and FreeBSD > doesn't do that. It assumes the partition that you are loading > from is '/', and uses that to find (for instance) /etc/fstab so > it can find out what the other partitions are. > > I know that linux supports this, as well as some other clever > trickery with partitions at system-startup, but FreeBSD doesn't. > > >I don't particularly want to go for the standard 'small / partition > >and separate partitions for /usr, /var, /home...' since I only have > >a 1GB drive to play with and judging the partition sizes down the > >nearest KB would be... tricky. > > Create a small-ish / partition, a swap partition, and huge /usr > partition. If you want to play with FreeBSD, that's the way to go. You can probably get away with a 40 MB / partition, 55 MB is almost certainly large enough. The two things in / that grow in normal use are /tmp and /var/log. Make /tmp either a symlink to something on /usr, or mount it as a memory disk (see mdconfig(8)). The default logging doesn't accumulate terribly fast anyway, so /var/log isn't very important. If you handle mail or do printing, /var/spool and /var/mail might grow, but usually not enough to be a major issue. The rest of /var probably won't grow enough to matter. On a 1 GB drive you aren't going to have room to do much learning no matter how little you waste in /. Maybe I should just ship you a bigger hard drive. I'm pretty sure I have a 3 or 6 GB drive around that I have no use for. Are you willing to pay shipping? > > FreeBSD creates a symlink from /home to /usr/home, so > your home directories are in /usr anyway. > That's true if you don't create an explicit /home partition. If you WANT /home to be a separate partition (makes updating easier/safer), then create it, but in this case it probably isn't desirable. - Bob