Last Updated: February 25, 2016
·
786
· thierrylemoulec

Format an external drive from the command line

Open your terminal and find the mount point of your disk :

diskutil list

Then launch the following command :

diskutil eraseDisk HFS+ newdiskname "/dev/your-disk-name"

You are good to go.