Mayday! How do I manually mount my encrypted ext3 external usb disk?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Also, I posted some tips to try and recover the lost file, but if you dont stop using your computer's hard drive immediately, you're risking losing the data to rebuild that file.
just for giggles, use the gnome-keyring-manager to create an empty keyring file and let it's do its thing again. Lemme know if that helps.
Also, what encryption are you using on the external drive? LUKS?
Not sure how to create an 'empty keyring file' via gnone-keyring-manager. I had backed up my original ~/.gnome2/keyrings/login.keyring file though. Will that help?
I think, I was using LUKS but not sure.
I don't have Live CD to recover. What are the other alternatives? I'm unable to understand what has gone wrong and why? Deleting a keyring, I think, should only make things revert to manual... that is the whole reason why I chose to go ahead and delete it.
Could you/someone please explain, why I cannot remount my disk manually again? My soul is almost crying now, so please try and be a little kind if you can...
Sorry, I was under the impression that you deleted the keyring file and didnt have a backup.
Restore the keyring file to regain access to your encrypted volume and back it up RIGHT NOW. Then we'll figure out what's going on with the keyring manager.
Sorry, I was under the impression that you deleted the keyring file and didnt have a backup.
Restore the keyring file to regain access to your encrypted volume and back it up RIGHT NOW. Then we'll figure out what's going on with the keyring manager.
Done! Backed up the whole blessed '~/.gnome2/keyrings' folder. Now...?
Were you able to mount your encrypted device now? I meant for you to back up that data. You should secure a working recoverable state before you do anything that might jepardize your data.
Were you able to mount your encrypted device now? I meant for you to back up that data. You should secure a working recoverable state before you do anything that might jepardize your data.
No, I wasn't able to mount. I cannot 'back up that data' 'cause it's huge: The entire drive is 250G.
Here's what I have tried doing so far.
1. Get the device from 'fdisk -l'
Code:
Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x5c74ae42
Device Boot Start End Blocks Id System
/dev/sdb1 1 30401 244196001 7 HPFS/NTFS
2. Tried opening the luks device, in 2 ways... neither of which worked.
Code:
[root@ida:~]
$ cryptsetup luksOpen /dev/sdb bkupdrive
Enter LUKS passphrase for /dev/sdb:
Command failed: No key available with this passphrase.
[root@ida:~]
$ cryptsetup luksOpen /dev/sdb1 bkupdrive
Enter LUKS passphrase for /dev/sdb1:
Enter LUKS passphrase for /dev/sdb1:
Enter LUKS passphrase for /dev/sdb1:
[root@ida:~]
Tired of entering my password upon every power-on, I decided to save my password one day. However, I now want to go back to the old setting... where I had to manually enter my password.
That is when you deleted your keyring file... Now that your gnome keyring has been restored, you are not able to mount the device as before?
That is when you deleted your keyring file... Now that your gnome keyring has been restored, you are not able to mount the device as before?
Or am I missing something?
Basically, this has been the sequence of events.
1. Tired of entering password everyday.
2. Saved my password via Gnome.
3. Happy for many months.
4. Now, today, wanted the old feature back (of being prompted for password).
5. Installed gnome-keyring-manager per your suggestion.
6. Backed up my .gnome2/keyrings folder.
7. From within gnome-keyring-manager, deleted the one and only key/ring that. Was warned of this undo-able action but went ahead anyways: I was confident since I was using this password-save feature of Gnome only for this usb drive and not for anything else.
8. Power cycled my usb drive.
9. As expected, was prompted for password for the first time in many months.
10. Entered the password... without success!
11. Quit gnome-keyring-manager.
12. Quickly restored the backed up folder.
13. Still no success!
After a couple password entry attempt, the password dialog just quietly disappears. The device does not show as mounted (which I kind of expected). Btw, here's what the dialog looks like:
Title: "Unlock Encrypted Data (partition 1)"
The storage device WD2500JB External contains encrypted data on partition 1. Enter a password to unlock.
Password:
o Forget password immediately
o Remember password until you logout
o Remember forever
Cancel Connect
Basically, this has been the sequence of events.
1. Tired of entering password everyday.
2. Saved my password via Gnome.
3. Happy for many months.
4. Now, today, wanted the old feature back (of being prompted for password).
5. Installed gnome-keyring-manager per your suggestion.
6. Backed up my .gnome2/keyrings folder.
7. From within gnome-keyring-manager, deleted the one and only key/ring that. Was warned of this undo-able action but went ahead anyways: I was confident since I was using this password-save feature of Gnome only for this usb drive and not for anything else.
8. Power cycled my usb drive.
9. As expected, was prompted for password for the first time in many months.
10. Entered the password... without success!
11. Quit gnome-keyring-manager.
12. Quickly restored the backed up folder.
13. Still no success!
After a couple password entry attempt, the password dialog just quietly disappears. The device does not show as mounted (which I kind of expected). Btw, here's what the dialog looks like:
Title: "Unlock Encrypted Data (partition 1)"
The storage device WD2500JB External contains encrypted data on partition 1. Enter a password to unlock.
Password:
o Forget password immediately
o Remember password until you logout
o Remember forever
Cancel Connect
Hey friend -- it WORKS! Hurrrrah!
I think, my jittery fingers were typing the password wrong. Repeatedly!
Sincerely apologies, for wasting your precious last few minutes!
Also, my deepest thanks and gratitude... for standing by the side of me novice. A virtual million dollars to you, just for being there...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.