public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] No access to encfs-encrypted directory
@ 2012-01-07  5:59 meino.cramer
  2012-01-07  9:25 ` Mick
  0 siblings, 1 reply; 2+ messages in thread
From: meino.cramer @ 2012-01-07  5:59 UTC (permalink / raw
  To: Gentoo

Hi,

On a extf4 formatted partition I have two directories (beside others,
non encrypted ones):

    .crypt
    crypt

.crypt contains the encrypted data.

I then mount the encrypted partionas as root with

    mount -t ecryptfs /home/user/.crypt /home/user/crypt -o ecryptfs_cipher=blowfish,ecryptfs_key_bytes=56,ecryptfs_passthrough=n,ecryptfs_sig=XXXXXXXXXXXXXXXX,ecryptfs_fnek_sig=XXXXXXXXXXXXXXXX,ecryptfs_unlink_sigs,key=passphrase

(I blanked the sigs before posting)

This worked like a charm....but...

A local power fail switches my PC off while the encrypted directory
was mounted.

After rebooting I still was abler to execute the command given above
successfully, but two diorectorie below the directory 'crypt' show
like this:

drwxr-xr-x  6 mccramer users  4096 2012-01-07 05:05 .
drwxr-xr-x 11 mccramer users  4096 2012-01-07 06:47 ..
d?????????  ? ?        ?         ?                ? .process
drwxr-xr-x  2 mccramer users  4096 2008-09-07 03:41 BlenderLostAndFound
drwxr-xr-x  2 mccramer users 12288 2011-10-31 04:16 NEWARCS
-rw-r--r--  1 mccramer users     0 2006-01-01 07:00 RENDER
d?????????  ? ?        ?         ?                ? logdata
    

Trying to cd into logdata or .process fail.


Is there any chance to recover from this and if yes: how ???

Thank you very much for any help in advance!

Best regards,
mcc






^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [gentoo-user] No access to encfs-encrypted directory
  2012-01-07  5:59 [gentoo-user] No access to encfs-encrypted directory meino.cramer
@ 2012-01-07  9:25 ` Mick
  0 siblings, 0 replies; 2+ messages in thread
From: Mick @ 2012-01-07  9:25 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 1799 bytes --]

On Saturday 07 Jan 2012 05:59:23 meino.cramer@gmx.de wrote:
> Hi,
> 
> On a extf4 formatted partition I have two directories (beside others,
> non encrypted ones):
> 
>     .crypt
>     crypt
> 
> .crypt contains the encrypted data.
> 
> I then mount the encrypted partionas as root with
> 
>     mount -t ecryptfs /home/user/.crypt /home/user/crypt -o
> ecryptfs_cipher=blowfish,ecryptfs_key_bytes=56,ecryptfs_passthrough=n,ecry
> ptfs_sig=XXXXXXXXXXXXXXXX,ecryptfs_fnek_sig=XXXXXXXXXXXXXXXX,ecryptfs_unlin
> k_sigs,key=passphrase
> 
> (I blanked the sigs before posting)
> 
> This worked like a charm....but...
> 
> A local power fail switches my PC off while the encrypted directory
> was mounted.
> 
> After rebooting I still was abler to execute the command given above
> successfully, but two diorectorie below the directory 'crypt' show
> like this:
> 
> drwxr-xr-x  6 mccramer users  4096 2012-01-07 05:05 .
> drwxr-xr-x 11 mccramer users  4096 2012-01-07 06:47 ..
> d?????????  ? ?        ?         ?                ? .process
> drwxr-xr-x  2 mccramer users  4096 2008-09-07 03:41 BlenderLostAndFound
> drwxr-xr-x  2 mccramer users 12288 2011-10-31 04:16 NEWARCS
> -rw-r--r--  1 mccramer users     0 2006-01-01 07:00 RENDER
> d?????????  ? ?        ?         ?                ? logdata
> 
> 
> Trying to cd into logdata or .process fail.
> 
> 
> Is there any chance to recover from this and if yes: how ???
> 
> Thank you very much for any help in advance!

This looks like fs corruption.  Boot a LiveCD if you need to and run fsck.ext4 
-c /dev/sdX.

If it comes up with errors you'll probably need to rerun fsck with additional 
options and hope that it fixes the corruption.

You may lose some data.

Good luck.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-01-07  9:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-07  5:59 [gentoo-user] No access to encfs-encrypted directory meino.cramer
2012-01-07  9:25 ` Mick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox