Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
unencrypting on a different system fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
zeroth
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2006
Posts: 128

PostPosted: Fri Jul 22, 2011 2:30 pm    Post subject: unencrypting on a different system fails Reply with quote

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
View user's profile Send private message
zeroth
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2006
Posts: 128

PostPosted: Fri Jul 22, 2011 3:04 pm    Post subject: Reply with quote

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
View user's profile Send private message
zeroth
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2006
Posts: 128

PostPosted: Sat Jul 23, 2011 7:20 pm    Post subject: Reply with quote

still unresolved
Back to top
View user's profile Send private message
zeroth
Tux's lil' helper
Tux's lil' helper


Joined: 27 Feb 2006
Posts: 128

PostPosted: Mon Jul 25, 2011 4:41 am    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum