Tuesday, 1 December 2009

Understand file systems

How do you feel if everybody has binary name (0 or 1) how you will address everyone with power of 2?

Similar problem we face in computing world when we store files becuase poor intelligent box only understands binary. We like to refer everything in more meaningful name like bank_details for bank account details. File system is the management system which provides us the ability to store files with more meaningful names and it interacts with computer storage to access / store files.

How do you feel if we have condition that everyone in the world must have unique name? Do you think we can satisfy this condition? similarly can you create all files with unique name?
Most people found answer to above as no and that is why all modern file system support directory structure. So it is like all the members (files) in one family (directory) should have unique name.

We have flat file system for addressing unique name in world problem which does not have any directory structure, it becomes inefficient to manage such filesystem. MFS (Macintosh file system) was one example of flat file system which was immediately replaced by HFS (hierarchical fs).

System used to store, retireve files from physical storage device like hard disk, CDROM, Flash devices etc is called file system.

Most modern file system store data in fixed size physical sectors, and it is responsible for organinzing these physical sectors into files. It stores bookkeeping information which unix admin normally use - access time, creation time, modification time, byte count, acl etc.

File system and Unix system:-
Unix stores all file system as virtual file system, all appear to be stored under one directory (/) root. Unix assign device number to every device it access but this is not how OS access it. OS must be informed in advance where in the directory structure those device file appear, this is called mounting. We cannot access any file system without mounting it. Some file system mount automatically when system starts, they are defined in file like fstab, vfstab, etc/filesystems etc depending upon flavor of unix.

Most commonly used file system
Fat and NTFS in windows.
JFS / JFS2 / Veritas File system (VxFs) in AIX
UFS / Vxfs - Solaris
MVS Filesystem - IBM mainframe.

No comments:

Post a Comment