From owner-freebsd-questions@FreeBSD.ORG Sat Feb 21 14:19:01 2009 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80595106566C for ; Sat, 21 Feb 2009 14:19:01 +0000 (UTC) (envelope-from lenzi@k1.com.br) Received: from server02.lzt.com.br (server02.lzt.com.br [207.158.37.49]) by mx1.freebsd.org (Postfix) with ESMTP id 6892D8FC1B for ; Sat, 21 Feb 2009 14:19:01 +0000 (UTC) (envelope-from lenzi@k1.com.br) Received: from lzt.com.br (localhost [127.0.0.1]) by server02.lzt.com.br (8.14.3/8.14.2) with ESMTP id n1LD3joX024469; Sat, 21 Feb 2009 11:19:01 -0300 (BRT) (envelope-from lenzi@k1.com.br) X-MessageWall-Score: 0 (lzt.com.br) Received: from [201.21.162.82] (authenticated as k1) by lzt.com.br (MessageWall 1.0.8) with SMTP; 21 Feb 2009 14:19:00 -0000 From: Sergio de Almeida Lenzi To: Formula 1 , freebsd-questions Date: Sat, 21 Feb 2009 11:18:22 -0300 Message-Id: <1235225902.12087.57.camel@lenzix.cwb.casa> Mime-Version: 1.0 X-Mailer: Evolution 2.24.2 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: USB INSTALL SCRIPTS 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: Sat, 21 Feb 2009 14:19:01 -0000 Ok... the scripts are at: http://dist.k1.com.br/scripts/baselist_amd64 http://dist.k1.com.br/scripts/baselist_i386 http://dist.k1.com.br/scripts/makebootdisk http://dist.k1.com.br/scripts/zfsetup install these scripts on /root makebootdisk: formats the disk (or usb stick) at da0,da1...) make a bsdlabel on it and using the baselist file, copies the running system files into the USB it will work on FreeBSD versions greater 7.0 this way the usb is bootable, have a filesystem on it. the same root password... you can fix the files /etc/rc.conf, /boot/loader.conf in the usb filesystem in order for it to boot from your kernel. remeber to check for an "a" partition on your usb stick the script needs to have access to install bash (pkg_add -r bash) so it needs internet of a package repository with bash in it. Once boot from your usb stick, you can do the same procedure to transport the running system to another disk if you intend to make a zfs running filesytem on the target disk (hd) make the disklabel (bsdlabel) this way a: 1gb 16 unused b: 4gb * swap d: * * unused that is: a partition 1gb at offset 16 b swap partition 4gb after partion A d: the rest of the disk (this will hold the zpool). the makebootdisk will install a running system on A (about 300mb...) ZFSETUP is a script that, when boot from the hd created with makebootdisk moves the running system (booted from "a" partition) to the the zfspool created, in the "d" partition mentioned above.. it edits the loader.conf in order to boot on zfs.. in order to boot from After that, you are running on ZFS... Sergio