Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cryptsetup - after update can't mount drive [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
gent00-fun
n00b
n00b


Joined: 05 Nov 2011
Posts: 20

PostPosted: Sat Feb 23, 2013 12:56 pm    Post subject: cryptsetup - after update can't mount drive [SOLVED] Reply with quote

I've upgraded cryptsetup from 1.0.6 to 1.6.0. Now can't mount encrypted drive. What can i do? Is possible to mount drive created with older version ??? Thank You in advance.


Code:
$ cryptsetup create data1 /dev/sda5
Enter passphrase: ...
$ mount /mnt/data1

mount: wrong fs type, bad option, bad superblock on /dev/mapper/data1,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail or so

dmesg:
EXT3-fs error (device dm-0): ext3_check_descriptors: Block bitmap for group 0 not in group (block 1521994086)!
EXT3-fs (dm-0): error: group descriptors corrupted
EXT3-fs error (device dm-0): ext3_check_descriptors: Block bitmap for group 0 not in group (block 1521994086)!
EXT3-fs (dm-0): error: group descriptors corrupted
EXT3-fs error (device dm-0): ext3_check_descriptors: Block bitmap for group 0 not in group (block 1521994086)!
EXT3-fs (dm-0): error: group descriptors corrupted
EXT3-fs error (device dm-0): ext3_check_descriptors: Block bitmap for group 0 not in group (block 1521994086)!
EXT3-fs (dm-0): error: group descriptors corrupted
EXT3-fs (dm-1): error: can't find ext3 filesystem on dev dm-1.
EXT3-fs error (device dm-0): ext3_check_descriptors: Block bitmap for group 0 not in group (block 1521994086)!
EXT3-fs (dm-0): error: group descriptors corrupted


Last edited by gent00-fun on Sat Feb 23, 2013 8:11 pm; edited 2 times in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21586

PostPosted: Sat Feb 23, 2013 4:34 pm    Post subject: Reply with quote

Since you are not using LUKS, you are preparing the volume with the default cipher, key size, etc. These defaults may have changed. Does it work if you explicitly specify the correct cipher and related values?
Back to top
View user's profile Send private message
gent00-fun
n00b
n00b


Joined: 05 Nov 2011
Posts: 20

PostPosted: Sat Feb 23, 2013 6:12 pm    Post subject: Reply with quote

I don't know which is the default cipher, parameters... :/ How to check this ?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21586

PostPosted: Sat Feb 23, 2013 7:09 pm    Post subject: Reply with quote

Read the source of the old version, or try to find some old documentation that tells you.
Back to top
View user's profile Send private message
gent00-fun
n00b
n00b


Joined: 05 Nov 2011
Posts: 20

PostPosted: Sat Feb 23, 2013 7:56 pm    Post subject: Reply with quote

Code:
$ wget http://cryptsetup.googlecode.com/files/cryptsetup-1.0.6.tar.bz2
$ unp cryptsetup-1.0.6.tar.bz2
$ cd cryptsetup-1.0.6
$ grep -R DEFAULT_CIPHER *
src/cryptsetup.c:               .cipher = opt_cipher?opt_cipher:DEFAULT_CIPHER,
src/cryptsetup.h:#define DEFAULT_CIPHER         "aes"


I found "aes", but i think that aes is used...

Code:
$ cryptsetup status data1
/dev/mapper/data1 is active.
  type:    PLAIN
  cipher:  aes-cbc-essiv:sha256
  keysize: 256 bits
  device:  /dev/sda5
  offset:  0 sectors
  size:    390636477 sectors
  mode:    read/write

$ mount /dev/mapper/data20 /dtemp/data1
mount: wrong fs type, bad option, bad superblock on /dev/mapper/data20,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail or so


I don't know what to do with that...
Any suggestion ?
Back to top
View user's profile Send private message
gent00-fun
n00b
n00b


Joined: 05 Nov 2011
Posts: 20

PostPosted: Sat Feb 23, 2013 8:09 pm    Post subject: cryptsetup - after update can't mount drive [SOLVED] Reply with quote

I did it!

Code:
cryptsetup -c aes-cbc-plain create data1 /dev/sda5

do the trick :) Thanks for suggesion about cipher.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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