LinuxQuestions.org
Review your favorite Linux distribution.
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-17-2002, 12:20 PM   #1
antken
Member
 
Registered: Nov 2000
Location: england
Distribution: latest Mandrake
Posts: 368

Rep: Reputation: 30
Question file systems and linux


hi,

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, 12:27 PM   #2
nautilus_1987
Member
 
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, 02:02 PM   #3
NSKL
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
http://www.linux-mag.com/2000-08/journaling_01.html
HTH
-NSKL

Last edited by NSKL; 09-17-2002 at 02:03 PM.
 
Old 09-17-2002, 03:18 PM   #4
antken
Member
 
Registered: Nov 2000
Location: england
Distribution: latest Mandrake
Posts: 368

Original Poster
Rep: Reputation: 30
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 03:23 PM.
 
Old 09-18-2002, 06:48 PM   #5
NGraphiX
Member
 
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, 06:57 PM   #6
Thymox
Senior Member
 
Registered: Apr 2001
Location: Cornwall, England.
Distribution: Debian + Ubuntu
Posts: 4,345

Rep: Reputation: 56
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.

HTH
 
  


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


All times are GMT -5. The time now is 04:56 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