Should I use ext4 or exFAT when formatting a drive for Linux?
Asked by
parachute instructor
I'm wiping a drive that I may later use as the destination for cloning another drive. It currently uses an ext3/ext4 filesystem, and I'm wondering whether there are any Linux-specific precautions before formatting it. If I won't need to access the drive from Windows or another operating system, is ext4 the better choice than exFAT?
Answers
The biggest danger is selecting the wrong device. Drive names and numbering can change between boots or hardware changes, so double-check the device carefully before formatting. Once the filesystem is created, mounting by UUID is more reliable than depending on names like /dev/sda. If the drive will only be used with Linux, ext4 is generally the sensible choice; exFAT is mainly useful for compatibility with other operating systems.
Reply to this answer
exFAT is convenient for removable drives because Windows and Linux can both read it, but it doesnโt provide journaling and offers fewer recovery and data-integrity features than ext4. ext4 is designed for Linux and is the better fit for a drive that will stay connected to a Linux system. Whichever filesystem you use, unmount the drive properly before disconnecting it, especially if data may still be writing.
Reply to this answer
After formatting, make sure the filesystem has the ownership and permissions you want. A newly created filesystem may be owned by root, so you might need to use chown or chmod before your regular user can work with the files. Some graphical disk tools also provide a โtake ownershipโ option that handles this for you.
Reply to this answer
Add your answer
Answers are reviewed before publication.
parachute instructor: Iโve confirmed Iโm working with the correct drive. Since I donโt expect to use it with another operating system, Iโll stick with ext4.