I have used and created an image drive to install Ubuntu server 18.04.

I have tried to erase and reformat using Mac utility but It will not do it.

Can someone explain how to do this in a terminal or other software



I tried other ask ubuntu answers but they did not work for me. I found an answer at this link which worked for me.


at the terminal type

Diskutil List

identify your disk to be erased then type:

diskutil eraseDisk free EMPTY /dev/disk4

Then format the disk

diskutil eraseDisk ExFAT USB64 /dev/disk4 where USB4 is the disk name and EXFAT the format

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.