obsd [d...@protonmail.com] wrote:
> 'Encrypting external disks'
> http://www.openbsd.org/faq/faq14.html#softraidCrypto
> 
> Followed the FAQ instructions EXACTLY to encrypt an external drive, then 
> copied data to it and after restarting the computer again.. I cannot access 
> the drive, infact it doesn't look like anything is even on it. This has 
> happened whilst following this tutorial on two different systems, using two 
> different hard disks.. Are the FAQ instructions wrong? Thanks
> 
> $ fdisk wd1
> 0: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
> 1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
> 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
> 3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
> 
> # disklabel wd1
> 16 partitions:
> # size offset fstype [fsize bsize cpg]
> c: 234441648 0 unused

My guess is that you didn't run fdisk, THEN disklabel, THEN bioctl.
This stays true for any use of software, not just crypto.

If you don't run fdisk prior to disklabel,

a. The BIOS may not be able to boot from the device (if necessary)
b. Your disklabel will be overwritten by the filesystem itself if
it starts at block 0.
c. You must start the first partition past block 0, block 64
is standard for various reasons.

Chris

Reply via email to