LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 09-14-2005, 10:08 PM   #1
shadkong
Member
 
Registered: Apr 2005
Location: Guangzhou, China
Distribution: Slackware 10.2
Posts: 114

Rep: Reputation: 15
Whick is safer: ext3 or reiserfs


If power off suddenly, which file system will be safer? Ext3 or reiserfs?
Somebody told me that reiserfs will probably lose files, and ext3 is much safer. Is that true? All my patitions are formated as reiserfs, are they in dangerous?
 
Old 09-14-2005, 10:42 PM   #2
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Both ext3 and reiserfs are so-called journalling file systems. That is, if the system crashes/fails/whatever, they are designed to keep the filesystem in a consistent state.

Issues of data loss with a sudden power loss are somewhat different. Anything that has not been written to the disk will be lost, plain and simple. You could use techniques like synchronous mounting, but you would take a huge performance hit.

I guess the question is: what are you trying to protect against?

Short of a hardware failure, I'm not aware of any case where a sudden power off lost data that wasn't being worked on in the few minutes (or even seconds) immediately before the crash.

In other words, if you save a file on Monday and your computer crashes on Tuesday, you should be fine.
 
Old 09-14-2005, 10:44 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
/me has been using Reiser exclusively since SuSEs kernel 2.2.19 and never had any data-loss :)
 
Old 09-14-2005, 11:02 PM   #4
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
Note also that reiserfs is the default in Slack. If Patrick makes it his preferred choice, heck, I wouldn't argue with him.

In my own experience, I use reiser on all my systems, and also haven't had any data loss problems -- J.W.
 
Old 09-14-2005, 11:05 PM   #5
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
As anecdotal evidence, I use ext3 on my desktop and reiserfs on most of my other machines. You might ask yourself why I use ext3 in that one case. Really, there's no reason. Were I doing it now, I would probably use reiserfs. But I've had that one up for about a year, and am not going to reinstall to switch filesystems.

There's also the IBM-developed XFS in the journaling filesystem arena. Some claim it has better performance. It's less supported by livecds and default distro kernels, from what I hear.
 
Old 09-14-2005, 11:40 PM   #6
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
Quote:
Originally posted by J.W.
Note also that reiserfs is the default in Slack. If Patrick makes it his preferred choice, heck, I wouldn't argue with him.

In my own experience, I use reiser on all my systems, and also haven't had any data loss problems -- J.W.
While I know Patrick does know what he is doing and I do regard him well, I have to wonder if that being the default makes it better, or makes it more suitable for systems targeted by slack.
 
Old 09-14-2005, 11:57 PM   #7
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,014

Rep: Reputation: 115Reputation: 115
having everything formatted to ext3 makes things easier for LILO...
 
Old 09-15-2005, 12:43 AM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Quote:
Originally posted by tuxdev
having everything formatted to ext3 makes things easier for LILO...
Eh?

Can you please elaborate on that?



Cheers,
Tink
 
Old 09-15-2005, 02:15 AM   #9
slackie1000
Senior Member
 
Registered: Dec 2003
Location: Brasil
Distribution: Arch
Posts: 1,037

Rep: Reputation: 45
Quote:
Originally posted by tuxdev
having everything formatted to ext3 makes things easier for LILO...
i would be also interested to know why...
some time ago i found an interesting, and relative simple, benchmarking test with some filesystems...
for those interested: click here.
regards,
slackie1000
 
Old 09-15-2005, 07:31 AM   #10
imitheos
Member
 
Registered: May 2005
Location: Greece
Posts: 374

Rep: Reputation: 55
Both filesystems are journaling so they offer some protection.
With that said, i must say that no one is better than a backup.

It is said that reiserfs supports only metadata journaling (i don't know about new versions) while ext3 supports data
journaling too (if mounted with data=journal option).

To explain a lit more, reiserfs says "i am going to write to file foo","i wrote to file foo" while ext3 says "i am going to write
'bar' to file foo","i wrote 'bar' to file foo"
So, in a case of failure ext3 offers better protection than reiserfs but this is a very small possibility.

Both filesystems are very good.
ext3 has the advantage that can be mounted as ext2 (without journaling of course) so you can mount it from almost every box.
reiserfs has the advantage that is very quick with small files and also it saves much space for small files.

Choose whatever you like and you will be happy with it.
As i mentioned before no journaling fs can replace a backup.
 
Old 09-15-2005, 09:59 AM   #11
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
ext3 with data journaling is significantly slower than with only metadata journaling. Just a thought.
 
Old 09-15-2005, 10:02 AM   #12
JCipriani
Member
 
Registered: Aug 2005
Location: Pittsburgh, PA, USA
Distribution: Redhat 9, OS X 10.4.x, Win2K
Posts: 85

Rep: Reputation: 15
If you are worried about data loss on power failure, the safest way to go is always a UPS with a serial port output. You can set up your machine to shut down cleanly in response to UPS power failure events, and the battery backup will give you enough time to do that, without you having to sacrifice filesystem efficiency to protect against such things. They'll also protect against minor power changes too, like surges and flickering power.

These ones all have USB/RS-232 interfaces. That Belkin one, the third one down, runs about $100 and looks pretty adequate just reading the specs. There's also some cheaper ones and some more expensive ones.

Last edited by JCipriani; 09-15-2005 at 10:13 AM.
 
Old 09-15-2005, 01:24 PM   #13
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,014

Rep: Reputation: 115Reputation: 115
LILO can run the kernel from a reiserfs partition. Yes, I know I can create a /boot partition, but I don't like it unless I have more than one distro on the machine.
 
Old 09-15-2005, 01:34 PM   #14
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
LILO can also run the kernel from an ext3 partition. And XFS, I believe.

Same holds true for grub.
 
Old 09-15-2005, 01:47 PM   #15
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,986
Blog Entries: 11

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
Quote:
Originally posted by tuxdev
LILO can run the kernel from a reiserfs partition. Yes, I know I can create a /boot partition, but I don't like it unless I have more than one distro on the machine.
Both statements are true - but I fail to see how they back
your theory that lilo has a better life if you use ext3?



Cheers,
Tink
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ext3 to reiserfs spaceballs Slackware 6 07-25-2005 05:56 PM
ext3 vs. reiserfs: which is better? Mugatu Linux - Software 12 01-05-2004 11:10 PM
reiserfs -> ext3 pk21 Linux - Newbie 6 09-10-2003 03:26 PM
Ext3 2 ReiserFS jpbarto Linux - Software 2 07-21-2003 01:08 PM
ReiserFS(ext3) da Perp Linux - Newbie 3 03-09-2002 03:47 AM


All times are GMT -5. The time now is 01:40 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration