Reformatting a flash drive using terminal
So I have a flash drive that I need to reformat because whenever I plug it in, I get this message:
And I think, "Oh, okay, I'll just head on over to Disk Utility and reformat it. No biggie." Except I nice error that doesn't let me do what I want to.
Next stop, terminal. I've tried as many things as the internet can give me, but to no avail. Here's what I've tried in terminal so far:
Last login: Mon Mar 10 09:20:59 on ttys000
Seans-MacBook-Pro:~ Sean$ diskutil verifyVolume /dev/disk1s1
Started file system verification on disk1s1 PHONE DRIVE
Checking file system
** /dev/disk1s1
** Phase 1 - Preparing FAT
** Phase 2 - Checking Directories
Unable to read directory (Input/output error)
Error: -69845: File system verify or repair failed
Underlying error: 8: POSIX reports: Exec format error
Seans-MacBook-Pro:~ Sean$ diskutil zeroDisk /dev/disk1s1
Error with zero disk erase: Couldn't open disk (-69879)
Seans-MacBook-Pro:~ Sean$ sudo diskutil zeroDisk /dev/disk1s1
Error with zero disk erase: Couldn't open disk (-69879)
Seans-MacBook-Pro:~ Sean$ umount /dev/disk1s1
umount: unmount(/Volumes/PHONE DRIVE): Operation not permitted
Seans-MacBook-Pro:~ Sean$ sudo umount /dev/disk1s1
Seans-MacBook-Pro:~ Sean$ sudo diskutil zeroDisk /dev/disk1s1
Error with zero disk erase: Couldn't open disk (-69879)
Seans-MacBook-Pro:~ Sean$ sudo diskutil reformat /dev/disk1s1
Started erase on disk1s1 PHONE DRIVE
Unmounting disk
Erasing
newfs_msdos: /dev/rdisk1s1: Permission denied
Mounting disk
Error: -69832: File system formatter failed
Seans-MacBook-Pro:~ Sean$ sudo diskutil zeroDisk /dev/disk1
Error with zero disk erase: Couldn't open disk (-69879)
Seans-MacBook-Pro:~ Sean$ diskutil unmountDisk force /Volumes/PHONE DRIVE
Unmount failed for force
Seans-MacBook-Pro:~ Sean$ diskutil zeroDisk force /dev/disk1
Proceed? (y/N) y
Error with zero disk erase: Couldn't open disk (-69879)
Seans-MacBook-Pro:~ Sean$ df
Filesystem 512-blocks Used Available Capacity iused ifree %iused Mounted on
/dev/disk0s2 1459931312 1148156536 311262776 79% 143583565 38907847 79% /
devfs 372 372 0 100% 644 0 100% /dev
localhost:/IAebrDIVbkOPIvtdHV8Xmg 1459931312 1459931312 0 100% 0 0 100% /Volumes/MobileBackups
map -hosts 0 0 0 100% 0 0 100% /net
map auto_home 0 0 0 100% 0 0 100% /home
/dev/disk0s4 491913208 458908112 33005096 94% 396569 16503291 2% /Volumes/BOOTCAMP
/dev/disk1s1 15531784 1672856 13858928 11% 0 0 100% /Volumes/PHONE DRIVE
Seans-MacBook-Pro:~ Sean$ diskutil unmountDisk force /Volumes/PHONE DRIVE
Unmount failed for force
Seans-MacBook-Pro:~ Sean$ diskutil unmountDisk /Volumes/PHONE DRIVE
Usage: diskutil u[n]mountDisk [force] MountPoint|DiskIdentifier|DeviceNode
unmountDisk will operate on all partitions of that disk, and
will do so whether a whole disk or a partition was specified.
Seans-MacBook-Pro:~ Sean$ diskutil unmountDisk /Volumes/PHONE DRIVE
Usage: diskutil u[n]mountDisk [force] MountPoint|DiskIdentifier|DeviceNode
unmountDisk will operate on all partitions of that disk, and
will do so whether a whole disk or a partition was specified.
Seans-MacBook-Pro:~ Sean$ diskutil force /Volumes/PHONE DRIVE
diskutil: did not recognize verb "force"; type "diskutil" for a list
Seans-MacBook-Pro:~ Sean$ diskutil unmountDisk force /Volumes/PHONE DRIVE
Unmount failed for force
Seans-MacBook-Pro:~ Sean$ diskutil umount /Volumes/PHONE DRIVE
Usage: diskutil u[n]mount [force] MountPoint|DiskIdentifier|DeviceNode
If anyone can shed some light on how to successfully erase/reformat a thumb drive that just won't place nice that would be awesome.
MacBook Pro, OS X Mavericks (10.9.2)