On Sun, Jan 20, 2008 at 09:25:36PM +0400, Rakhesh Sasidharan wrote: > I thought this should be easy but its not working ... :( > > I have a USB disk /dev/da0. That's got a GELI key. I also have an external > hard-disk with partitions /dev/da1s1[a-f]. All GELI encrypted. > > What I want is that while booting up these encrypted partitions are loaded. > And their key taken from the da0 USB disk. > > I tried the obvious like mounting the USB disk in /etc/fstab and giving it > a lower pass no. than the encrypted partitions. But turns out that doesn't > work.
The pass number in /etc/fstab only affects the fsck order. > FreeBSD tries to attach the GELI partitions before mounting local > filesystems! Any way to delay this step till after the USB disk is mounted > and the key available? Or any other suggestions? It _must_ do so in case any local partitions are encrypted (like e.g my /home). What you can do is set the noauto flag for those filesystems, and mount them be hand, or write a script for it. Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
pgpTLgS2abLGI.pgp
Description: PGP signature