Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] No access to encfs-encrypted directory
Date: Sat, 07 Jan 2012 09:26:39
Message-Id: 201201070925.27895.michaelkintzios@gmail.com
In Reply to: [gentoo-user] No access to encfs-encrypted directory by meino.cramer@gmx.de
1 On Saturday 07 Jan 2012 05:59:23 meino.cramer@×××.de wrote:
2 > Hi,
3 >
4 > On a extf4 formatted partition I have two directories (beside others,
5 > non encrypted ones):
6 >
7 > .crypt
8 > crypt
9 >
10 > .crypt contains the encrypted data.
11 >
12 > I then mount the encrypted partionas as root with
13 >
14 > mount -t ecryptfs /home/user/.crypt /home/user/crypt -o
15 > ecryptfs_cipher=blowfish,ecryptfs_key_bytes=56,ecryptfs_passthrough=n,ecry
16 > ptfs_sig=XXXXXXXXXXXXXXXX,ecryptfs_fnek_sig=XXXXXXXXXXXXXXXX,ecryptfs_unlin
17 > k_sigs,key=passphrase
18 >
19 > (I blanked the sigs before posting)
20 >
21 > This worked like a charm....but...
22 >
23 > A local power fail switches my PC off while the encrypted directory
24 > was mounted.
25 >
26 > After rebooting I still was abler to execute the command given above
27 > successfully, but two diorectorie below the directory 'crypt' show
28 > like this:
29 >
30 > drwxr-xr-x 6 mccramer users 4096 2012-01-07 05:05 .
31 > drwxr-xr-x 11 mccramer users 4096 2012-01-07 06:47 ..
32 > d????????? ? ? ? ? ? .process
33 > drwxr-xr-x 2 mccramer users 4096 2008-09-07 03:41 BlenderLostAndFound
34 > drwxr-xr-x 2 mccramer users 12288 2011-10-31 04:16 NEWARCS
35 > -rw-r--r-- 1 mccramer users 0 2006-01-01 07:00 RENDER
36 > d????????? ? ? ? ? ? logdata
37 >
38 >
39 > Trying to cd into logdata or .process fail.
40 >
41 >
42 > Is there any chance to recover from this and if yes: how ???
43 >
44 > Thank you very much for any help in advance!
45
46 This looks like fs corruption. Boot a LiveCD if you need to and run fsck.ext4
47 -c /dev/sdX.
48
49 If it comes up with errors you'll probably need to rerun fsck with additional
50 options and hope that it fixes the corruption.
51
52 You may lose some data.
53
54 Good luck.
55 --
56 Regards,
57 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature