Each time electricity goes down, my desktop (without UPS) loses some temporary information.

  • Opera can lose settings, history, cache, or mail accounts (Thanks heavens I was wise to use IMAP). Partially or all together.
  • a whole file (complete and save) in Geany appeared empty (and I didn't commit it to Git)
  • rhythmbox lost all podcasts subscription data

I'm afraid there are other losses I just didn't see.

What's the reason? A memory files cache, a mem-disk? Or non-atomic file writes in xfs? I have Ubuntu 9.10 and XFS on both / and /home partitions.

Is ext4 safer in such circumstances? I've seen ext3 is faster. Is it as safe as *4?

Given that the apartment I rent is connected to a common bus and 1 safety switch for several apartments, and the neighbors - alone or together - overload it at least once every week, the lights go down often enough for this to be an issue.

link|improve this question

78% accept rate
FYI; XFS is a journaling filesystem. – user53562 Oct 26 '10 at 8:48
@abc FYI XFS journals metadata for file system integrity only, it does not have block journaling. See en.wikipedia.org/wiki/Comparison_of_file_systems – kmarsh Oct 26 '10 at 14:50
feedback

1 Answer

up vote 2 down vote accepted

XFS is not a journaling filesystem, such as ext3 and ext4. So, files are overwritten in place, instead of copied, the new one modified and then the file pointer moved from old to new (over-simplifying things a bit).

As a result, you are more likely to lose data, end up with outdated data, or end up with a truncated file with XFS.

Given your lack of control of the situation, you are a good candidate for buying a small UPS.

link|improve this answer
I thought of that, but I think the next thing I'll buy is a laptop, and before I'll change the fs type. Desktop becomes more like a pet: requires too much care. :) – culebrón Dec 17 '09 at 7:24
Why did change to xfs, I wonder... I must have read a very biased opinion and trusted it... – culebrón Dec 17 '09 at 7:26
Generally it is a good idea to use what the installation program suggests, unless you really have a very good reason not to. This ensures that you are using the same as everyone else, which in turn means that errors are found and fixed faster. – Thorbjørn Ravn Andersen Oct 26 '10 at 10:01
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.