Skip to content

Instantly share code, notes, and snippets.

@Kyborg2011
Created January 22, 2020 11:28
Show Gist options
  • Save Kyborg2011/fce1b265592c73535533e37525ab6a62 to your computer and use it in GitHub Desktop.
Save Kyborg2011/fce1b265592c73535533e37525ab6a62 to your computer and use it in GitHub Desktop.
Repairing damaged external drive (flash drive) on OS X
# If "Disk Utility" can't erase a demaged disk and throw errors, like these:
# a) "-69888: Couldn't unmount disk";
# b) "Couldn't modify partition map".
# You can repair disk (if it is damaged partially, just by a program error, while changing partition map of a disk in) by
# FULL ERASING OF A DISK - you can do that ONLY in A COMMAND LINE, using "diskutil" command (on OS X)
# 1. Firstly you must get path of a drive in a system, like this:
diskutil list
# Than complete erasing of a disk:
diskutil eraseDisk free EMPTY /dev/disk4
# where "/dev/disk4" is a disk path, gotten on a previous step!
#For more information, you can look to the source of a method: https://discussions.apple.com/thread/8132218
@kashi-mamidisetti
Copy link

Hi, Im not able to erase the data from my pendrive, Im facing Unable to begin erase operation: A writable disk is required (-69772)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment