Ask Your Question
0

remove encryption password

asked 2012-12-30 18:44:19 -0600

PABLOGUTO gravatar image

How can I remove encryption password from hard disk. Fedora 17 installed with cryptography password. Is there some way to remove it or I will have to format and setup the system once more?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2012-12-30 21:35:18 -0600

praneeth gravatar image

i think there no other way apart from cracking encrypted password. For that, we need to know which encryption tool is used, which algorithm is used to encrypt it (i guess blow fish algorithm is used), then crack it with random guesses.. this takes lot of time and energy. so better option is format it.

My suggestion is, do not give new passwords, which is difficult to remember or just make a note of new password.

edit flag offensive delete link more
0

answered 2013-01-04 08:18:57 -0600

ThomasMcA gravatar image

Did you use LUKS, which encrypts the entire partition? Or did you use eCryptfs, which encrypts individual files?

If you used LUKS to encrypt the /home partition, follow these steps.

  1. Boot into Fedora normally
  2. Backup the encrypted files using tar or rsync. You might even want to use both methods (i.e., create 2 backups) just to be safe.
  3. Boot to a Live OS (CD, DVD or USB key)

All of the following should be done from the Live OS

  1. Delete the encrypted partition
  2. Create a new partition, and format it
  3. Restore your backup into the new partition
  4. Delete/rename /etc/crypttab
  5. Modify fstab to reflect the new setup

    a. The /dev/mapper entries need to be removed.

    b. UUIDs may need to be changed

6) Reboot.

Since you restored all of the files, you will not need to reinstall the OS.

NOTE: technically, the above could also be used if you installed Linux into a single, encrypted partition. However, I have not had any luck getting tar to backup an entire Linux OS - it complains about some system files, then aborts.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-12-30 18:44:19 -0600

Seen: 3,332 times

Last updated: Jan 04 '13