View previous topic :: View next topic |
Author |
Message |
jeanluca Apprentice
Joined: 08 Jan 2005 Posts: 179
|
Posted: Sun Apr 10, 2005 10:33 am Post subject: how to fix an encrypted filesystem |
|
|
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 |
|
|
CoN n00b
Joined: 08 Sep 2003 Posts: 39
|
Posted: Sun Apr 10, 2005 1:38 pm Post subject: |
|
|
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 |
|
|
jeanluca Apprentice
Joined: 08 Jan 2005 Posts: 179
|
Posted: Wed Apr 13, 2005 3:52 pm Post subject: |
|
|
thanks, and it did work
it fixed the file-sysem
but all corrupted files were deleted
Luca |
|
Back to top |
|
|
|