<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Redhat%3AFilesystem_Commands</id>
	<title>Redhat:Filesystem Commands - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?action=history&amp;feed=atom&amp;title=Redhat%3AFilesystem_Commands"/>
	<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Redhat:Filesystem_Commands&amp;action=history"/>
	<updated>2026-05-04T17:23:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.0</generator>
	<entry>
		<id>http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Redhat:Filesystem_Commands&amp;diff=3634&amp;oldid=prev</id>
		<title>Michael: Created page with &quot;== File System Format Commands ==  Linux provides commands to create a filesystem.  They are all based on mkfs  &lt;syntaxhighlight&gt; mkfs.ext mkfs.ext2 mkfs.ext3 mkfs.ext4 mkfs.xfs &lt;/syntaxhighlight&gt; ...&quot;</title>
		<link rel="alternate" type="text/html" href="http://wiki.define-technology.com/mediawiki-1.35.0/index.php?title=Redhat:Filesystem_Commands&amp;diff=3634&amp;oldid=prev"/>
		<updated>2013-09-06T15:18:28Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== File System Format Commands ==  Linux provides commands to create a filesystem.  They are all based on mkfs  &amp;lt;syntaxhighlight&amp;gt; mkfs.ext mkfs.ext2 mkfs.ext3 mkfs.ext4 mkfs.xfs &amp;lt;/syntaxhighlight&amp;gt; ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== File System Format Commands ==&lt;br /&gt;
&lt;br /&gt;
Linux provides commands to create a filesystem.  They are all based on mkfs&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
mkfs.ext&lt;br /&gt;
mkfs.ext2&lt;br /&gt;
mkfs.ext3&lt;br /&gt;
mkfs.ext4&lt;br /&gt;
mkfs.xfs&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To create a file system, make sure that the partition is umounted and then run the mkfs command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
mkfs.ext4 /dev/sdb1&lt;br /&gt;
mkfs -t ext4 /dev/sdb1&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Swap Volumes ===&lt;br /&gt;
&lt;br /&gt;
The mkswap command is used to format a swap parition.  But then it must be activated using the swapon command.&lt;br /&gt;
&lt;br /&gt;
== File System Check Commands ==&lt;br /&gt;
&lt;br /&gt;
To check a filesystem and perform any repairs needed use the fsck command.  To do this umount the file system, this may require you to boot into single user mode. &lt;br /&gt;
&lt;br /&gt;
== File System Conversion Commands ==&lt;br /&gt;
&lt;br /&gt;
To convert a file system from ext2 to ext3 for example, it must be remounted as read only before adding the journaling using the tune2fs command.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
mount -o remount,ro /dev/vda1&lt;br /&gt;
tune2fs -j /dev/vda1&lt;br /&gt;
mount -o remount,rw /dev/vda1&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To move to ext4, some other features must be added.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight&amp;gt;&lt;br /&gt;
mount -o remount,ro /dev/vda1&lt;br /&gt;
tune2fs -O extent,uninit_bg,dir_index /dev/vda1&lt;br /&gt;
mount -o remount,rw /dev/vda1&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael</name></author>
	</entry>
</feed>