<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>File_systems on rooiratel</title><link>https://rooiratel.red/tags/file_systems/</link><description>Stephan Snyman's personal website</description><language>en-gb</language><generator>Hugo</generator><atom:link href="https://rooiratel.red/tags/file_systems/index.xml" rel="self" type="application/rss+xml"/><item><title>exFAT</title><link>https://rooiratel.red/posts/exfat/</link><pubDate>Sun, 14 Jun 2020 10:59:12 +0200</pubDate><guid isPermaLink="true">https://rooiratel.red/posts/exfat/</guid><description>Now that Linux 5.7 has been released containing the new Samsung implementation of their exFAT driver, it is time to format all my removable storage media to exFAT.[0]
Why? Previously, I would always format my external hard drives and memory sticks as NTFS even though I only use Linux. This was because the default FAT32 file system does not support files larger than 4GB (and NTFS does), and also, if I need to share files with people who use Windows or Mac, they can read the NTFS file system. Windows natively, and Linux and Mac via ntfs-3g.[1] This worked OK, but it was annoying having to use a FUSE-based solution that is quite slow.</description><content:encoded><![CDATA[<p>Now that Linux 5.7 has been released containing the new Samsung implementation of their exFAT driver, it is time to format all my removable storage media to exFAT.[0]</p>
<h1 id="why">Why?</h1>
<p>Previously, I would always format my external hard drives and memory sticks as NTFS even though I only use Linux. This was because the default FAT32 file system does not support files larger than 4GB (and NTFS does), and also, if I need to share files with people who use Windows or Mac, they can read the NTFS file system. Windows natively, and Linux and Mac via ntfs-3g.[1] This worked OK, but it was annoying having to use a FUSE-based solution that is quite slow.</p>
<h1 id="how">How?</h1>
<p>Start by installing exfatprogs so that you have what you need to format to exFAT.[2]</p>
<p>On Arch Linux, that&rsquo;s just:</p>
<p><code>sudo pacman -S exfatprogs</code></p>
<p>Next, you need to get a list of disks on your system so that you know which one to format. Personally, I like to list them all, then plug in my intended target, then list again. That way, you know for sure which disk is the removable one - even if it was otherwise obvious. I never take any risks when it comes to formatting drives with data on them.</p>
<p><code>fdisk -l</code></p>
<p>Now that you know which device to use, run the command below. Set your own label and specify the correct drive.</p>
<p><code>sudo mkfs.exfat -n LABEL /dev/sdX</code></p>
<p>Finally, run a check to make sure everything went smoothly.</p>
<p><code>sudo fsck.exfat /dev/sdXn</code></p>
<p>Now, I can use my removable storage devices on any OS and with native kernel drivers!</p>
<h1 id="references">References</h1>
<pre tabindex="0"><code>[0] https://kernelnewbies.org/Linux_5.7#New_exFAT_file_system
[1] https://www.tuxera.com/company/open-source/
[2] https://github.com/exfatprogs/exfatprogs
</code></pre>]]></content:encoded></item></channel></rss>