Sign in

For some reason, DiskUtility in UI might not be able to format USB drive successfully, as an alternatively, CLI could solve the issue.

  1. Type the following command and hit enter to list all the mounted devices available in your system:

2. From this list, go ahead and select the device that you want to format and use the Terminal to format it.

Use the following syntax to format the drive:

3. For the Disk name, you can enter any name you want to give your device.

To find your Disk identifier, refer to…


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store