[dm-crypt] Trying to mount pre-Luks encrypted external disks, suse 12.3

James Pacey Bennett jbennett at maxwell.syr.edu
Thu Jul 18 01:41:13 CEST 2013

I have several external backup disks encrypted before Luks appeared.  After
update from 12.1 to 12.3, losetup is gone and I haven't been able to
mount the encrypted disks.

linux-p22i /root# uname -r

linux-p22i /root# lsmod | grep crypt
cryptoloop             12715  0
loop                   27944  1 cryptoloop
dm_crypt               22845  2
dm_mod                 92315  4 dm_crypt

linux-p22i /root# lsblk -f -l /dev/sdi1

***/dev/sdi1 was previously under 12.1 mounted using losetup***

***Because the partition isn't a Luks partition, I can't***
linux-p22i /root# cryptsetup luksOpen /dev/sdi1 back5
Device /dev/sdi1 is not a valid LUKS device.

So I try a 'legacy' approach per the cryptosetup wiki:

linux-p22i /root# cryptsetup create back5 /dev/sdi1
Enter passphrase:
(which I did; just got newline)

linux-p22i /root# cryptsetup status back5
/dev/mapper/back5 is active.
  type:    PLAIN
  cipher:  aes-cbc-essiv:sha256
  keysize: 256 bits
  device:  /dev/sdi1
  offset:  0 sectors
  size:    976768002 sectors
  mode:    read/write

***which seems correct to me***

linux-p22i /root# l /dev/mapper/
back5@                                              cr_ata-WDC_WD1002FAEX-00Z3A0_WD-WCATRC268610-part1@
control%                                            main@

Now. How do I or what do I mount?  I can't use /dev/mapper directly.
I have no success trying to mkfs /dev/back5.

This must be a common problem but I don't find
it addressed in the opensuse forums.

jim bennett
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.saout.de/pipermail/dm-crypt/attachments/20130717/8397fc32/attachment.html>

More information about the dm-crypt mailing list