LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-15-2009, 02:06 AM   #1
simonsharry
LQ Newbie
 
Registered: Feb 2008
Posts: 12

Rep: Reputation: 0
Exclamation Mayday! How do I manually mount my encrypted ext3 external usb disk?


Hello,

I have deleted the one and only key/ring from my gnome-keyring-manager app. (See this thread:

http://www.linuxquestions.org/questi...9/#post3443909

I thought, after the deletion, I'd be re-prompted for the password and all will be fine. However...

)

Now, Gnome, even though it's prompting me for a password, it is not accepting it: after a 2-3 tries it just stops prompting.

How do I manually mount my encrypted ext3 external usb disk once again? I have forgotten the encryption method I used; I only remember my password.

PLEASE HELP. Or, I'll be in big trouble... as all my backups for the past 1 year are on this drive! I hope somebody out there knows what this is.

Note: I'm using Fedora, version 2.6.27.12-78.2.8.fc9.i686

/HS

Last edited by simonsharry; 02-15-2009 at 02:08 AM.
 
Old 02-15-2009, 02:21 AM   #2
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
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?
 
Old 02-15-2009, 02:22 AM   #3
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
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.
 
Old 02-15-2009, 03:18 AM   #4
simonsharry
LQ Newbie
 
Registered: Feb 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Admiral Beotch View Post
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...
 
Old 02-15-2009, 03:41 AM   #5
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
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.
 
Old 02-15-2009, 03:47 AM   #6
simonsharry
LQ Newbie
 
Registered: Feb 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Admiral Beotch View Post
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...?
 
Old 02-15-2009, 04:03 AM   #7
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
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.
 
Old 02-15-2009, 04:12 AM   #8
simonsharry
LQ Newbie
 
Registered: Feb 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Admiral Beotch View Post
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:~]
Basically, I was hoping, that having opened the luks device, I would next create device-mapper (as mentioned here :
http://www.nabble.com/Successful-tes...d16361554.html )

But as you can see above, I'm not sure why my passphrase is failing.

Any suggestions now?
 
Old 02-15-2009, 04:17 AM   #9
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
In your original post, you stated:
Quote:
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?

Or am I missing something?
 
Old 02-15-2009, 04:30 AM   #10
simonsharry
LQ Newbie
 
Registered: Feb 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Admiral Beotch View Post
In your original post, you stated:


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
 
Old 02-15-2009, 04:37 AM   #11
simonsharry
LQ Newbie
 
Registered: Feb 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by simonsharry View Post
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...

Best regards,
/HS
 
Old 02-15-2009, 04:49 AM   #12
JulianTosh
Member
 
Registered: Sep 2007
Location: Las Vegas, NV
Distribution: Fedora / CentOS
Posts: 674
Blog Entries: 3

Rep: Reputation: 90
No worries sir. I've had my own fair share of moments of desperation here. Glad I could be there for you.

Now... go stimulate the economy and buy a 500G drive and back that 250G sucker up! hehehe Sounds like it's a precious collection of bits.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mount an external ntfs usb hard disk dmpop Mandriva 5 03-03-2013 10:45 AM
mount external USB hard disk shiv_sms Linux - Newbie 3 01-22-2009 03:02 AM
ext3 RAID 1 on a USB External Two Disk Hard Drive - Possible? Runge_Kutta Linux - Hardware 3 08-17-2007 06:28 PM
Mount external USB 2.0 hard disk with NTFS? Musikolo Linux - Hardware 8 09-15-2006 09:11 AM
How to mount the External USB disk in grub prompt? rajarishi LinuxQuestions.org Member Intro 1 06-12-2006 11:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration