LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-18-2009, 10:19 AM   #1
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657

Rep: Reputation: 40
MS Windows less voulnerable for file system errors than linux?


Hi.


Is it so that the consequence of a Linux server crashing, with regards to file system errors, are greater than that of a MS Windows server crashing? By crashing I mean for example loosing connectivity to the hard drive, or someone pulling the plug.


Regards,
kenneho
 
Old 06-18-2009, 10:58 AM   #2
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
In my experience, quite the contrary. (Depending, of course, on which "Linux" file system you're using. There are, after all, many different ones.)

The latest default file system (ext4) and the priot default one (ext3) both include file system journals, so any file changes are "double-entered," and, in the event of a "crash," any incomplete file operations are automatically completed when the system is rebooted.

As far as I can recall, no Windows file system incorporates a journal, so a "crash" on a Windows OS will, almost inevitably, result in some data loss.

Most Linux file systems are also designed in such a way that the files are almost never "fragmented," so you never need to run a defragmentation program on a Linux file system.

Of course,if you really want to use the old-fashioned Windows file system(s) on your Linux system, those file system can be used. But few Linux users are that silly.
 
Old 06-18-2009, 11:09 AM   #3
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 446Reputation: 446Reputation: 446Reputation: 446Reputation: 446
I think it's about the same. Using ext2 is like using FAT32. Pulling the plug can mess up a lot, including corrupting files and directories that are not written to at the time of the crash. NTFS is like the journaling filesystems (ext3,reiserfs etc) where files written to at the time of the crash can get problems.

The problems you get has more to do with the apps you use. An app like a game will hardly write at all. You can lose your new highscore if unlucky, but usually not more. But a database, or a bit torrent client, will have bigger problems. So many such programs have mechanisms to recover from corrupted files.
 
Old 06-18-2009, 12:24 PM   #4
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
Depends on the filesystem. But, in general, M$ is the worse choice.
 
Old 06-19-2009, 01:15 AM   #5
kenneho
Member
 
Registered: May 2003
Location: Oslo, Norway
Distribution: Ubuntu, Red Hat Enterprise Linux
Posts: 657

Original Poster
Rep: Reputation: 40
Thansk for the many good replies. So to conclude: A linux crash and windows crash can potentially cause the same amount of file system problems, since the technology is in many regards quite alike. Only difference is that on linux, one is notified at startup about unclean file systems, while on windows one often is not.
 
Old 06-19-2009, 07:33 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,642
Blog Entries: 4

Rep: Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933Reputation: 3933
Simply use modern, journaling filesystems like NTFS (Windows) or ext3 (Linux), and you should be fine. As far as I know, all of these systems perform some amount of disk-checking at startup and recognize whether or not the system was shut down "cleanly." Both systems are durable and designed for continuous service.
 
Old 06-19-2009, 09:10 AM   #7
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
So, comparing NTFS with ext4, the only fundamental difference you see is that NTFS allocates files in blocks so the the disk platter tends fill the inner part of the disk before filling the outer part at the expense of fragmenting the files, while ext4 keeps files as a set contiguous blocks (i.e., unfragmented) at the expense of leaving "empty" gaps in the drive.
 
Old 06-19-2009, 09:36 AM   #8
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
Quote:
Originally Posted by PTrenholme View Post
So, comparing NTFS with ext4, the only fundamental difference you see is that NTFS allocates files in blocks so the the disk platter tends fill the inner part of the disk before filling the outer part at the expense of fragmenting the files, while ext4 keeps files as a set contiguous blocks (i.e., unfragmented) at the expense of leaving "empty" gaps in the drive.
Same reason why you don't need to defragment on Linux:
http://geekblog.oneandoneis2.org/ind..._defragmenting

Now I don't know specifically about NTFS, but for sure FAT* has this fragmentation problem. And really since NTFS still needs defrag, it seems that it also has this problem.

Some interesting reads:
http://bbs.archlinux.org/viewtopic.php?id=41532
http://www.sabi.co.uk/Notes/linuxFS.html

One other thing to note is that ext3/4 is NOT the only filesystem available for Linux, in fact if you check the sites above you'll notice that these fragment the most out of all the Linux filesystems. I personally use JFS, and have not had any major issues with fragmentation.

Last edited by H_TeXMeX_H; 06-19-2009 at 09:51 AM.
 
Old 06-19-2009, 09:36 AM   #9
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
My experience is anecdotal, not statistical nor theoretical, so I don't know if it carries any real weight, but I've seen many filesystem failures and data loss with ntfs and none with ext3.

Most ntfs failures I have seen have been on systems "protected" by some version of fake raid 1 from Dell. In one case the data was actually recoverable from the other drive. In most cases, not.

It is hard to be certain (especially with closed source) but I think most of the "hardware" failures have been imagined by the fake raid software. Otherwise it is hard to explain why disk hardware failures are so much more common on the systems with fake raid than on the systems with no raid, and why the failing drives seem to be perfect after the failure when tested in other systems.

It is also hard to be certain about the obviously software causes of other ntfs failures. Those also look like the result of bugs in the fake raid software (rather than bugs in the ntfs filesystem itself or in Windows XP itself). But with closed source, and non reproducible rare errors, how could you ever find out.

I expect ntfs is as immune as ext3 from ordinary corruption from simple OS crashes and power failures.

Some failures trash the MBR, which stops you from even getting to the parts of the filesystem that would be immune. If that had ever happened to me on a Linux system, I think I would have an easier time repairing the MBR than I have had with Windows. The tools and the repair environments are much easier in Linux.

When a raid 1 gets out of sync with itself and doesn't know, the occasional reads of filesystem info from the second copy can mix badly with majority reads from the first copy and spew new corruption onto both. The journalled filesystems can't protect you from that nor clean up well after it. So if it had ever happened to me with ext3 (and Linux software RAID) I expect the resulting mess would be just as bad as it has been with NTFS and Dell fake raid.

Last edited by johnsfine; 06-19-2009 at 09:38 AM.
 
Old 06-19-2009, 09:51 AM   #10
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Quote:
Originally Posted by kenneho View Post
Only difference is that on linux, one is notified at startup about unclean file systems, while on windows one often is not.
Actually, if you watch a Windows box boot after a powerloss you'll see it run through chkdisk, which is exactly the same sort of thing as unix's fsck so even there they're quite similar.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux file system on windows invinciblegod General 6 01-02-2006 09:44 PM
File system for both Windows and Linux nonoitall Linux - Newbie 6 11-16-2005 11:33 AM
file-system compatible with Linux/Windows ditch* Linux - Newbie 6 03-04-2005 08:35 AM
viewing windows XP file system through linux aymbpc Linux - Newbie 3 08-31-2003 07:41 PM
Linux File System & Windows atko Linux - Newbie 3 02-07-2003 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:46 AM.

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