coiai Logo

This article is an English translation of the original Japanese post. Read the Japanese original →

A Look at Disk Formatting Types on Ubuntu (Linux)

June 21, 2024

Categories: Linux

❓ What This Is About

Whether you're on Linux, Mac, or Windows, formatting a disk means choosing a file system type at some point.

The Options

  • Ext4
  • NTFS
  • FAT
  • XFS
  • Linux Swap Partition
  • Btrfs
  • F2FS
  • exFAT
  • UDF

When formatting a disk with the Disks app on Ubuntu, you'll be offered file type choices like the ones above.

I've summarized what I could find in the table below. It's not exhaustive, and it leaves out exceptions like specific third-party software that adds Windows/Mac support.

Ext4NTFSXFSFATexFATLinux Swap PartitionBtrfsF2FSUDF
Windows supportNoOKNoOKOKNoOKNoOK
macOS supportNoRead OnlyNoOKOKNoNoNoOK
File size limitNone
(16TiB)
16TBNone4GB128PB–???
Mount size limitNone
(1EiB)
256TBNone
(8EiB)
2TB128PB–???
chmod supportOK△OKNoNo–OKNoNo
Typical useStandard on LinuxStandard on WindowsFor serversOld but reliable (great compatibility)A slightly nicer version of FATSpace reserved for virtual memoryModern Linux file systemFor flash memory (SD cards, SSDs)For optical media
Take this with a grain of salt — I may not have picked the most accurate sources either, m(_ _)m

So Which One Should You Actually Use?

I initially reached for exFAT thinking it would work across every OS, but changing permissions on Linux turned out to be a pain, so in the end it seems best to just use whatever fits each OS.

Even file systems without official cross-platform support can sometimes be read and written to with third-party software, but for now I decided to play it safe and go with Ext4.

Reference Sites

On mounting Ext4 on macOS
https://zenn.dev/hogafuga_1114/articles/d2b4bf135e3de5

On running Btrfs long-term
https://gigazine.net/news/20200202-btrfs-five-years/

On working with Btrfs on Windows
https://softantenna.com/blog/winbtrfs

On F2FS support for Mac/Windows (the software below might make it possible)
https://www.paragon-software.com/free/pm-express/#

A Look at Disk Formatting Types on Ubuntu (Linux) | coiai Inc.