Format a Bootable USB drive to full capacity using a Mac

I previously used my 64gb flash drive to create a bootable windows drive to enable me restore another PC.

I've since completed this & now the USB has only 16gb capacity out of the 64gb.

I've see tutorials on formatting it using windows, but I'm wondering if there's one for Mac.

MacBook Air 13″, macOS 14.5

Posted on Jun 9, 2024 9:15 PM

Reply
2 replies

Jun 16, 2024 9:53 AM in response to aik55j

Within Disk Utility you may need to click "View" and select "Show All Devices" before the physical drives appear on the left pane of Disk Utility. Select the whole physical drive to erase.


Sometimes macOS & Disk Utility are just not able to handle some drives which have utilized other operating systems....especially when "burned" to a drive from an .iso or .img raw image file. In those cases you may need to write zereos to the very beginning of the drive in order to destroy the partition table. You can do this by using the Terminal command line. First you need to get the drive identifier for the physical drive you want to erase....it will be in the format like "diskX"....for example it may be "disk4".


Here is the command template needed to erase the beginning of the drive with identifier "diskX". Replace "diskX" with the correct drive identifier for the drive you want erased.

sudo  dd  if=/dev/zero  of=/dev/diskX  bs=100m  count=10


This command will prompt you for your admin password. Nothing will appear on the screen as you type the password, so you will need to press the "Return" key to submit the password. For example, if the identifier for the drive you want to erase is "disk4", then here is the command you would use:

sudo  dd  if=/dev/zero  of=/dev/disk4  bs=100m  count=10


After writing zeroes to the beginning of the drive, you should then be able to use Disk Utility to erase the drive normally (make sure to select the whole physical drive).


Or as @kaz-k suggested, you can use Windows to delete all existing partitions and partition & format it before connecting to your Mac where you can use Disk Utility to erase the whole physical drive.


Format a Bootable USB drive to full capacity using a Mac

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.