Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 2006 11:45:03 -0500
From:      "Adam Wood" <aswood@gmail.com>
To:        "Frank J. Beckmann" <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?
Message-ID:  <77518d100604190945o66fa078fhb36f8015e7a2406a@mail.gmail.com>
In-Reply-To: <200604191615.31768.frank@barda.agala.net>
References:  <200604181653.55129.frank@barda.agala.net> <77518d100604190700o7b1a3e0en301121517c4d77d1@mail.gmail.com> <200604191615.31768.frank@barda.agala.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4/19/06, Frank J. Beckmann <frank@barda.agala.net> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?77518d100604190945o66fa078fhb36f8015e7a2406a>