Computing.Net > Forums > Linux > EXT3 vs NTFS

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

EXT3 vs NTFS

Reply to Message Icon

Original Message
Name: DS
Date: June 22, 2003 at 20:12:01 Pacific
Subject: EXT3 vs NTFS
OS: Mandrake 9
CPU/Ram: na
Comment:

Hopefully someone out there knows something about this:

I have a machine for a server that I am setting up. I have had both linux and 2k server on there. My Question has to do with unexpected shutdowns caused by power interuptions. I have a UPS, but I dont feel like I should completely rely on just that.

When I run linux and there is an unexpected shutdown due to power and the system restarts, linux wants to check the disks for errors and sometimes comes up with an error that it asks me if I want to fix. If I say yes it says that I "could lose data" and I have lost it in the past if I let it fix it. On the other hand I dont wanna leave a messed up filesystem(EXT3).

Running XP/2k with an unexpected shutdown from power, I have never lost a file unless it was open and unsaved.

I dont feel comfortable having linux (even though i love it) as a server if I am going to lose files like that. Is there something I am missing? Does anyone have any questions/comments? Thanks so much for your time and input


Report Offensive Message For Removal


Response Number 1
Name: Jake
Date: June 22, 2003 at 20:43:37 Pacific
Reply: (edit)

Why do you call EXT3 "messed up?" EXT3 has journaling, just like NTFS and many other FSs, so you shouldn't lose data. I've never had problems with EXT3. Normally, however, I use ReiserFS becuase it performs better in many situations and has less limitations. It also uses journaling so you won't lose data (I never have). Perhaps you were confusing EXT3 with the older EXT2, which is the same thing but without journaling.


Report Offensive Follow Up For Removal

Response Number 2
Name: DS
Date: June 22, 2003 at 21:10:43 Pacific
Reply: (edit)

Maybe I misunderstand, but doesn't journaling make a filesystem more prone to dataloss if a computer is shutdown unexpectedly? doesn't journaling load the drive index into memory and if the computer isn't shutdown correctly and the drive unmounted, the index never gets written back to the disk, right? Or do I misunderstand?


Report Offensive Follow Up For Removal

Response Number 3
Name: anonproxy
Date: June 22, 2003 at 21:19:13 Pacific
Reply: (edit)

Regarding ext2...

You "could lose data". This means, that a portion of the file structure is missing or damaged, has to be recreated or deleted, and may have linked to data. This data is usually temporary files.

"I have never lost a file unless it was open and unsaved."

If you do not link the file to your file structure and save it somewhere other than the swap partition (or volatile memory, also a no-save), then it is a candidate for the abyss.

Are you sure you have ext3? You should not need to run e2fsck. The journaling part of ext3 means that the journal is what is checked after each unclean shutdown.
http://www.redhat.com/support/wpapers/redhat/ext3/


Report Offensive Follow Up For Removal

Response Number 4
Name: Jake
Date: June 22, 2003 at 21:26:03 Pacific
Reply: (edit)

Journaling keeps track of the filesystem status somewhere within the filesystem. When you boot after a crash, it uses the journal to restore the filesystem to a healthy state, but unsaved files are still lost. NTFS, EXT3, ReiserFS, XFS, JFS, and others all use journaling. Personally, I prefer ReiserFS because it normally performs better than EXT3, with less limitations, and is very stable on Linux.


Report Offensive Follow Up For Removal

Response Number 5
Name: anonproxy
Date: June 23, 2003 at 12:35:50 Pacific
Reply: (edit)

Journaling writes a metadata log to the disk *before* changes are made.

Older disk checks had to walk through the entire filesystem's metadata, seeing if everything was correct. If something needed to be corrected, there often was not sufficient metadata to do so, causing the linked data to be placed in lost and found (or completely deleted).

Because journaling records before actions are made, often those actions that are interrupted can be completed upon reboot.

There is a slight performance penalty for journaling, but it is definitely worth it on the modern PC.


Report Offensive Follow Up For Removal


Response Number 6
Name: DS
Date: June 23, 2003 at 15:58:49 Pacific
Reply: (edit)

Hi, thanks for all of your input... one more question if you dont mind...

I have 2 boxes next to eachother (1 linux, 1 XP). How come it seems that when they both experience a power loss the linux box loses data or its corrupt while that never happens to that windows machines (or almost all the other windows machines i've worked with save a few flukes.) It seems like this one linux box gets more corrupted data due to unattended shut downs than all of the windows machines i've ever delt with combined. Any ideas? THanks again


Report Offensive Follow Up For Removal

Response Number 7
Name: Jake
Date: June 23, 2003 at 17:51:02 Pacific
Reply: (edit)

It's possible you're only using EXT2, which doesn't have journaling. I've never had corruption on a journaling filesystem in Linux. I have, however, had corruption with EXT2.

Use the command "mount" to find out what FS you're using. You can add a journal with "tune2fs -j /dev/hdxx". I'm not going to explain how to determine xx unless you reply saying you don't know. Also make sure the FS field in /etc/fstab contains "auto" or "ext3" rather than "ext2".


Report Offensive Follow Up For Removal






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home








Do you own an iPhone?

Yes
No, but soon
No


View Results

Poll Finishes In 7 Days.
Discuss in The Lounge
Poll History




Data Recovery Software