Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
HELP! can not mount encrypted partition!
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
dschein
Tux's lil' helper
Tux's lil' helper


Joined: 10 Aug 2003
Posts: 121

PostPosted: Wed Mar 22, 2006 11:52 pm    Post subject: HELP! can not mount encrypted partition! Reply with quote

all of a sudden I can not mount my encrypted partition!

I normally mount it like this:

Code:

# cryptsetup --key-file=/root/key2.txt -y -c aes -s 256 create hda1-aes /dev/hda1;
# mount /home/;


but now:
Code:
# cryptsetup --key-file=/root/key2.txt -y -c aes -s 256 create hda1-aes /dev/hda1;
Command failed: No such file or directory


and
Code:
# dmsetup ls
No devices found

# ls /dev/mapper/
control


all my files are held captive!
Back to top
View user's profile Send private message
PMcCauley
Apprentice
Apprentice


Joined: 14 Mar 2006
Posts: 283
Location: Alberta, Canada

PostPosted: Thu Mar 23, 2006 12:17 am    Post subject: Reply with quote

It is probably dmcrypt thats the issue I would suspect. Trying just using dmsetup. You can use blockdev --getsize to get blocksize. Example from this site: http://www.saout.de/misc/dm-crypt/

echo 0 `blockdev --getsize /dev/hda5` crypt aes-plain 0123456789abcdef0123456789abcdef 0 /dev/hda5 0 | dmsetup create volume1

If dmcrypt doesn't work I think you can reemerge it.

Edit: Should be able to re-emerge using emerge device-mapper.
Back to top
View user's profile Send private message
Ma3oxuct
Guru
Guru


Joined: 18 Apr 2003
Posts: 523

PostPosted: Thu Mar 23, 2006 2:54 am    Post subject: Reply with quote

dschein,

I am curious. What have you done unussual that could have cause this problem? i.e. Can you trace back, what might have caused this?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software 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