Bug#579162: [pkg-cryptsetup-devel] Bug#579162: cryptsetup: Error mounting device: EXT3-fs: group descriptors corrupted

2010-05-03 Thread David Simpson

Hi Jonas,


please provide more information about your dm-crypt setup. which command
do you use in order to unlock the dm-crypt device? is it a LUKS
encrypted device, or do you use plain dm-crypt?
   

  Yes, I am using plain dm-crypt:

cryptsetup -d ${KEYFILE} create container1 /dev/loop1


i guess that you use plain dm-crypt and didn't set cipher, hash and hash
size in the crypttab, thus running into issues with the changed defaults.
   


Thanks for the advice. I am now able to mount the container using the 
latest packages using:


cryptsetup -c aes-cbc-plain -h ripemd160 -s 256  -d ${KEYFILE} 
create container1 /dev/loop1


Just the cipher seemed to do the trick but I expect the other options 
will protect me from future changes.  I should probably start using 
crypttab - I didn't know what it was before.


Thanks again
David



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#579162: [pkg-cryptsetup-devel] Bug#579162: cryptsetup: Error mounting device: EXT3-fs: group descriptors corrupted

2010-05-02 Thread Jonas Meurer
hey david,

On 25/04/2010 David Simpson wrote:
 When I try to mount an encrypted container I get the following:
 
 # mount /dev/mapper/container1 /mnt/container1
 
 wrong fs type, bad option, bad superblock on /dev/mapper/container1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail  or so
 
 # dmesg
   [511.59] EXT3-fs error (device dm-0): ext3_check_descriptors: Block 
 bitmap 
 for group 0 not in group (block 1825591687)!
   [511.62] EXT3-fs: group descriptors corrupted!

please provide more information about your dm-crypt setup. which command
do you use in order to unlock the dm-crypt device? is it a LUKS
encrypted device, or do you use plain dm-crypt?

 I am running this on a SheevaPlug with a USB external harddrive. 
 
 If I try the same container on an updated Squeeze installed on an AthlonXP 
 2800 desktop 
 (2.6.32-trunk-686 #1 SMP), I get the same error. However, if I try with 
 Ubuntu 9.10 on 
 the same Athlon desktop, this same container mounts successfully. 
 
 Back on the Sheeva Plug, if I downgrade the package to 
 cryptsetup_2%3a1.1.0~rc2-1_armel.deb, 
 the same container mounts successfully, but fails to mount if I then upgrade 
 to the next latest 
 that I have in my package archive: cryptsetup_2%3a1.1.0-2_armel.deb. 

i guess that you use plain dm-crypt and didn't set cipher, hash and hash
size in the crypttab, thus running into issues with the changed defaults.

 For the failure cases, testdisk fails to find any valid superblocks on the 
 mapped device.  Both 
 of my (ext3) containers are showing the same problem.

greetings,
 jonas



signature.asc
Description: Digital signature