Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 09-17-2002, 01:20 PM   #1
Registered: Nov 2000
Posts: 368

Rep: Reputation: Disabled
Question file systems and linux


using linux i have found that i can plug in most hard drives and mount them with no problem, and can even remove stains that other OSes cannot.

during the past few months i have become confused between ext2, and ext3.

first of all what are the differances between the two? and why does linux use this FS as its default ?

i dont want to start and arguement, but what is the best FS to use with linux?
Old 09-17-2002, 01:27 PM   #2
Registered: Aug 2002
Distribution: Slackware 8.1
Posts: 750

Rep: Reputation: 30
Well every file system has her own abilities
I use reiserfs on Slack 8.1 - it is very stable and fast ( FS )
If you are between ext2 and ext3, I suggest you to use the last
Old 09-17-2002, 03:02 PM   #3
Senior Member
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 46
Basic difference between ext2 and ext3 is that ext3 had journaling support. What this means is that it keeps a journal, or log of all files (data) and information about all files (metadata) and after a crash or hangup it uses that information to restore the system to its original state. This means no long file system checks, and less chance of corrupted data.
Heres a link to a more in-depth description, thats one of the results google gave me, so if you need more explanations on how journaling filesystems work search google, and if you have questions you know where to ask
Here's the link

Last edited by NSKL; 09-17-2002 at 03:03 PM.
Old 09-17-2002, 04:18 PM   #4
Registered: Nov 2000
Posts: 368

Original Poster
Rep: Reputation: Disabled
so is the ext File system like a mini version of RAID mirrioring then?

i thought that ext2 and ext3 were both journaling file systems ?

but what happens when you delete a file, is its information and contents still in this log? or is it like the windows FAT and just delete's the files index on the disk and leaves the files contents there?

i know that the files index on a linux system is called an inode, i found that one out from some place

Last edited by antken; 09-17-2002 at 04:23 PM.
Old 09-18-2002, 07:48 PM   #5
Registered: Feb 2002
Location: Jerusalem, Israel
Distribution: Fedora Core 3
Posts: 154

Rep: Reputation: 30
I think the diffrence is that in ext3 the journel is part of the FS
but I could be totaly off.
Old 09-18-2002, 07:57 PM   #6
Senior Member
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
OK, here's a lowdown...
Ext2/3 use inodes. Every file is assigned an inode. When you delete the file, so long as nothing else is written to the disk, then you can still recover the inode, and so recover the file. However, this is unlikely since things are being written to disk all the time - you'd have to be pretty lucky to undelete files. Most programs in Linux that edit files will, by default, save a backup copy of the file, prior to it being editted, as file~.

Journalling is only really a measure to ensure that things are not lost completely during a crash. Without journalling, should you have a crash, the best you could hope for is that you have a fairly lengthy filesystem check (fsck) and you may lose a couple of files. At worst you will have a screwed filesystem and you're in trouble. With journalling, should you have a crash, you may occasionally get a quick fsck to make sure that everything is in order, otherwise the files are simply updated (or should that be downdated?) to their previous state.

I'm not sure whether deleted files can be recovered through journalling, but I wouldn't have though so... their inodes are likely to have been used again already.



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
Could i access the Windows File Systems from Linux? Megnt2004_newbien Linux - Newbie 1 10-02-2005 03:34 PM
how to defrag fat32 file systems with linux? Lakota Linux - Software 1 07-12-2005 07:19 PM
what is the best reference for linux commands and file systems svnativi Linux - Newbie 3 08-03-2004 09:27 PM
HFS+ file systems in Linux? five_dollars Linux - Software 0 08-03-2004 02:42 PM
Linux File Systems lyew Linux - Newbie 4 05-03-2003 11:14 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration