UNIX Filesystems
Check
df
df -h
df -T
duf
apt install duf
Filesystem Types
To identify filesystem type use any of these commands...
df -Th
lsblk -f
mount | grep "^/dev" | column -t
mount -v
cat /etc/fstab
fsck -N /dev/sdb1
blkid /dev/sdb1
sudo file -sL /dev/sdb1
This last three are a bit pointless since you would probably need to use one of the commands above to identify the device to use anyway.autofs
TODO
binfmt_misc
TODO
cgroup
TODO
debugfs
TODO
devpts
TODO
devtmpfs
TODO
efivarfs
TODO
ext4
The ext4 filesystem the fourth generation of the Ext file system family. Ext was originally written by Rémy Card and released with Linux in 1992 to overcome some size limitations of the Minix file system
Compared to XFS, Ext4 handles less file sizes for example maximum supported size for Ext4 in RHEL 7 is 16TB compared to 500TB in XFS.
hugetlbfs
TODO
lofs
"An LOFS file system is a virtual file system that provides an alternate path to an existing file system. When other file systems are mounted onto an LOFS file system, the original file system does not change." (1)
mqueue
proc
TODO
pstore
TODO
rpc_pipefs
TODO
securityfs
TODO
selinuxfs
TODO
sysfs
TODO
tmpfs
"A temporary file system (TMPFS) uses local memory for file system reads and writes, which is typically much faster than reads and writes in a UFS file system. TMPFS file systems can improve system performance by saving the cost of reading and writing temporary files to a local disk or across the network. Files in TMPFS file systems do not survive across reboots or unmounts." (2)
tracefs
ufs
TODO
vfat
xfs
The XFS file system was developed in the early 1990s by SGI (Silicon Graphics, Inc.)
Compared to Ext4, XFS has a relatively poor performance for single threaded, metadata-intensive workloads. This includes workload that creates or deletes large numbers of small files in a single thread.
You cannot shrink XFS filesystems
zfs
TODO
Shrink Filesystem
Note: You cannot shrink GFS2 or XFS filesystemsFilesystem theory
inode
The inode (index node) is a data structure in a Unix-style file system that describes a file-system object such as a file or a directory. Each inode stores the attributes and disk block locations of the object's data. File-system object attributes may include metadata (times of last change, access, modification), as well as owner and permission data.
https://en.wikipedia.org/wiki/Inodedirectory
Directories are lists of names assigned to inodes. A directory contains an entry for itself, its parent, and each of its children.
https://en.wikipedia.org/wiki/InodeBibliography & References
https://en.wikipedia.org/wiki/Inodehttps://unix.stackexchange.com/questions/290116/what-is-an-orphaned-inodehttps://www.tecmint.com/find-linux-filesystem-type/https://www.2daygeek.com/reduce-shrink-decrease-resize-lvm-logical-volume-in-linux/https://computingforgeeks.com/ext4-vs-xfs-complete-comparison/https://serverfault.com/questions/429693/recommended-filesystem-for-mysql-xfs-vs-ext4https://www.cyberciti.biz/faq/see-filesystems-in-linux/(1) https://docs.oracle.com/cd/E18752_01/html/817-5093/fscreate-86793.html (LOFS)(2) https://docs.oracle.com/cd/E18752_01/html/817-5093/fscreate-99040.html (TMPFS)https://docs.oracle.com/cd/E18752_01/html/817-5093/fscreate-1.html (UFS)https://docs.oracle.com/cd/E18752_01/html/817-5093/fscreate-16.html (ZFS)