FS stats. FS limits.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 19 Nov 2016 10:49:04 +0200
changeset 2052 005dc5fcaa0f
parent 2051 b517b191156b
child 2053 536155417c5e
FS stats. FS limits.
fs.rst
--- a/fs.rst	Fri Nov 11 00:48:27 2016 +0200
+++ b/fs.rst	Sat Nov 19 10:49:04 2016 +0200
@@ -13,6 +13,45 @@
 
   $ cat /proc/filesystems
 
+FS stats
+========
+
+Free space::
+
+  $ df
+
+Free space in MB::
+
+  $ df -m
+
+Free space in human readable format::
+
+  $ df -h
+
+Number of free nodes::
+
+  $ df -i
+
+FS limits
+=========
+
+``ext4`` uses 32-bit inode numbers so number of files limited to 2^32.
+
+===== ==== ====== ======= ======= ========
+   fs name  inode sub-dir    file fs total
+===== ==== ====== ======= ======= ========
+ ext2  255                  2 TiB   16 TiB
+ ext3  255          32000   2 TiB   16 TiB
+ ext4  255   2^32   64000  16 TiB   16 TiB
+fat32  255 268e+6    2^16   2 GiB    8 TiB
+ ntfs  255   2^32          16 TiB  256 TiB
+  xfs  255                100 TiB  100 TiB
+ gfs2  255                100 TiB  100 TiB
+===== ==== ====== ======= ======= ========
+
+https://en.wikipedia.org/wiki/Comparison_of_file_systems#Limits
+  FS limits.
+
 Make label on FAT32 volume.
 ===========================