Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to fix an encrypted filesystem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
jeanluca
Apprentice
Apprentice


Joined: 08 Jan 2005
Posts: 179

PostPosted: Sun Apr 10, 2005 10:33 am    Post subject: how to fix an encrypted filesystem Reply with quote

Hi All

I have a problem with my encrypted file-system. The problem is that I can access the encrypted file-system but some of the file inside cannot be opened anymore, here for example, is what I get with ls -al
Code:
 leppie files # ls -al
ls: file1: Permission denied
ls: file2: Permission denied
ls: file3: Permission denied
ls: file4: Permission denied
ls: file5: Permission denied
total 1437606
drwxr-xr-x  2 root  root        488 Apr 11 10:45 .
drwxr-xr-x  6 root  root        128 Jan 27 23:18 ..
-rw-r--r--  1 dummy 15150 1040896 Dec  4 03:01 file6
-rw-r--r--  1 dummy 15150 2774320 Feb 23 04:24 file7
So something tells me that this is not normal. Maybe a fsck.reiserfs might help but the file system is encrypted, so my question is how to fix an encrypted file-system??

Luca
Back to top
View user's profile Send private message
CoN
n00b
n00b


Joined: 08 Sep 2003
Posts: 39

PostPosted: Sun Apr 10, 2005 1:38 pm    Post subject: Reply with quote

Don't have much experience with encrypted fs, but IIRC it's mounted through a loop-device and you can use losetup to get access to the un-encrypted device without mounting it. I haven't tested it, but try something similar to
Code:
losetup -e "encryption" "options" /dev/loop0 /dev/of/encrypted/fs
fsck.reiserfs /dev/loop0

Hope that helps
_________________
God, root... what's the difference?
Back to top
View user's profile Send private message
jeanluca
Apprentice
Apprentice


Joined: 08 Jan 2005
Posts: 179

PostPosted: Wed Apr 13, 2005 3:52 pm    Post subject: Reply with quote

thanks, and it did work :)
it fixed the file-sysem :)
but all corrupted files were deleted :(

Luca
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum