LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   file systems and linux (https://www.linuxquestions.org/questions/linux-general-1/file-systems-and-linux-30580/)

antken 09-17-2002 12:20 PM

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?

nautilus_1987 09-17-2002 12:27 PM

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 :D

NSKL 09-17-2002 02:02 PM

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 :D
Here's the link
http://www.linux-mag.com/2000-08/journaling_01.html
HTH
-NSKL

antken 09-17-2002 03:18 PM

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 ? :confused:

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 :study:

NGraphiX 09-18-2002 06:48 PM

I think the diffrence is that in ext3 the journel is part of the FS
but I could be totaly off.

Thymox 09-18-2002 06:57 PM

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


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