Mount ecryptfs file


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Mount ecryptfs file
# 1  
Old 07-27-2012
Mount ecryptfs file

Hi

I recently had a VHD file go corrupt on a VirtualBox VM running ubuntu
I have managed to run a recovery program and got a load of files from this however the home directory was encrypted
I have a few .ecryptfs files from the recovery and I know the password used however I am unable to recover the data (Not really sure if im doing it right)

-----------------

Code:
sudo mkdir /mnt/crypt
sudo mount -t ecryptfs b13600744.eCryptfs /mnt/crypt
Passphrase: 
Select cipher: 
 1) aes: blocksize = 16; min keysize = 16; max keysize = 32 (loaded)
 2) des3_ede: blocksize = 8; min keysize = 24; max keysize = 24 (not loaded)
 3) cast6: blocksize = 16; min keysize = 16; max keysize = 32 (not loaded)
 4) cast5: blocksize = 8; min keysize = 5; max keysize = 16 (not loaded)
Selection [aes]: 
Select key bytes: 
 1) 16
 2) 32
 3) 24
Selection [16]: 
Enable plaintext passthrough (y/n) [n]: 
Enable filename encryption (y/n) [n]: y
Filename Encryption Key (FNEK) Signature [fbc2d5c3151701c4]: 
Attempting to mount with the following options:
  ecryptfs_unlink_sigs
  ecryptfs_fnek_sig=fbc2d5c3151701c4
  ecryptfs_key_bytes=16
  ecryptfs_cipher=aes
  ecryptfs_sig=fbc2d5c3151701c4
WARNING: Based on the contents of [/root/.ecryptfs/sig-cache.txt],
it looks like you have never mounted with this key 
before. This could mean that you have typed your 
passphrase wrong.

Would you like to proceed with the mount (yes/no)? : yes
Would you like to append sig [fbc2d5c3151701c4] to
[/root/.ecryptfs/sig-cache.txt] 
in order to avoid this warning in the future (yes/no)? : no
Not adding sig to user sig cache file; continuing with mount.
Error mounting eCryptfs: [-20] Not a directory
Check your system logs; visit <http://launchpad.net/ecryptfs>

-----------------

Im either going the wrong way about mounting a .ecryptfs file given only the passphrase or somethings wrong with the way im mounting the file

Can anyone point me in the right direction

Thanks
Moderator's Comments:
Mod Comment Code tags for code, please.

Last edited by Corona688; 07-27-2012 at 02:19 PM..
# 2  
Old 07-27-2012
It also says to check your system logs, which I suggest doing. The last few things in dmesg may also be relevant.
# 3  
Old 07-27-2012
Done that

The syslog says
Jul 27 18:29:12 Topher-LI mount.ecryptfs: Failed to perform eCryptfs mount: [Not a directory]
Jul 27 18:29:12 Topher-LI kernel: [ 6847.640069] Reading sb failed; rc = [-20]

And the kern.log says
Jul 27 18:29:12 Topher-LI kernel: [ 6847.609883] ecryptfs_mount: kern_path() failed
Jul 27 18:29:12 Topher-LI kernel: [ 6847.640069] Reading sb failed; rc = [-20]
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to mount nas-share using generated credentials (mount EC 13,32)

Heyas At home i have 1 nas with 3 shares, of which i used to mount 2 of them using a script with hardcoded password and username in it. EDIT: Turns out, its not the script, but 'how i access' the nas share.. (-o user=XY,password=... VS. -o credentials=...). Figured about credential files,... (0 Replies)
Discussion started by: sea
0 Replies

2. AIX

Cannot mount file system

Hi , We i try to mount aix filesystem i am getting the following error mount: 0506-324 Cannot mount /dev/fslv11 on /testdir: A system call received a parameter that is not valid. Please help me out (2 Replies)
Discussion started by: chidori
2 Replies

3. AIX

Can only ls 50 file on NFS mount?

Please can anybody help me with this weird behaviour. There are 2 x-servers running Fedora 16 work as a cluster with DRBD, corosync & pacemaker. The cluster exports a filesystem using the following statement in /etc/exports /drbd/home 10.49.17.0/255.255.255.0... (0 Replies)
Discussion started by: spitzie
0 Replies

4. Shell Programming and Scripting

Problem in test file operator on a ufsdump archive file mount nfs

Hi, I would like to ask if someone know how to test a files if exist the file is a nfs mount ufsdump archive file.. i used the test operator -f -a h almost all test operator but i failed file1=ufs_root_image.dump || echo "files doesn't exist && exit 1 the false file1 is working but... (0 Replies)
Discussion started by: jao_madn
0 Replies

5. IP Networking

Can't see home folder on one NFS mount but can in another mount on another share

Hello, I have a few Ubuntu 9.10 laptops I'm trying to learn NFS sharing with. I am just experimenting on this right now, so no harsh words about the security of what I'm playing with, please ;) Below are the configs /etc/exports on host /home/woodnt/Homeschool... (2 Replies)
Discussion started by: Narnie
2 Replies

6. UNIX for Dummies Questions & Answers

Mount a file or directory

Hi All, I am very new to Linux. I have just started preparation for RHCE. Can anybody pls tell me the meaning of mount a file or directory. When we mount particular file at that time what exactly we do with the file. (2 Replies)
Discussion started by: kunalpatil09
2 Replies

7. UNIX for Advanced & Expert Users

mount -t cifs permission denied by mount -t smbfs works fine

I am having trouble mounting with cifs, but mounting the exact same command with smbfs works fine. The share is on another samba server and is set to full public guest access. # mount -t cifs //servername/sharename /mnt/temp -o password="" mount error 13 = Permission denied Refer to the... (3 Replies)
Discussion started by: humbletech99
3 Replies

8. UNIX for Dummies Questions & Answers

How to change the file modification time of a file on nfs mount point

Hi I am accessing a file on nfs mounted device, after completing using of the file, i am tring to restore the access time and modification times of the file. So i got the previous modified time of the file using stat() function and trying to set the date and time for the file, To set these... (6 Replies)
Discussion started by: deepthi.s
6 Replies

9. UNIX for Dummies Questions & Answers

how to mount a hotswap scsi drive on a solaris 2.6 netra box using the mount command?

Hi... question is this: How do I mount an LVD hotswap scsi drive in bay #2 on a netra using the mount command? volmgt doesn't seem to mount it and/or I don't know how to view the drives data if it's formatted which it may not be. This drive is not new out of the box so I'm not sure. ... (4 Replies)
Discussion started by: soulshaker
4 Replies
Login or Register to Ask a Question