From owner-freebsd-geom@FreeBSD.ORG Wed Apr 19 16:45:20 2006 Return-Path: X-Original-To: freebsd-geom@freebsd.org Delivered-To: freebsd-geom@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8476416A401 for ; Wed, 19 Apr 2006 16:45:20 +0000 (UTC) (envelope-from aswood@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id C6D4643D46 for ; Wed, 19 Apr 2006 16:45:04 +0000 (GMT) (envelope-from aswood@gmail.com) Received: by nz-out-0102.google.com with SMTP id l8so1285780nzf for ; Wed, 19 Apr 2006 09:45:04 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TBCjdDVJ5sgPVGOcylRvo4K0VZB1vS6obwhiqIjYM8o+ByPrUghtdY5Cuv+7uXLZOeyA/gT3fjxq2goOp7YBxLc60f39ZaQIU9lVDXYyiSzrzwot/cDozGElvK5qYwpCMaYqKLc22zUr1R9Bz9Tq/lMQPr1IZNHyJiZHLz8lupg= Received: by 10.36.129.20 with SMTP id b20mr510614nzd; Wed, 19 Apr 2006 09:45:03 -0700 (PDT) Received: by 10.36.138.6 with HTTP; Wed, 19 Apr 2006 09:45:03 -0700 (PDT) Message-ID: <77518d100604190945o66fa078fhb36f8015e7a2406a@mail.gmail.com> Date: Wed, 19 Apr 2006 11:45:03 -0500 From: "Adam Wood" To: "Frank J. Beckmann" In-Reply-To: <200604191615.31768.frank@barda.agala.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <200604181653.55129.frank@barda.agala.net> <77518d100604190700o7b1a3e0en301121517c4d77d1@mail.gmail.com> <200604191615.31768.frank@barda.agala.net> Cc: freebsd-geom@freebsd.org Subject: Re: How to make a bootable USB stick for booting a geli encryptet hard disk? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Apr 2006 16:45:20 -0000 On 4/19/06, Frank J. Beckmann wrote: > Thank you very much for your detailed description. It tells me that I hav= e > done everything right. I prepared the USB device like you described it, b= ut > none of my two computers is alble to boot the USB device. One always tell= s me > "ivalid slice" and the other "invalid label". Because of that I think the= re > is some geometry problem. I guess the bios uses another geometry than Fre= eBSD > does. Or something else is completely wrong. You might try using a CD-R, then. For this, you'll need access to another (FreeBSD) system that has sysutils/cdrtools installed on it (mkisofs is part of sysutils/cdrtools). Boot your Live CD and mount some storage, like your USB key for example. mount /dev/storage /mnt Tar up the /dist/boot directory: cd /dist; tar -zcvpf /mnt/boot.tgz boot umount /dev/storage Take the storage media and transfer this to another system, the one with sysutils/cdrtools installed. If it's all networked, you can just SCP it over (scp /dist/boot user@otherhost:~/boot). On the other machine, unpack the boot.tgz into a new directory: mkdir mybootcd; mv boot.tgz mybootcd/; cd mybootcd; tar -zxvf boot.tgz rm boot.tgz Create a boot/loader.conf like you did previously: echo geom_eli_load=3D\"YES\" >> boot/loader.conf Create an /etc/fstab as you did before and place it in mybootcd/etc: mkdir etc vi etc/fstab Now the fun part. Create the bootable ISO image with mkisofs: mkisofs -R -no-emul-boot -b boot/cdboot -o /tmp/bootcd.iso mybootcd Then in whatever manner you deem necessary, burn the /tmp/bootcd.iso image to CD-R, load it up, and reboot. You should be good to go at that point. --adam