A file system is a way to organize and store a tree on a carrier (disk, diskette, CD ...). Each proprietary OS has developed its own organization. You can do multiple systems coexist in the same disk partition. Linux has a system called ext2 but can manage others. The list is provided in /proc/filesystems. The user can therefore access to other Linux file systems such as DOS, vfat,from a device or imported by the network. As with everything the user file, all filesystems regardless of physical location must be integrated into the unique logical tree of the Linux system. This tree can be built (and changing) from various partitions can be on multiple discs. This makes integration and further apart than in the Windows world where the partitions and drive that are assigned the letters A: C: D: remain separate entities. Of course the partition where is located the root plays a special role.
A file system will be best used as a shelf in front of very many cases. At each of these there are other boxes that can themselves contain smaller boxes. The smallest boxes are the size of the block size of the file system, in most cases, that is 4 KB. Standing in front of the shelf and now has the task to stow something in it, you must decide, in which case you simply put it. A strategy is a box to pack as much as possible to fill up, then the next and so on. Another approach would be to have to open as few boxes as possible. To help you find the items stowed as soon as possible, then write a crate, for example, "Lego" or "pencils". The information, what is where, is called metadata, the Lego bricks correspond to the data.
The file system is struggling with similar problems, it puts file fragments in so-called trees. Traditional file systems overwrite when saving a file, the data blocks. Changes while the size of a file, the file system free blocks used in the immediate vicinity. Depending on how much time passed between the first save and overwrite, this "close proximity" to be quite far away - thus the read head must travel longer distances. Modern file systems write data up to a free place, so every time you save a new copy created. This mechanism is called copy-on-Write. COW brings more performance, as the read head can read the data, usually at a time, and provides useful function is a version control system: The original data are still available.
Linux File System
Attempt at standardization, in the meantime many Linux distros have to: File System Hierarchy Standard. This is an absolutely necessary guidance, for an average Linux system, the latest SuSE distribution has ever slightly more than 170,000 files.
Tree structure of files and directories.
- Root directory: /
- Directories contain directories or files.
- File systems are on media such as hard disk, Zip, floppy disk, CDROM, DVD, etc
- Several file systems per disk possible (partitioning).
- A file system can spread over more than one hard disk. LVM (Logical Volume Manager), RAID
- File systems are mounted to a specific location of the file tree (hung).
- Others' computers, file systems can be integrated.
File Categories
regular file –
- Text: mail, sources of programs, scripts, configuration
- Executables: programs in binary code
Directory File
- container files that contain references to other files.
- real structure of the tree, they can organize files by categories
Special Files
- located in /dev , what are the access points prepared by the system peripherals. The assembly will make a match of these special files to their home directory "mountpoint". For example, the file /dev/hda can access and loading of the first IDE disk
symlinks files
- These are files that contain a reference (pointer) to another file. This allows using the same file under different names without having to duplicate it to disk.
File system types:
- ext2, ext3, linux
- JFS Journaled file system, AIX
- UFS Unix File System, SUN
- CDRFS, CDROM File System
- NFS, Network File System, originally SUN
- SAMBA, SMB File Server, NTFS (NT, Windows/2000),
System Tree
The root is the top of the hierarchy of directories. This is a logical tree, independent of the physical location of the various sub-directories, which can span multiple partitions included on one or more disks, and even on network drives. Its structure is standard, with extensions imposed by the distributions. Any modification is within the exclusive competence of the administrator, with the exception of directories in / home. It is recommended to meet this standard architecture
Bookmarks