Apple - Formatting USB Disk As EXT3 On Mac
I needed to format a partition to ext3
on my USB flash drive. The drive was already formatted, and had 3 partitions, and I wanted to convert partition 1 from FAT32 to ext3.
- install
brew
, visithttp://brew.sh/
- install e2fsprogs using
brew install e2fsprogs
- figure out the name of your partition or drive using
diskutil list
-- in my case, my partition had was on disk2 and had the identifier ofdisk2s1
- If the drive is mounted, unmount it:
diskutil unmountDisk disk2
. Note that this is the drive in the listing above, not the partition. sudo $(brew --prefix e2fsprogs)/sbin/mkfs.ext3 /dev/disk2s1
but you may need to change the drive fromdisk2s1
to the partition or drive that you want to format. This command will ask you to verify the name of the partition, just to be sure :)
Note, if you're able to ssh/telnet into your router running dd-wrt or tomato, you can already directly run mkfs.ext3
directly in the router, and don't need to do anything on your mac at all
One totally free way of doing things would be to install VirtualBox and create a virtual machine which will run your favourite Linux distro. You should be able to do this with minimal impact on disk space.
I'd personally just use a common file format such as the universal FAT file system but obviously this isn't the answer you're looking for.
There is the commercial product Paragon ExtFS for Mac with which you can format even ext4 - I use it from time to time to access ext3 external hdd and it works quite well.
From their website:
Full read/write access to Ext2 / Ext3 / Ext4 partitions under Mac® OS X
Transfer rate is similar to the native Mac® OS Extended file system performance
Auto-mounting of Ext2 / Ext3 / Ext4 volumes
Full support of OS X 10.10 Yosemite!
No affiliation or whatsoever.
There is also OSXFuse as described in this artticle, but I do not think you can format a hdd with it.
Otherwise I agree with ScunnerDarkly - install linux in a virtual machine - or run a live disk (e.g. ubuntu) in a Virtual Machine, which might be the easiest.