From owner-freebsd-questions@FreeBSD.ORG Fri Mar 31 18:44:11 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 19C5F16A400 for ; Fri, 31 Mar 2006 18:44:11 +0000 (UTC) (envelope-from grossmann@connectit.at) Received: from mgedv.at (mail.mgedv.at [195.3.87.103]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7FF243D46 for ; Fri, 31 Mar 2006 18:44:10 +0000 (GMT) (envelope-from grossmann@connectit.at) Received: from metis (localhost [127.0.0.1]) by mgedv.at (SMTPServer) with ESMTP id 73373186864 for ; Fri, 31 Mar 2006 20:44:06 +0200 (MEST) From: "Grossmann Martin" To: Date: Fri, 31 Mar 2006 20:44:08 +0200 Organization: mgEDV Message-ID: <000101c654f3$198ec190$0a86a8c0@avalon.lan> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcZU8xgY8SMm/aizS2KXFvc8NFS1qA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: bootable FreeBSD on USB-Flash-Drive [SOLUTION] 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: Fri, 31 Mar 2006 18:44:11 -0000 a little success story with freebsd and a tiny usb stick: [tried with FreeBSD 6.1-BETA4 install-cd and a kingston 256MB usb-flash-drive] prepare yourself to work on the command-line ;-) - attach the usb-stick to the server - boot the freebsd installation cd-rom - go to the "fixit" shell - CHECK YOUR DMESG WHAT DEVICE YOUR USB STICK ACTUALLY IS!!! (here /dev/da0) create the future "/"-filesystem on your usb-drive: wipe everything on the usb-drive: # dd if=/dev/zero of=/dev/da0 bs=1m create a new partition table on it with a default slice 1 and make it bootable # fdisk -BI /dev/da0 label it for booting freebsd: # bsdlabel -wB /dev/da0s1 you'll have to edit the disklabel (sometimes you'll have to: # export EDITOR=/mnt2/usr/bin/vi): # bsdlabel -e /dev/da0s1 ... and change partition a from "unused" to "4.2BSD" as partition type create the future "/" a.k.a. root-filesystem on it: # newfs -m 0 -o space /dev/da0s1a mount the filesystem for installation: # mount /dev/da0s1a /mnt install freebsd on /mnt: # export DESTDIR=/mnt # cd /dist/ # for i in base manpages catpages # do # cd $i; echo y|./install.sh; cd ..; # done go to the kernels directory and install a kernel of your choice: [default is GENERIC kernel; change to "smp" for smp-machines] # rmdir /mnt/boot/kernel # cd kernels; # cat generic.??|tar --unlink -xpzf - -C /mnt/boot # cd /mnt/boot && mv GENERIC kernel now, tell freebsd to mount the right root-filesystem: # echo "/dev/da0 / ufs rw,noatime 1 1" >/mnt/etc/fstab create your rc.conf.local in /mnt/etc to redefine some settings: # cat </mnt/etc/rc.conf.local #!/bin/sh tmpmfs="YES" tmpsize="128m" varmfs="YES" varsize="128m" populate_var="YES" hostname="daisy.duck.home" keyrate="fast" EOFRCCONF # chmod 0755 /mnt/etc/rc.conf.local set a new root password manually, if you want (default="") # chroot /mnt /usr/bin/passwd root well, there are many other things you could do like configuring hosts, networks, dns, users, add. filesystems, etc... but this is another stuff! cu & have fun! ps: just reply to the list for comments/flames, i'm on it ;-) pps: thx 2 the installer team for keeping things simple and easy!