Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Let's say I have a disk with a lot of partitions formatted with many different file systems.

I very rarely write data to it but I very often read data from it.

Now I'd just want to know what I can do, at the FS level or at the OS level (read only...) to avoid data-loss in the very specific case of power-loss. No UPS.

As a bonus question, as my knowledge of FS is scarce, what makes a given file system more resilient to data corruption? I guess there are references, but I could not find one about file systems in general.

share|improve this question
    
Read about journaling file systems. Even though the journal will ensure that the FS integrity is maintained, I don't see how you can prevent data corruption completely in case of sudden power loss while a file is being written to. Also see here for more. –  Karan Jan 9 '13 at 17:41
    
Yes, this is something I've heard about. But this is really standard nowadays : every recent FS that I can think of provides journaling. Let me just give you a bit of background: I have a disk formatted with FS foo. I was ONLY watching a film (no other IO). Power loss. Result: a directory containing 26 films was wiped out. fsck found inconsistencies but my films were nowhere to be found. This is what I call data corruption or, more rigorously, FS corruption. And this is what I want to avoid. BTW foo provides a journal. –  Gael Jan 9 '13 at 17:48
    
Where foo = ext4? I'll leave it to the FS experts to provide a detailed answer, since I don't know of any way you as an end user can improve upon a journaling FS' resilience to data corruption in case of a catastrophic event such as sudden power loss during I/O. –  Karan Jan 9 '13 at 17:53
    
Where foo is unknown since I just had an interesting discussion with another user about another question I've asked and had been closed almost immediately since it would have raised "endless and useless discussions". –  Gael Jan 9 '13 at 17:59
    
Yeah, I saw your What're the most useful attributes of a filesystem to avoid data loss? question just now. I don't know whether this question will remain open or be classified as a duplicate of that one. –  Karan Jan 9 '13 at 18:01
show 2 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.