Linux – Which filesystem is appropriate for formatting an USB-stick and install an operation-system

filesystemslinuxusb-flash-drive

I have installed my linux-system on a USB-stick. That works well, I can use it on different computers. I used ext4 as filesystem and ask myself it this is the best choice. Which file-system is best for USB-sticks? A good filesystem should not destroy the flash-drive too fast. Additional activities to secure data-integrity might be good (I do an daily backup). Another criterion might be higher performance.

Best Answer

The latest Linux kernels support F2FS a SSD optimized file system but it still experimental. If the system on the stick is not too critical you could try it out.

Otherwise with ext4:

  • disable the relatime flag (records access time)
  • enable TRIM (discard flag)

In general

  • use the NOOP scheduler instead of CFQ

Sample fstab

/dev/sda   /   ext4   noatime,nodiratime,discard,errors=remount-ro 0 1
Related Question