PetePete
January 17th, 2008, 07:24 PM
ok so this is my first Howto, me kind to me :)
How to change the password on an encrypted volume
This is intended for use on encrypted volumes using Gutsy's disk encryption install from alt cd . May work on others but not entirely sure.
ok first things first, because I'm not a super ubuntu geek with binary dripping out of my fingers I suggest you backup all your data incase the below does happen to destroy your computer..
right now on with the facts.
get a ubuntu live cd, not the alternative install, the real deal.
Now load up a live session
(make cuppa tea, pc spec depending)
okie dokie it should have loaded up now, run a terminal and type the following:
sudo -i
apt-get install cryptsetup
once thats finished, type following;
modprobe dm_crypt
modprobe sha256
modprobe aes_i586
ok what we've just done is install cryptsetup and loaded the modules for it into the kernel so it can be used straight away
the next bit you are going to need to know the partition for the encrypted bit is on, dont worry if you are not sure as you can do a bit of trial and error here (assuming you only have 1 encrypted partition) if its not the correct one cryptsetup will tell you... when you do find it you will be asked for a password.
On the default guided disk encryption install you need to use sda5
cryptsetup -y luksAddKey /dev/sda5
the following will be shown..
--> enter orig password
key slot 0 unlocked
--> enter new password
--> reenter new password
command successful
you have now just added another password for the encrypted volume, the new password has been stored in key slot 1.
Next you need to delete the first password....
cryptsetup luksDelKey /dev/sda5 0
-->enter new password
key slot 1 unlocked
Command successful
And thats it!! no need to re-encrypt by copying the whole system.. done in 10 minutes! :)
any questions feel free to ask, but please make note of the high possibility that I wont have a monkeys what you are on about..
How to change the password on an encrypted volume
This is intended for use on encrypted volumes using Gutsy's disk encryption install from alt cd . May work on others but not entirely sure.
ok first things first, because I'm not a super ubuntu geek with binary dripping out of my fingers I suggest you backup all your data incase the below does happen to destroy your computer..
right now on with the facts.
get a ubuntu live cd, not the alternative install, the real deal.
Now load up a live session
(make cuppa tea, pc spec depending)
okie dokie it should have loaded up now, run a terminal and type the following:
sudo -i
apt-get install cryptsetup
once thats finished, type following;
modprobe dm_crypt
modprobe sha256
modprobe aes_i586
ok what we've just done is install cryptsetup and loaded the modules for it into the kernel so it can be used straight away
the next bit you are going to need to know the partition for the encrypted bit is on, dont worry if you are not sure as you can do a bit of trial and error here (assuming you only have 1 encrypted partition) if its not the correct one cryptsetup will tell you... when you do find it you will be asked for a password.
On the default guided disk encryption install you need to use sda5
cryptsetup -y luksAddKey /dev/sda5
the following will be shown..
--> enter orig password
key slot 0 unlocked
--> enter new password
--> reenter new password
command successful
you have now just added another password for the encrypted volume, the new password has been stored in key slot 1.
Next you need to delete the first password....
cryptsetup luksDelKey /dev/sda5 0
-->enter new password
key slot 1 unlocked
Command successful
And thats it!! no need to re-encrypt by copying the whole system.. done in 10 minutes! :)
any questions feel free to ask, but please make note of the high possibility that I wont have a monkeys what you are on about..