<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Linux%2FExtended_File_System</id>
	<title>Linux/Extended File System - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://aznot.com/index.php?action=history&amp;feed=atom&amp;title=Linux%2FExtended_File_System"/>
	<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Linux/Extended_File_System&amp;action=history"/>
	<updated>2026-04-30T13:28:29Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://aznot.com/index.php?title=Linux/Extended_File_System&amp;diff=5224&amp;oldid=prev</id>
		<title>Kenneth: /* Extended (Ext) File System */</title>
		<link rel="alternate" type="text/html" href="https://aznot.com/index.php?title=Linux/Extended_File_System&amp;diff=5224&amp;oldid=prev"/>
		<updated>2019-10-15T20:01:32Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Extended (Ext) File System&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Extended (Ext) File System ==&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;quot;The extended file system, or ext, was implemented in April 1992 as the first file system created specifically for the Linux kernel. It has metadata structure inspired by the traditional Unix File System (UFS) and was designed by Rémy Card to overcome certain limitations of the MINIX file system. It was the first implementation that used the virtual file system (VFS), for which support was added in the Linux kernel in version 0.96c, and it could handle file systems up to 2 gigabytes (GB) in size.&lt;br /&gt;
&lt;br /&gt;
ext was the first in the series of extended file systems. It was immediately superseded by both ext2 and xiafs, which competed for a time, but ext2 won because of its long-term viability: ext2 remedied issues with ext, such as the immutability of inodes and fragmentation.&amp;quot;&amp;#039;&amp;#039; [http://en.wikipedia.org/wiki/Extended_file_system]&lt;br /&gt;
&lt;br /&gt;
* ext, the first extended file system&lt;br /&gt;
* ext2, the second extended file system&lt;br /&gt;
* ext3, the third extended file system.&lt;br /&gt;
* ext4, the fourth extended file system.&lt;br /&gt;
&lt;br /&gt;
== Age of File System ==&lt;br /&gt;
&lt;br /&gt;
 # tune2fs -l /dev/sda1 | grep created&lt;br /&gt;
 Filesystem created:       Fri Dec  7 16:22:58 2018&lt;br /&gt;
&lt;br /&gt;
Also generally works as the date of server installation&lt;br /&gt;
&lt;br /&gt;
== Block Size ==&lt;br /&gt;
&lt;br /&gt;
A block is a uniformly sized unit of data storage for a filesystem. Block size can be an important consideration when setting up a system that is designed for maximum performance.&lt;br /&gt;
&lt;br /&gt;
Block size is selected at the time of high-level formatting, i.e., preparing the hard disk drive (HDD) or other media for creation of a filesystem. If the mke2fs (i.e., make ext2 filesystem) command is used to create the filesystem, valid block size vales are 1024, 2048 and 4096 bytes. If omitted, block size is determined by an algorithm that considers the size of the filesystem and how it is expected to be used. &lt;br /&gt;
&lt;br /&gt;
Find Block Size:&lt;br /&gt;
 dumpe2fs /dev/sdb3 | grep -i &amp;#039;Block size&amp;#039;&lt;br /&gt;
 # faster:&lt;br /&gt;
 dumpe2fs -H /dev/sdb3 | grep -i &amp;#039;Block size&amp;#039;&lt;br /&gt;
&lt;br /&gt;
References:&lt;br /&gt;
* [http://www.cyberciti.biz/tips/determine-block-size-on-hard-disk-quota.html Determine the block size on hard disk filesystem for disk quota]&lt;br /&gt;
* [http://www.linfo.org/get_block_size.html obtain filesystem block size]&lt;br /&gt;
&lt;br /&gt;
== Resize Ext Partition ==&lt;br /&gt;
&lt;br /&gt;
Resize Ext4 / Ext3 / Ext2 Partitions...&lt;br /&gt;
&lt;br /&gt;
 resize2fs /dev/sda1 6000M&lt;br /&gt;
 resize2fs /dev/sda1  # fill to capacity&lt;br /&gt;
&lt;br /&gt;
== Defrag Ext Partitions ==&lt;br /&gt;
&lt;br /&gt;
Check:&lt;br /&gt;
 sudo e4defrag -c /path/to/myfiles&lt;br /&gt;
&lt;br /&gt;
Defrag:&lt;br /&gt;
 sudo e4defrag -c /path/to/myfiles&lt;br /&gt;
&lt;br /&gt;
Uglier way:&lt;br /&gt;
* See [[#Resize Ext Partition]] above&lt;br /&gt;
&lt;br /&gt;
How to defrag an ext4 filesystem - Ask Ubuntu - http://askubuntu.com/questions/221079/how-to-defrag-an-ext4-filesystem&lt;br /&gt;
&lt;br /&gt;
== Change UUID ==&lt;br /&gt;
&lt;br /&gt;
If you have cloned the drive, you can change the uuid: [http://www.sudo-juice.com/how-to-change-the-uuid-of-a-linux-partition/]&lt;br /&gt;
 UUID=`uuidgen`&lt;br /&gt;
 sudo tune2fs /dev/sde5 -U $UUID&lt;br /&gt;
&lt;br /&gt;
== Reclaim reserved root space on ext3 ==&lt;br /&gt;
&lt;br /&gt;
 tune2fs -m 0 /dev/path/to/dev&lt;br /&gt;
&lt;br /&gt;
=== Source ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
-------- Original Message --------&lt;br /&gt;
Subject: 	reclaiming unavailable space on ext3 or 4 using tune2fs -m&lt;br /&gt;
Date: 	Sun, 26 Sep 2010 22:41:31 -0600&lt;br /&gt;
From: 	Michael Torrie &amp;lt;torriem@gmail.com&amp;gt;&lt;br /&gt;
Reply-To: 	Provo Linux Users Group &amp;lt;plug@plug.org&amp;gt;&lt;br /&gt;
To: 	Provo Linux Users Group Mailing List &amp;lt;plug@plug.org&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
On Ext2,3 or 4, the file system reserves a certain number of blocks that&lt;br /&gt;
can only be allocated by privileged processes (root?).  When you do a&lt;br /&gt;
df, this percentage is taken into account and counts against free space.&lt;br /&gt;
 On a mount that is not the root file system, and will never have any&lt;br /&gt;
system process writing to it, you can free up some of this space for use&lt;br /&gt;
by normal users.  To do this, you can do (even on a mounted file system):&lt;br /&gt;
&lt;br /&gt;
tune2fs -m 0 /dev/path/to/dev&lt;br /&gt;
&lt;br /&gt;
So on my machine I always mount /home from a separate file system.  On&lt;br /&gt;
my mythtv box I also keep my recordings on separate file systems from my&lt;br /&gt;
root file system.  Running this command on my home workstation got back&lt;br /&gt;
30 odd GB of previously unusable space, and on my myth box, I got back&lt;br /&gt;
about 45 GB on each 1 TB disk.&lt;br /&gt;
&lt;br /&gt;
Thought I&amp;#039;d pass along this tip.&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
PLUG: http://plug.org, #utah on irc.freenode.net&lt;br /&gt;
Unsubscribe: http://plug.org/mailman/options/plug&lt;br /&gt;
Don&amp;#039;t fear the penguin.&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kenneth</name></author>
	</entry>
</feed>