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

Next in thread | Raw E-Mail | Index | Archive | Help
Oh, one other difference between what I've done and what the document says to 
do:

I don't actually have a /dev/ad0.  I have ad4, ad5, and ad6.  Wherever the 
document says /dev/ad0, I've been using /dev/ad4 instead.

I'm guessing that this is not important to the problem I'm facing, but I figured 
I should mention in just in case my guess is wrong.




________________________________
From: Gil Mordron <gilmordron@yahoo.com>
To: freebsd-questions@freebsd.org
Sent: Sun, April 10, 2011 10:34:42 PM
Subject: full disk encryption with geli - where does the stuff in /boot/kernel


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: <http://docs.FreeBSD.org/cgi/mid.cgi?70875.60670.qm>