View previous topic :: View next topic |
Author |
Message |
dschein Tux's lil' helper
Joined: 10 Aug 2003 Posts: 121
|
Posted: Wed Mar 22, 2006 11:52 pm Post subject: HELP! can not mount encrypted partition! |
|
|
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 |
|
|
PMcCauley Apprentice
Joined: 14 Mar 2006 Posts: 283 Location: Alberta, Canada
|
Posted: Thu Mar 23, 2006 12:17 am Post subject: |
|
|
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 |
|
|
Ma3oxuct Guru
Joined: 18 Apr 2003 Posts: 523
|
Posted: Thu Mar 23, 2006 2:54 am Post subject: |
|
|
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 |
|
|
|