You may not spend much time pondering the qualities of the file systems on your Linux system, however the distinctions between the various file system types can be both fascinating and extremely pertinent. This short article describes commands that you can use to validate your file system types and explains their differences.Commands that report file system types There are a number of Linux commands that will display file system types together with the file system names, install points and such. Some will likewise display sizes and available disk space.Using df-Th The df command with the” T”(program file system type) and”h”(use human-friendly sizes)choices provides
a really beneficial take a look at the file systems on a Linux system. Here’s an example:$df- Th Filesystem Type Size Utilized Avail Usage% Mounted on devtmpfs 4.0 M 0 4.0 M 0%/ dev tmpfs 2.9 G 0 2.9 G 0%/ dev/shm tmpfs 1.2 G 1.7 M 1.2 G 1 %/ run/ dev/sda2 btrfs 111G 11G 100G 10 %/ tmpfs 2.9 G 56K 2.9 G 1 %/ tmp/ dev/sda2 btrfs 111G 11G 100G 10%/ house/ dev/sda1 ext4 974M 330M 577M 37%/ boot/ dev/sdb1 ext4 427G 71G 334G 18%/ apps tmpfs 593M 128K 593M 1%/ run/user/1000 Notice that the information consist of install points, sizes, utilized and offered space.Using fsck You can use the fsck(file system check )command to report on a particular file system as shown in the example below. This sample command reveals that the/ dev/sda1 disk partition consists of an ext4 file system.$fsck- N/ dev/sda1 fsck from util-linux 2.37.4 [/usr/sbin/fsck. ext4 (1)–/ boot] fsck.ext4/ dev/sda1 Utilizing lsblk The lsblk(list block devices)command displays info on block devices(storage devices that hold data in the kind of blocks)– both hard drives and strong state drives. It
provides file system type information along other data– the file system version, the UUID (distinct identifier )and install point, along with information on how much space is offered and what portion of the assigned space remains in use.$lsblk- f/ dev/sda1 NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE %MOUNTPOINTS sda1 ext4 1.0 417d867b-270d-4ceb-a3e1-58b9a5f5c4c4 576.8 M 34%/ boot Using the mount command The mount command listed below shows file system types for installed file systems (fifth string )in addition to numerous additional information. $mount|grep/ dev devtmpfs on/ dev type devtmpfs(rw, nosuid, seclabel, size=4096k, nr_inodes =131072, mode=755, inode64 )tmpfs on/ dev/shm type tmpfs (rw, nosuid, nodev, seclabel, inode64)devpts on/ dev/pts type devpts (rw, nosuid, noexec, relatime, seclabel, gid=5, mode=620, ptmxmode=000)/ dev/sda2 on/ type btrfs (rw, relatime, seclabel, compress=zstd:1, ssd, space_cache, subvolid=257, subvol =/ root )hugetlbfs on/ dev/hugepages type hugetlbfs(rw, relatime, seclabel, pagesize=2M)mqueue on/ dev/mqueue type mqueue(rw, nosuid, nodev, noexec, relatime, seclabel)/ dev/sda2 on/ home type btrfs(rw, relatime, seclabel, compress=zstd:1, ssd, space_cache, subvolid=256, subvol=/ home)/ dev/sda1 on/ boot type ext4 (rw, relatime, seclabel)/ dev/sdb1 on/ apps type ext4(rw, relatime, seclabel) To view just a list of the file system types, utilize a command like this:$install|grep”/ dev”| awk’print $5 ‘| sort|uniq btrfs devpts devtmpfs ext4 hugetlbfs mqueue tmpfs Utilizing the file command The file command with the -sL choices can be utilized to list details for the file system associated with a particular disk partition. $ sudo file-sL/ dev/sda1/ dev/sda1: Linux rev 1.0 ext4 file system data, UUID=417d867b-270d-4ceb-a3e1-58b9a5f5c4c4(needs journal recovery) (levels )(64bit )(big files )( big files)File system types Linux systems make use of a variety of file system types. Some were built to replace older file system types with faster and more trustworthy ones. Others serve some extremely specific purposes.What is ext4?The ext4 file system is the fourth
generation ext file
system. The first, ext, … Source