From owner-freebsd-questions@FreeBSD.ORG Mon Sep 26 05:48:39 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 9D9CA16A41F for ; Mon, 26 Sep 2005 05:48:39 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id D733E43D48 for ; Mon, 26 Sep 2005 05:48:38 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from flame.pc (aris.bedc.ondsl.gr [62.103.39.226]) by rosebud.otenet.gr (8.13.4/8.13.4/Debian-1) with SMTP id j8Q5mbC6007167; Mon, 26 Sep 2005 08:48:37 +0300 Received: from flame.pc (flame [127.0.0.1]) by flame.pc (8.13.4/8.13.4) with ESMTP id j8Q5m6Jm046128; Mon, 26 Sep 2005 08:48:06 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by flame.pc (8.13.4/8.13.4/Submit) id j8Q5m6Lb046118; Mon, 26 Sep 2005 08:48:06 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Mon, 26 Sep 2005 08:48:05 +0300 From: Giorgos Keramidas To: Rob Message-ID: <20050926054805.GA34711@flame.pc> References: <20050926053236.90960.qmail@web36203.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050926053236.90960.qmail@web36203.mail.mud.yahoo.com> Cc: freebsd-questions@freebsd.org Subject: Re: How to use USB memory-stick for booting FreeBSD? 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, 26 Sep 2005 05:48:39 -0000 On 2005-09-25 22:32, Rob wrote: >Giorgos Keramidas wrote: >> By installing a FreeBSD base system on it (approx. 170 MB) and a >> boot loader, and setting your BIOS to boot from "USB legacy device". > > Hmmm, how do I do that? > After a system and kernel build, is it then something like 'make > installworld' and 'make installkernel' into non-default destinations > (i.e. mount-point of the USB stick) ? First of all, you format and mount the USB disk somewhere. Let's say, under ``/mnt/usbdisk''. Then, after you complete a buildworld and buildkernel process, you can install the FreeBSD base system on the USB disk by: # cd /usr/src # make DESTDIR=/mnt/usbdisk installkernel # make DESTDIR=/mnt/usbdisk installworld This doesn't install a full /etc hierarchy in the USB disk, so you'll have to run something like this too: # cd /usr/src/etc # make DESTDIR=/mnt/usbdisk distrib-dirs # make DESTDIR=/mnt/usbdisk distribution Finally, you should create at least an /etc/fstab under the new root, and you should be more or less set to go. > I suppose one GigaByte should be enough for the base system of 5.4, > isn't it? Definitely. The full base system (as I mentioned above) takes about 170 MB of disk space on i386 installations.