Disk Utility (macOS Catalina 10.15.2) fails to erase my USB drive (64GB key, currently formatted in exFAT).
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *64.1 GB disk2
1: EFI EFI 209.7 MB disk2s1
2: Microsoft Basic Data Lexar 63.9 GB disk2s2
I've tried a bunch of commands that I've found here and there in the terminal, but none of them worked, like:
➜ ~ diskutil eraseVolume exFAT MyName /dev/disk2
Started erase on disk2
Unmounting disk
Error: -69888: Couldn't unmount disk
➜ ~ diskutil eraseVolume exFAT MyName /dev/disk2s2
Started erase on disk2s2 Lexar
Unmounting disk
Erasing
Error: -69760: Unable to write to the last block of the device
➜ ~ diskutil eraseDisk FAT32 MYSD MBRFormat /dev/disk2
Started erase on disk2
Unmounting disk
Creating the partition map
Error: -69877: Couldn't open device
➜ ~ diskutil eraseDisk free EMPTY /dev/disk2
Started erase on disk2
Unmounting disk
Creating the partition map
Error: -69877: Couldn't open device
My USB drive appears as read only when i do CMD+I, I tried repairing the permissions but that failed too.
➜ ~ diskutil resetUserPermissions /dev/disk2 `id -u`
Ready to reset user permissions on disk2
Error encountered attempting to reset permissions for user 501 home directory on disk2: Permissions are not enabled on the disk (-69861)
Thx in advance for the help :)
pbcopy
. For exampledisktutil list | pbcopy
, then edit the original question with the info you just captured. Don't forget to format it!