LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-20-2011, 01:29 PM   #1
skoinga
Member
 
Registered: May 2010
Posts: 87

Rep: Reputation: 0
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
 
Old 09-20-2011, 01:42 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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.

Last edited by macemoneta; 09-20-2011 at 01:45 PM.
 
Old 09-20-2011, 05:45 PM   #3
skoinga
Member
 
Registered: May 2010
Posts: 87

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by macemoneta View Post
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)?
 
Old 09-20-2011, 05:53 PM   #4
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
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
 
1 members found this post helpful.
Old 09-20-2011, 06:15 PM   #5
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
EXT3 has a journal (EXT4 has improved reliability and performance features). Do you know the cause of the filesystem corruption?
 
Old 09-21-2011, 02:54 AM   #6
skoinga
Member
 
Registered: May 2010
Posts: 87

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by macemoneta View Post
EXT3 has a journal (EXT4 has improved reliability and performance features). Do you know the cause of the filesystem corruption?
Yes, power loss
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linpus Fedora after saving files to file system, CAN'T open FILE SYSTEM from desktop! remiwa Fedora 2 01-07-2009 07:28 AM
File system problem sir_com Linux - Newbie 2 04-25-2008 01:47 AM
file system problem... mahamkali Red Hat 2 12-04-2003 12:24 AM
file system problem.... mahamkali Linux - General 2 12-03-2003 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration