On Fri, Aug 03, 2018 at 12:06:41AM +0200, Felix Maschek wrote:
> I've used a full encrypted HDD (created as described in the OpenBSD FAQ) on
> a broken system and want to backup some data from it.
> I've assembled this HDD into an external USB case and want to mount the HDD
> on another system. How can I mount this HDD? Needless to say that I know the
> passphrase...

Find the disk:

$ dmesg | grep CRYPTO
sd3 at scsibus4 targ 2 lun 0: <OPENBSD, SR CRYPTO, 006> SCSI2 0/direct fixed

# disklabel sd3
...              size           offset  fstype [fsize bsize   cpg]
  a:        488279018               64  RAID
...

Unlock it:
# bioctl -c C -l /dev/sd3a softraid0
<enter passphrase>
... attached as sd4 ...

# disklabel sd4
...

Mount partitions:
# mount /dev/sd4k /mnt/home


Good luck,

Erling

Reply via email to