Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Apr 2011 19:34:42 -0700 (PDT)
From:      Gil Mordron <gilmordron@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   full disk encryption with geli - where does the stuff in /boot/kernel
Message-ID:  <113002.86184.qm@web121613.mail.ne1.yahoo.com>

next in thread | raw e-mail | index | archive | help
I am attempting to set up full disk encryption with GELI, booting from an 
unencrypted thumb drive, using the following PDF by Marc Schiesser as a guide:

http://events.ccc.de/congress/2005/fahrplan/attachments/586-paper_Complete_Hard_Disk_Encryption.pdf


In section 3.5.5, "The removable medium", it says to copy everything from the 
fixed disk's boot directory to the thumb drive, and then zip up various things 
from the removable disk's boot/kernel directory (the fixed disk is mounted as 
/fixed and the removable as /removable):

# cp -Rpv /fixed/boot /removable
# cd /removable/boot/kernel
# gzip kernel geom_eli.ko acpi.ko

My issue is that there is nothing in /removable/boot/kernel.

Obviously whatever would be there would have come from the "cp -Rpv /fixed/boot 
/removable" line, so I checked in /fixed/boot/kernel, and there's nothing there 
either.

Presumably whatever would be in /fixed/boot/kernel would have been placed there 
in the previous step, section 3.5.4, which includes:

# mount /dev/ad0.elia /fixed
# export DESTDIR=/fixed/
# cd /dist/6.0-RELEASE/base && ./install.sh

That did create a bunch of stuff on /fixed, including /fixed/boot and even 
/fixed/boot/kernel, but it did not place any files in /fixed/boot/kernel.

One difference that I should mention at this point is that I'm using 8.2, not 
6.0, so I actually did a "cd /dist/8.2-RELEASE/base" instead of the "cd 
/dist/6.0-RELEASE/base" that the document suggests.  Other than that, I think I 
did everything the same as it suggests.

Is there a step missing in the document? Or did I screw something up?

In any case, can I just copy the necessary files to /removable/boot/kernel from 
/dist/boot/kernel instead of from /fixed/boot/kernel? Or do I have to get them 
in some other way? And what files are needed? Obviously kernel, geom_eli.ko, and 
acpi.ko, and I believe that geom_eli.ko requires both zlib.ko and crypto.ko, but 
do I have to get any other files, too?

Thanks in advance for any help.



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