Which file system recovers best after a crash?
I discovered that the plug had been pulled out of my external USB disk.
The prospects for recovery are not good since it will not allow me to run e2fsck - saying that the superblock shows the device is still mounted (it is not) or is being used by another application (it is not). I can get the files from elsewhere. But I now want to build the disk with a file system that gives me the best chance of recovering my data after a mishap. I am not interested in speed - but safety. |
I use ext3 and since I live in Oklahoma (Tornado Alley) we get a lot of severe thunderstorms here which cause power outages on occasion and my PC went down many times from the power going out and ext3 always recovers nicely...
|
did you try un-mount the device with the -l option for umount ?
For my part, I did one successful data recovery with reiserfs, I deleted a partition by mistake and was able to recover all my files with reiserfsck --rebuild-tree -S |
Well if Okie feels comfortable with ext3 after many power outages, that's a good recommendation.
Being able to rebuild the tree after a deleting a parttion is also good - though deleting a partition is not so destructive as it sounds: for my internal disks I use Ranish Partition Manager and with that one routinely "deletes" partitions simply in order to hide them. As long as one knows the start and end addresses one can recover the contents - as long as one does not format the the partition, of course. I shall try both and provoke a corrupted file system and see which handles it better. Thanks for the recommendations. Before that I'll try umount -l, but I'll have to wait as I am now running "testdisk" which is trying to extract files from the corrupted file systems. |
Really any of them will recover well after a crash, except maybe for XFS as it speeds things up by caching a lot of stuff in RAM and then writing to the drive. ext3 tends to be a good choice mostly because it easier to recover from corruption, not that it will become corrupt less easily, I think they're all about equal in that aspect.
|
You should probably add the sync option to your mount options for the device so that writes will be done right away. That will help cut down on the chances of having unwritten data left in the buffer.
|
Quote:
Code:
/dev/sda1 /mnt/sda1 ext3 defaults,sync 0 0 Should I have an external journal? From the man page: Quote:
|
From personal experience, JFS recovers very well after crashes.
Regards and good luck, -Drew |
I have had no issues with JFS.
Quote:
|
You can go with the defaults option until you see that something needs to be changed. Options which come after the word defaults override the defaults so be sure that is always the first option passed.
Using an external journal may be more dependable, but I don't do that -sounds over-the-top to me for most users. I have had very good luck with resierfs for 5-6 years now, but have recently been trying out jfs and also using at least one ext3 partition. jfs uses less CPU cycles and mounts much faster than reiser. ext3 is very stable and is the default for most distros. reiser is especially good if you have lots of small files. |
XFS isn't all that bad. It does not use nobarrier by default. If it did, it would be considerably faster but at the expense of far greater file system integrity risks.
|
Hi,
As others have pointed out ext3 is a good filesystem. I use it, it will be supported. |
All times are GMT -5. The time now is 05:48 PM. |