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 - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-07-2008, 03:55 AM   #1
harryhaller
Member
 
Registered: Sep 2004
Distribution: Slackware-14.2
Posts: 468

Rep: Reputation: Disabled
Unhappy 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.
 
Old 09-07-2008, 07:05 AM   #2
Okie
Senior Member
 
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154

Rep: Reputation: 187Reputation: 187
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...
 
Old 09-07-2008, 07:07 AM   #3
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
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
 
Old 09-07-2008, 08:15 AM   #4
harryhaller
Member
 
Registered: Sep 2004
Distribution: Slackware-14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
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.
 
Old 09-07-2008, 10:23 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
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.
 
Old 09-07-2008, 11:06 AM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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.
 
Old 09-07-2008, 02:04 PM   #7
harryhaller
Member
 
Registered: Sep 2004
Distribution: Slackware-14.2
Posts: 468

Original Poster
Rep: Reputation: Disabled
Quote:
add the sync option to your mount options for the device
I've added "sync" after the defaults options in fstab:

Code:
/dev/sda1        /mnt/sda1        ext3        defaults,sync    0   0
The partitions are each 100gb - can I just rely on mkfs.ext3 defaults?

Should I have an external journal? From the man page:

Quote:
device=external-journal
Attach the filesystem to the journal block device
located on external-journal. The external journal
must already have been created using the command

mke2fs -O journal_dev external-journal

Note that external-journal must have been created
with the same block size as the new filesystem. In
addition, while there is support for attaching multi-
ple filesystems to a single external journal, the
Linux kernel and e2fsck(8) do not currently support
shared external journals yet.
 
Old 09-07-2008, 10:07 PM   #8
Lufbery
Senior Member
 
Registered: Aug 2006
Location: Harrisburg, PA
Distribution: Slackware 64 14.2
Posts: 1,180
Blog Entries: 29

Rep: Reputation: 135Reputation: 135
From personal experience, JFS recovers very well after crashes.

Regards and good luck,

-Drew
 
Old 09-07-2008, 10:18 PM   #9
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,187

Rep: Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379Reputation: 1379
I have had no issues with JFS.

Quote:
Originally Posted by H TeXMeX H

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.
That is one of the sole reasons why I chose not to go with XFS. It seems to me that XFS arbitrarily chooses when to actually write data to the disk. Sure you may issue a command to have stuff copy over, but I don't want to spend time worrying if it is actually written to the disk, or just stored in volatile memory. To me XFS just doesn't seem as reliable, though some might prefer the 'delayed allocation' feature, but not me.
 
Old 09-08-2008, 02:12 AM   #10
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
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.
 
Old 09-08-2008, 02:19 AM   #11
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
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.
 
Old 09-08-2008, 11:07 AM   #12
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

As others have pointed out ext3 is a good filesystem. I use it, it will be supported.
 
  


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
Can't delete file - system just crash everal Slackware 3 01-23-2007 01:36 PM
FC5: File system Crash, "Unexpected inconsistancy ... " SparceMatrix Fedora 1 09-04-2006 05:04 AM
Ping continues to fail after remote host recovers cahenesy Linux - Networking 7 04-19-2004 03:16 PM
What program recovers formatted data? tearinox Linux - General 1 03-27-2004 11:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:15 PM.

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