From owner-freebsd-questions@FreeBSD.ORG Mon Apr 3 05:13:53 2006 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 692BF16A41F for ; Mon, 3 Apr 2006 05:13:53 +0000 (UTC) (envelope-from erikt@owl.midgard.homeip.net) Received: from pne-smtpout2-sn1.fre.skanova.net (pne-smtpout2-sn1.fre.skanova.net [81.228.11.159]) by mx1.FreeBSD.org (Postfix) with ESMTP id E5E3143D46 for ; Mon, 3 Apr 2006 05:13:52 +0000 (GMT) (envelope-from erikt@owl.midgard.homeip.net) Received: from falcon.midgard.homeip.net (83.253.29.241) by pne-smtpout2-sn1.fre.skanova.net (7.2.070) id 43F9B8E900A03DCF for freebsd-questions@freebsd.org; Mon, 3 Apr 2006 07:13:51 +0200 Received: (qmail 9097 invoked from network); 3 Apr 2006 07:13:51 +0200 Received: from owl.midgard.homeip.net (10.1.5.7) by falcon.midgard.homeip.net with SMTP; 3 Apr 2006 07:13:51 +0200 Received: (qmail 79077 invoked by uid 1001); 3 Apr 2006 07:13:51 +0200 Date: Mon, 3 Apr 2006 07:13:51 +0200 From: Erik Trulsson To: valentin_nils@be-known-online.com Message-ID: <20060403051351.GA78922@owl.midgard.homeip.net> Mail-Followup-To: valentin_nils@be-known-online.com, freebsd-questions@freebsd.org References: <20060403023342.ioc7cb6koeww8o4s@www.be-known-online.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060403023342.ioc7cb6koeww8o4s@www.be-known-online.com> User-Agent: Mutt/1.5.11 Cc: freebsd-questions@freebsd.org Subject: Re: Filesystem layout with sperated /boot 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: Mon, 03 Apr 2006 05:13:53 -0000 On Mon, Apr 03, 2006 at 02:33:42AM +0000, valentin_nils@be-known-online.com wrote: > Hello FreeBSD Fans, > > I wanted to create a new system and was thinking about the following layout. > > Size | Mountpoint | Device name | File system > 100M /boot /dev/ad2s1a UFS2+S > 1024MB --- /dev/ad2s1b SWAP > 15GB / /dev/ad2s1c UFS2 > > I want to put /boot on its own partition, but somehow I dont have a lot of luck. > I can install the OS, but when I reboot the bootloader will not boot. Don't do that. You can not have /boot as a separate partition. It just contains the kernel and the loader. The other things that are needed for booting (like /bin/sh or /sbin/mount) reside elsewhere. (Having /boot as a separate partition is apparently some Linux-specific convention.) What is normally done under FreeBSD when you want a small boot partition is to create /usr and /var as separate partitions which will let you create a small (100M) '/' partition. (You will probably also want either a separate /home partition for user home directories, or let them reside under /usr/home. (I think the latter is the default, but I am not 100% sure.) > > > No /boot/loader > ... > Default: 0:ad(0,a)/boot/kernel/kernel > boot: > No /boot/kernel/kernel > ... > > 1) I wouldnt mind on which partition "/boot" or "/" sits or what its named, but > I would like to separate "/boot" on a different partition and it seems like it > wouldnt boot when I do this. Is this just a matter of updating the bootloader ? > Wouldnt the installer do that automatically ? See above. You can't do that. > > 2) The part which I dont get is why is "/" always ad2s1a - even when I create > "/boot" first ? ("/boot" will become f.e. ad2s1d) and SWAP will become ad2s1b. You need to boot from "/" and it should be partition 'a' on the slice. It is probably possible to change this, but it would be much more pain and trouble than it is worth. > > So what I end up with is something like > > Size | Mountpoint | Device name | File system > 15GB / /dev/ad2s1a UFS2 > 1024MB --- /dev/ad2s1b SWAP > 100M /boot /dev/ad2s1d UFS2+S > > > Any replies much appreciated. A good place to start reading is the online handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/ especially the chapter on installing FreeBSD: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/install.html The FAQ at http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/ might also prove helpful. > > Best regards > > Nils Valentin > http://www.be-known-online.com > -- Erik Trulsson ertr1013@student.uu.se