Skip to main content

Format a USB Stick to EXTx using a Mac or WRT-based router

·115 words·1 min·
Chris Gillatt
Author
Chris Gillatt
Cloud/Systems Engineer with an addiction to coffee, tech and writing.
Table of Contents

Horses for courses. Formats for file systems.

For many reasons including if you use a WRT-based Router, there may come a time where you need to format a USB Stick to EXT2/3/4.

You can do this with mkfs.ext2 / mkfs.ext3 / mkfs.ext4

SSH to your Router and simply run mkfs.ext2

$ mkfs.ext2

Alternatively you can do it using your Mac using e2fsprogs

  • you can install e2fsprogs using brew
$ brew install e2fsprogs
  • Find the name of your target partition or disk
$ diskutil list
  • Run something like the following
$ sudo $(brew --prefix e2fsprogs)/sbin/mkfs.ext2 /dev/disk2s1

Tip 🚀
#

You may need to change the drive from disk2s1 to whatever your target disk / partition is.