{"id":2863,"date":"2022-05-14T02:30:04","date_gmt":"2022-05-14T02:30:04","guid":{"rendered":"https:\/\/dft.wiki\/?p=2863"},"modified":"2022-05-14T02:30:13","modified_gmt":"2022-05-14T02:30:13","slug":"most-common-linux-file-systems-ext-vs-xfs-vs-zfs-vs-btrfs","status":"publish","type":"post","link":"https:\/\/dft.wiki\/?p=2863","title":{"rendered":"Most Common Linux File Systems &#8211; EXT vs XFS vs ZFS vs Btrfs"},"content":{"rendered":"<p><span data-preserver-spaces=\"true\">Basically, in all file systems, the first block is used for the Boot Sector and the second block is used for the Inodes (the table of pointers that localize the data in the disk). The rest of the dist is used for real data.<\/span><\/p>\n<ul>\n<li><strong><span data-preserver-spaces=\"true\">EXT<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0(4 is the latest version)<\/span>\n<ul>\n<li class=\"ql-indent-1\"><span data-preserver-spaces=\"true\">The most popular and widely supported.\u00a0<\/span><\/li>\n<li class=\"ql-indent-1\"><span data-preserver-spaces=\"true\">Improves storage of large files because of the concept of &#8220;Extents&#8221;, which uses sequential blocks to prevent data fragmentation.<\/span><\/li>\n<li class=\"ql-indent-1\"><span data-preserver-spaces=\"true\">Prevents data corruption and allows easier system recovery via\u00a0<\/span><strong><span data-preserver-spaces=\"true\">journaling<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0(32 bits).<\/span><\/li>\n<li class=\"ql-indent-1\"><span data-preserver-spaces=\"true\">Uses buffering to prevent fragmentation and increase performance and also permits defragmentation while mounted.<\/span><\/li>\n<\/ul>\n<\/li>\n<li><strong><span data-preserver-spaces=\"true\">XFS<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0(popular in enterprises)<\/span>\n<ul>\n<li class=\"ql-indent-1\"><span data-preserver-spaces=\"true\">Journaling (64 bits) file system made for huge amounts of data and higher throughputs.<\/span><\/li>\n<li class=\"ql-indent-1\"><span data-preserver-spaces=\"true\">The file system can be defragmented or resized online (without unmounting).<\/span><\/li>\n<\/ul>\n<\/li>\n<li><strong><span data-preserver-spaces=\"true\">ZFS<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0(combined file system)<\/span>\n<ul>\n<li class=\"ql-indent-1\"><span data-preserver-spaces=\"true\">Highest storage size that combines multiple physical storages in storage pools.<\/span><\/li>\n<li class=\"ql-indent-1\"><span data-preserver-spaces=\"true\">Capable of journaling, checksum, snapshots, RAID-Z, and silent fix of corrupted data.<\/span><\/li>\n<li class=\"ql-indent-1\"><span data-preserver-spaces=\"true\">Proprietary.<\/span><\/li>\n<\/ul>\n<\/li>\n<li><strong><span data-preserver-spaces=\"true\">Btrfs<\/span><\/strong><span data-preserver-spaces=\"true\">\u00a0(high-performance copy on write)<\/span>\n<ul>\n<li class=\"ql-indent-1\"><span data-preserver-spaces=\"true\">Not proprietary and probably the future next-generation industry standard due to its overall features.<\/span><\/li>\n<li class=\"ql-indent-1\"><span data-preserver-spaces=\"true\">Similar to ZFS except for the max storage size but offers transparent compression and optimization for SSD.<\/span><\/li>\n<li class=\"ql-indent-1\"><span data-preserver-spaces=\"true\">The copy on write does not overwrite data when modifying it. That way it prevents corruption in case of loss of power and other issues.<\/span><\/li>\n<li class=\"ql-indent-1\"><span data-preserver-spaces=\"true\">Has a tool to convert EXT 2\/3\/4 to Brtfs.<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Basically, in all file systems, the first block is used for the Boot Sector and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,6],"tags":[],"class_list":["post-2863","post","type-post","status-publish","format-standard","hentry","category-linux","category-raspberry-pi"],"_links":{"self":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/2863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2863"}],"version-history":[{"count":1,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/2863\/revisions"}],"predecessor-version":[{"id":2864,"href":"https:\/\/dft.wiki\/index.php?rest_route=\/wp\/v2\/posts\/2863\/revisions\/2864"}],"wp:attachment":[{"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2863"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dft.wiki\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}