14 Jan 2008 14:11
Re: Re: how-to: encryption + journaling (geli + gjournal)
Volker <volker <at> vwsoft.com>
2008-01-14 13:11:38 GMT
2008-01-14 13:11:38 GMT
On 12/23/-58 19:59, RW wrote: > On Sun, 13 Jan 2008 23:42:07 +0100 > Volker <volker <at> vwsoft.com> wrote: > >> For the archives (as I haven't found a nice how-to on this topic): >> >> A short how-to to get geli + gjournal running smoothly (the lazy way, >> depending mostly on OS infrastructure, no script hacking needed). >> >> - set up your geli provider: >> geli load >> geli init /dev/ad0s1d # check geli(8) for this >> geli attach /dev/ad0s1d >> dd if=/dev/random of=/dev/ad0s1d.eli bs=1m # (use higher values bs=... >> for faster operation) > > It would probably be faster to fill /dev/ad0s1d from /dev/random before > doing the geli init - there's no point in encrypting the random numbers. > It would also ensure that the whole of ad0s1d is pre-filled, and not > just the part accessible as ad0s1d.eli. If you think it doesn't make sense or is a fault, please file a PR as filling the data provider with random data has been taken from the manpage geli(8). Otherwise I'm considering this being a bike shed. If you know it better, I'm wondering why you haven't written a how to in the past?(Continue reading)
> In my experience writing from /dev/random to a raw partition is almost
> twice as fast as writing to an .eli device - essentially it's single
> verses double encryption.
True, this *is* faster. But there is also a reason for encrypting the
random numbers - although I would probably use zeros which will look
pretty much like random numbers on a disk once they are encrypted.
If you use a checksum (geli init -a) geli will need to know what is on the
disc. So you actually have to fill the disc through geli before you can
use it. If you don't do this you will get lots of errors stating that the
data on the disc is corrupt.
I guess the reason why blanking a disc with encrypted random numbers is
the double entropy and the fact that there are cases where you have to
blank a disc through geli.
Regards,
Chris
RSS Feed