View previous topic :: View next topic |
Author |
Message |
zeroth Tux's lil' helper
Joined: 27 Feb 2006 Posts: 128
|
Posted: Fri Jul 22, 2011 2:30 pm Post subject: unencrypting on a different system fails |
|
|
I've had this happen before: an encrypted volume will unencrypt with losetup and mount fine on the system it was encrypted on, but on another will instead bail with "must specify file system type" ( usually meaning a bad password, but not the case here ).
the first time this happened was after a large system update, and I was able to chroot from a previous system backup and successfully unencrypt. now I am in the same predicament but have no previous system backup to chroot into.
I've got the encrypted medium (a file) and the correct password and I know the encryption method, but cant unencrypt. so what can I do? whats the issue here?
with the wrong password I always get this:
Code: |
mount -oencryption=aes file /mnt/tmp
Password:
mount: you must specify the filesystem type
|
but with the correct password, it does this instead:
Code: |
mount -oencryption=aes file /mnt/tmp
Password:
mount: wrong fs type, bad option, bad superblock on /dev/loop1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
|
and this is what dmesg has to say when I use the correct password:
Code: |
init_special_inode: bogus i_mode (166236) for inode loop0:8
EXT3-fs (loop0): error: invalid journal inode
|
there are text files on the encrypted medium which would show by doing a `cat /dev/loop0 | strings -n 10` but it shows nothing intelligible. the unencryption is just plain not working like it should... |
|
Back to top |
|
|
zeroth Tux's lil' helper
Joined: 27 Feb 2006 Posts: 128
|
Posted: Fri Jul 22, 2011 3:04 pm Post subject: |
|
|
another interesting bit, after losetup'ing to loop0 with correct password:
Code: |
cat /dev/loop0 > tst
file tst
tst: Linux rev 1.0 ext3 filesystem data, UUID=d0830430-7237-4dcd-8b68-c9e35c46916d
|
|
|
Back to top |
|
|
zeroth Tux's lil' helper
Joined: 27 Feb 2006 Posts: 128
|
Posted: Sat Jul 23, 2011 7:20 pm Post subject: |
|
|
still unresolved |
|
Back to top |
|
|
zeroth Tux's lil' helper
Joined: 27 Feb 2006 Posts: 128
|
Posted: Mon Jul 25, 2011 4:41 am Post subject: |
|
|
bump |
|
Back to top |
|
|
|