Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   which errors are critical for integrity of ext file system? (http://www.linux-archive.org/debian-user/657422-errors-critical-integrity-ext-file-system.html)

Martin T 04-18-2012 10:56 PM

which errors are critical for integrity of ext file system?
 
I was playing with dd "conv=noerror" option. It continues reading the
input file(for example HDD/SSD partition) even in case there are read
errors. Which errors are critical for integrity of ext[234] file
system? As I understand, Linux views the file system as a common set
of objects- superblock(maintains and describes the state of the file
system), inode(unique identifier for all the file system objects and
contains necessary metadata), dentry(glues together inode number and
file name), and file(bunch of bytes arranged in a certain order). Am I
correct that if the main superblock is damaged, the spare one is used
by fsck? In addition, am I correct that if sectors which hold content
of a file(for example .avi movie) are damaged, then only this file is
corrupted but file system itself is in good shape?


regards,
martin


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: CAJx5YvEG6gPQbwscg-Qs1LSaD=V76dmd-RFxH9B7M2Q0SnE+Qg@mail.gmail.com">http://lists.debian.org/CAJx5YvEG6gPQbwscg-Qs1LSaD=V76dmd-RFxH9B7M2Q0SnE+Qg@mail.gmail.com

Camaleón 04-21-2012 02:01 PM

which errors are critical for integrity of ext file system?
 
On Wed, 18 Apr 2012 22:56:40 +0000, Martin T wrote:

> I was playing with dd "conv=noerror" option. It continues reading the
> input file(for example HDD/SSD partition) even in case there are read
> errors. Which errors are critical for integrity of ext[234] file system?

"fsck" will tell and a system running with normality (no locks, hangs nor
other weird behaviour) will confirm that extent.

> As I understand, Linux views the file system as a common set of objects-
> superblock(maintains and describes the state of the file system),
> inode(unique identifier for all the file system objects and contains
> necessary metadata), dentry(glues together inode number and file name),
> and file(bunch of bytes arranged in a certain order). Am I correct that
> if the main superblock is damaged, the spare one is used by fsck?

Well, "man fsck.ext3" tells about "-b" flag but a success recover will
depend on the damage level, there's nothing guaranteed.

> In addition, am I correct that if sectors which hold content of a file
> (for example .avi movie) are damaged, then only this file is corrupted
> but file system itself is in good shape?

If you are lucky enough so that the corruption is localized and affecting
just one file, then yes, but that extreme barely happens :-)

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: jmuejf$g9$14@dough.gmane.org">http://lists.debian.org/jmuejf$g9$14@dough.gmane.org


All times are GMT. The time now is 10:08 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.