Linux Filesystems "overview"

Filesystem of linux

  Think of a refrigerator that has multiple shelves that can be used for storing various items. These shelves help you organize the grocery items by shape,  size, type, etc. The same concept applies to a filesystem, which is the embodiment of a method of storing and organizing arbitrary collections of data in a human-usable form.

Different types of filesystems supported by Linux:
    ⁃    Conventional disk filesystems: ext2, ext3, ext4, XFS, Btrfs, JFS, NTFS, etc.
    ⁃    Flash storage filesystems: ubifs, JFFS2, YAFFS, etc.
    ⁃    Database filesystems
    ⁃    Special purpose filesystems: procfs, sysfs, tmpfs, squashfs, debugfs, etc.

 This section will describe the standard filesystem layout shared by most Linux distributions.

 Partitions and Filesystems

       A partition is a physically contiguous section of a disk, or what appears to be so in some                           advanced setups.

      A filesystem is a method of storing/finding files on a hard disk (usually in a partition).

      One can think of a partition as a container in which a filesystem resides, although in some                         circumstances, a filesystem can span more than one partition if one uses symbolic links, which we will      discuss much later.
        
  A comparison between filesystems in Windows and Linux is given in the accompanying table:            

            

The Filesystem Hierarchy Standard

       Linux systems store their important files according to a standard layout called the Filesystem Hierarchy Standard (FHS), which has long been maintained by the Linux Foundation. For more information, take a look at the following document: "Filesystem Hierarchy Standard" created by LSB Workgroup. Having a standard is designed to ensure that users, administrators, and developers can move between distributions without having to re-learn how the system is organized.
           
       Linux uses the ‘/’ character to separate paths (unlike Windows, which uses ‘\’), and does not have drive letters. Multiple drives and/or partitions are mounted as directories in the single filesystem. Removable media such as USB drives and CDs and DVDs will show up as mounted at /run/media/         yourusername/disklabel for recent Linux systems, or under /media for older distributions. For example, if your username is student a USB pen drive labeled FEDORA might end up being found at /run/media/student/FEDORA, and a file README.txt on that disc would be at /run/media/student/FEDORA/README.txt.

    All Linux filesystem names are case-sensitive, so /boot, /Boot, and /BOOT represent three different directories (or folders). Many distributions distinguish between core utilities needed for proper system operation and other programs, and place the latter in directories under /usr (think user). To get a sense        for how the other programs are organized, find the /usr directory in the diagram from the previous page and compare the subdirectories with those that exist directly under the system root directory (/).

Comments