<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: 7 Ways to Determine the File System Type in Linux  (Ext2, Ext3 or Ext4)	</title>
	<atom:link href="https://www.tecmint.com/find-linux-filesystem-type/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/find-linux-filesystem-type/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Thu, 13 Jul 2023 12:26:10 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Mallika		</title>
		<link>https://www.tecmint.com/find-linux-filesystem-type/comment-page-1/#comment-1372272</link>

		<dc:creator><![CDATA[Mallika]]></dc:creator>
		<pubDate>Sun, 11 Oct 2020 07:54:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24859#comment-1372272</guid>

					<description><![CDATA[Note that, 
&lt;pre&gt;
# mkfs -t ext4 /tmp/image1
&lt;/pre&gt;
will create a ext2 filesystem on image1, if its not big enough (warning &quot;Filesystem too small for a journal&quot; means a filesystem without a journal, a.k.a. ext2, is created)

If you don&#039;t realize this and nevertheless mount it as ext4. The df and mount methods above will mirror back ext4:
&lt;pre&gt;
$ df -Th /tmp/mnt*
Filesystem     Type  Size  Used Avail Use% Mounted on
/dev/loop4     ext4 1003K   24K  908K   3% /tmp/mnt1
/dev/loop5     ext4  987K   33K  812K   4% /tmp/mnt2
$ mount &#124; grep mnt
...
/home/mallikab/image1 on /tmp/mnt1 type ext4 (rw,relatime,seclabel)
/home/mallikab/image2 on /tmp/mnt2 type ext4 (rw,relatime,seclabel,data=ordered)
&lt;/pre&gt;
but fsck and file reveal the true filesystem:
&lt;pre&gt;
$ fsck -N /tmp/mnt1
fsck from util-linux 2.23.2
[/sbin/fsck.ext2 (1) -- /tmp/mnt1] fsck.ext2 /tmp/mnt1 
$ fsck -N /tmp/mnt2
fsck from util-linux 2.23.2
[/sbin/fsck.ext4 (1) -- /tmp/mnt2] fsck.ext4 /home/mallikab/image2 

$ file -sL /home/mallikab/image2 
/home/mallikab/image2: Linux rev 1.0 ext4 filesystem data, UUID=b4e8e086-54ca-4d9d-9f38-32bbed211e6b (needs journal recovery) (extents) (64bit) (huge files)
$ file -sL /home/mallikab/image1
/home/mallikab/image1: Linux rev 1.0 ext2 filesystem data (mounted or unclean), UUID=09b3a8c9-0b6d-43c5-b195-c45f6c091765 (extents) (64bit) (huge files)

hm, although fsck doesn&#039;t indicate ext2 unless the images are mounted, i.e.
$ fsck -N ~/image1
fsck from util-linux 2.23.2
[/sbin/fsck.ext4 (1) -- /home/mallikab/image1] fsck.ext4 /home/mallikab/image1
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>Note that, </p>
<pre>
# mkfs -t ext4 /tmp/image1
</pre>
<p>will create a ext2 filesystem on image1, if its not big enough (warning &#8220;Filesystem too small for a journal&#8221; means a filesystem without a journal, a.k.a. ext2, is created)</p>
<p>If you don&#8217;t realize this and nevertheless mount it as ext4. The df and mount methods above will mirror back ext4:</p>
<pre>
$ df -Th /tmp/mnt*
Filesystem     Type  Size  Used Avail Use% Mounted on
/dev/loop4     ext4 1003K   24K  908K   3% /tmp/mnt1
/dev/loop5     ext4  987K   33K  812K   4% /tmp/mnt2
$ mount | grep mnt
...
/home/mallikab/image1 on /tmp/mnt1 type ext4 (rw,relatime,seclabel)
/home/mallikab/image2 on /tmp/mnt2 type ext4 (rw,relatime,seclabel,data=ordered)
</pre>
<p>but fsck and file reveal the true filesystem:</p>
<pre>
$ fsck -N /tmp/mnt1
fsck from util-linux 2.23.2
[/sbin/fsck.ext2 (1) -- /tmp/mnt1] fsck.ext2 /tmp/mnt1 
$ fsck -N /tmp/mnt2
fsck from util-linux 2.23.2
[/sbin/fsck.ext4 (1) -- /tmp/mnt2] fsck.ext4 /home/mallikab/image2 

$ file -sL /home/mallikab/image2 
/home/mallikab/image2: Linux rev 1.0 ext4 filesystem data, UUID=b4e8e086-54ca-4d9d-9f38-32bbed211e6b (needs journal recovery) (extents) (64bit) (huge files)
$ file -sL /home/mallikab/image1
/home/mallikab/image1: Linux rev 1.0 ext2 filesystem data (mounted or unclean), UUID=09b3a8c9-0b6d-43c5-b195-c45f6c091765 (extents) (64bit) (huge files)

hm, although fsck doesn't indicate ext2 unless the images are mounted, i.e.
$ fsck -N ~/image1
fsck from util-linux 2.23.2
[/sbin/fsck.ext4 (1) -- /home/mallikab/image1] fsck.ext4 /home/mallikab/image1
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aaron Kili		</title>
		<link>https://www.tecmint.com/find-linux-filesystem-type/comment-page-1/#comment-1328837</link>

		<dc:creator><![CDATA[Aaron Kili]]></dc:creator>
		<pubDate>Tue, 21 Apr 2020 06:10:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24859#comment-1328837</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/find-linux-filesystem-type/comment-page-1/#comment-1328710&quot;&gt;Zac&lt;/a&gt;.

@Zac

Thanks for the useful feedback.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/find-linux-filesystem-type/comment-page-1/#comment-1328710">Zac</a>.</p>
<p>@Zac</p>
<p>Thanks for the useful feedback.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Zac		</title>
		<link>https://www.tecmint.com/find-linux-filesystem-type/comment-page-1/#comment-1328710</link>

		<dc:creator><![CDATA[Zac]]></dc:creator>
		<pubDate>Mon, 20 Apr 2020 12:06:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24859#comment-1328710</guid>

					<description><![CDATA[The only working method for me was &#039;&lt;code&gt;lsblk -f&lt;/code&gt;&#039;; the other replied &quot;&lt;strong&gt;fuseblk&lt;/strong&gt;&quot;, &quot;HPFS/NTFS/exFAT&quot; or nothing.]]></description>
			<content:encoded><![CDATA[<p>The only working method for me was &#8216;<code>lsblk -f</code>&#8216;; the other replied &#8220;<strong>fuseblk</strong>&#8220;, &#8220;HPFS/NTFS/exFAT&#8221; or nothing.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Aaron Kili		</title>
		<link>https://www.tecmint.com/find-linux-filesystem-type/comment-page-1/#comment-1318872</link>

		<dc:creator><![CDATA[Aaron Kili]]></dc:creator>
		<pubDate>Thu, 27 Feb 2020 10:28:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24859#comment-1318872</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/find-linux-filesystem-type/comment-page-1/#comment-1318748&quot;&gt;mic&lt;/a&gt;.

@mic

We very much appreciate you too. Many thanks for the feedback.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/find-linux-filesystem-type/comment-page-1/#comment-1318748">mic</a>.</p>
<p>@mic</p>
<p>We very much appreciate you too. Many thanks for the feedback.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: mic		</title>
		<link>https://www.tecmint.com/find-linux-filesystem-type/comment-page-1/#comment-1318748</link>

		<dc:creator><![CDATA[mic]]></dc:creator>
		<pubDate>Wed, 26 Feb 2020 13:55:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=24859#comment-1318748</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/find-linux-filesystem-type/comment-page-1/#comment-1318747&quot;&gt;mic&lt;/a&gt;.

but I appreciate very much this page :)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/find-linux-filesystem-type/comment-page-1/#comment-1318747">mic</a>.</p>
<p>but I appreciate very much this page :)</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
