LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   File system problem (https://www.linuxquestions.org/questions/linux-server-73/file-system-problem-904050/)

skoinga 09-20-2011 01:29 PM

File system problem
 
Hi,
I recently notice error on the filesystem; after fsck (and after fixing several errors) I notice that some files were gone.
It's possible that errors on the file system make file disappear?
Thankyou

macemoneta 09-20-2011 01:42 PM

Yes, files whose structure cannot be repaired (they are corrupted) have their inode removed, deleting the file. Using a journaling filesystem, like EXT4 can help prevent this from occurring. Regular filesystem checks, which are the default, will also help prevent errors from accumulating, which can cause this to happen.

skoinga 09-20-2011 05:45 PM

Quote:

Originally Posted by macemoneta (Post 4477382)
Yes, files whose structure cannot be repaired (they are corrupted) have their inode removed, deleting the file. Using a journaling filesystem, like EXT4 can help prevent this from occurring. Regular filesystem checks, which are the default, will also help prevent errors from accumulating, which can cause this to happen.

Thankyou macemoneta.
So ext3 isn't good enough (it was my case)?

jailbait 09-20-2011 05:53 PM

look in lost+found
 
Each partition has a directory called lost+found. When fsck finds file fragments which it is unable to identify it places them in that partitions lost+found directory and gives them a meaningless name. If you have files in lost+found you might be able to identify them from the contents of the file.

Be sure that you are looking in the correct lost+found directory. There is one for every partition.

----------------------
Steve Stites

macemoneta 09-20-2011 06:15 PM

EXT3 has a journal (EXT4 has improved reliability and performance features). Do you know the cause of the filesystem corruption?

skoinga 09-21-2011 02:54 AM

Quote:

Originally Posted by macemoneta (Post 4477601)
EXT3 has a journal (EXT4 has improved reliability and performance features). Do you know the cause of the filesystem corruption?

Yes, power loss


All times are GMT -5. The time now is 12:10 PM.