disk utility won't format USB stick to APFS

this week this has happened the first time to me after years of using macOS and external drives/ USB sticks. ( macOS 12.3.1) I sent the stick back for a refund and bought 2nd one from different manufacturer. this time APFS format was offered in drop down list as an option but disk utility can't execute the task. always the same message "can't mount or unmount disk" is this a bug of the latest macOS or is APFS so advanced that I need one specific manufacturer of USB device?

iMac 21.5″, macOS 12.3

Posted on Apr 8, 2022 2:04 PM

Question marked as Top-ranking reply

Posted on Apr 9, 2022 8:28 PM

ReptileMoebus wrote:

did that just now. no resolution. still error message "erase process failed". interestingly, after I selected file type APFS and GUID partition map scheme, during the erase process, disk utility suddenly changes to formatting for "macOS journaled". disk utility has never done that before.

I have seen this happen for several years now and it appears to be normal, but I think it with recent versions of macOS I have seen it directly create an APFS volume instead of an HFS+ volume and converting it.


I have also seen Disk Utility fail to erase a drive even when the physical drive is selected. Most times if I immediately try erasing the physical drive again, the erase process will succeed. Disk Utility is not a great app and has a lot of odd behaviors.


I have also seen macOS have problems erasing drives which have been created using other operating systems or devices. Again, macOS isn't very smart when it encounters something unexpected. When this happens I will write zeroes to the beginning of the physical drive to destroy the partition table so that the drive appears "blank" and factory fresh with no partitions or file systems. Disk Utility will usually erase the drive successfully. To write zeroes to the beginning of the drive you need to get the drive identifier for the physical drive which can be retrieved from Disk Utility. The drive identifier will be in the form of "diskX" where "X" is a number, for example "disk3". In the following commands replace "diskX" with the correct drive identifier for your USB stick.


Unmount all volumes on USB stick "diskX":

diskutil  unmountDisk  diskX


Write zeroes to the beginning of USB stick "diskX":

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


This last command will prompt you for your admin password, but nothing will appear on the screen as you type the password. Press the "Return" key to submit the password.


If you use the wrong drive identifier, you may accidentally destroy important data, so be very careful to have the proper drive identifier for "diskX". It is recommended to disconnect all external devices to minimize confusion and to minimize the chance of destroying data on those devices. Plus make sure to have a good backup before using the command line since there is no safety net if a mistake is made.


Now use Disk Utility to erase the physical USB stick as GUID partition and APFS (top option).


Keep in mind the quality of most USB sticks is extremely poor, plus Macs tend to be a bit particular about the drives used. In addition, both macOS 12.x Monterey and M1 Macs both have some compatibility issues with external devices.


17 replies
Question marked as Top-ranking reply

Apr 9, 2022 8:28 PM in response to Community User

ReptileMoebus wrote:

did that just now. no resolution. still error message "erase process failed". interestingly, after I selected file type APFS and GUID partition map scheme, during the erase process, disk utility suddenly changes to formatting for "macOS journaled". disk utility has never done that before.

I have seen this happen for several years now and it appears to be normal, but I think it with recent versions of macOS I have seen it directly create an APFS volume instead of an HFS+ volume and converting it.


I have also seen Disk Utility fail to erase a drive even when the physical drive is selected. Most times if I immediately try erasing the physical drive again, the erase process will succeed. Disk Utility is not a great app and has a lot of odd behaviors.


I have also seen macOS have problems erasing drives which have been created using other operating systems or devices. Again, macOS isn't very smart when it encounters something unexpected. When this happens I will write zeroes to the beginning of the physical drive to destroy the partition table so that the drive appears "blank" and factory fresh with no partitions or file systems. Disk Utility will usually erase the drive successfully. To write zeroes to the beginning of the drive you need to get the drive identifier for the physical drive which can be retrieved from Disk Utility. The drive identifier will be in the form of "diskX" where "X" is a number, for example "disk3". In the following commands replace "diskX" with the correct drive identifier for your USB stick.


Unmount all volumes on USB stick "diskX":

diskutil  unmountDisk  diskX


Write zeroes to the beginning of USB stick "diskX":

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


This last command will prompt you for your admin password, but nothing will appear on the screen as you type the password. Press the "Return" key to submit the password.


If you use the wrong drive identifier, you may accidentally destroy important data, so be very careful to have the proper drive identifier for "diskX". It is recommended to disconnect all external devices to minimize confusion and to minimize the chance of destroying data on those devices. Plus make sure to have a good backup before using the command line since there is no safety net if a mistake is made.


Now use Disk Utility to erase the physical USB stick as GUID partition and APFS (top option).


Keep in mind the quality of most USB sticks is extremely poor, plus Macs tend to be a bit particular about the drives used. In addition, both macOS 12.x Monterey and M1 Macs both have some compatibility issues with external devices.


Apr 9, 2022 4:07 AM in response to MartinR

thank you for the suggestion.

it already is schemed as GUID according to disk utility. and I didn't have to do anything for that. it selected it automatically when I formatted it.

the same problems arise when I try to format the usb stick to FAT32 (MS-DOS FAT).

as i mentioned initially: this is the second usb stick with these issues, which causes me to think that macOS is the problem. on my windows10 laptop all formatting options work (using the same usb sticks)

Apr 9, 2022 7:32 AM in response to Community User

ReptileMoebus wrote:

interestingly, after I selected file type APFS and GUID partition map scheme, during the erase process, disk utility suddenly changes to formatting for "macOS journaled". disk utility has never done that before.

I noticed that as well, although it makes no difference as to the outcome. The drive is still formatted as APFS. I don't know if it ever did it before or not. Not something I paid attention to.

Apr 9, 2022 7:08 AM in response to Owl-53

did that just now. no resolution. still error message "erase process failed". interestingly, after I selected file type APFS and GUID partition map scheme, during the erase process, disk utility suddenly changes to formatting for "macOS journaled". disk utility has never done that before.

Apr 10, 2022 3:27 AM in response to HWTech

thank you for all the detailed info! this was all new to me except that most usb sticks are poor quality and macOS is finicky when something new is attached. macOS can't even handle/ eject its own dvd superdrive. the reviews on apple.com were so bad they removed the review options on their website. all of the terminal commands to unmount as well as manual mouse click options to unmount in disk utility or finder fail and it's always because (device is in use by another program) so I think the usb stick is fine and the erase process worked. but macOS and Disk Utility can never unmount at the end because supposedly some other app is "using it" or the usb stick is "busy" or resource is "not available". I just have to learn to ignore these messages.

Apr 10, 2022 7:26 AM in response to HWTech

I solved it by formatting from Disk Utility in recovery mode. erased the disk without questions. the Mac error was always "cannot unmount because device is in use or used by another resource blablabla" that wasn't true because I wasn't using the disk and had absolutely no apps open/ running. terminal didn't work, nothing. in recovery mode there are no background processes running so erasing and unmounting worked.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

disk utility won't format USB stick to APFS

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