在Mac OS X上擦拭整个USB驱动器 [英] Wiping entire usb drive on Mac OS X

查看:213
本文介绍了在Mac OS X上擦拭整个USB驱动器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Apple终端是否有命令蛮力擦除USB闪存驱动器上的所有内容,包括所有分区,主引导记录和数据?

Is there a command for the apple terminal to brute force a wipe of everything including all partitions, master boot records, and data on a usb flash drive?

有关情况的一些信息:
我只是从一个朋友那里得到了一根棍子,它似乎已经损坏了,但这不是身体上的缺陷.我猜想他只是在格式化时就卸下了棍子.

Just a little information about the situation:
I just got a stick from a friend which seems to be damaged but it isnt a physical defect. I guess he just removed the stick while formatting or so.

我已经尝试使用Mac Disc Utility重新分区,重新格式化和擦除该记忆棒,并尝试在Windows上对其进行格式化.它什么都没用,所以我决定使用终端机(我只是习惯了终端机/bash,所以我是一个完全的新手),并尝试了命令(所有命令都带有sudo和diskutil),repairDisk,reformat ,partitionDisk,easeDisk或zeroDisk,但没有任何效果.我现在收到此错误消息:错误:-69759:安全擦除数据以防止恢复失败 潜在错误:5:POSIX报告:输入/输出错误

I already tried to repartition, reformat and erase the stick with the Mac Disc Utility and I tried to format it on windows. Nothing of it worked, so I decided to use terminal for it (im just getting used to terminal/bash, so im a complete newbie at this) and tried the commands (all with sudo and diskutil in front of them ofc) repairDisk, reformat, partitionDisk, eraseDisk or zeroDisk, but nothing worked. Im getting this error message now: Error: -69759: Securely erasing data to prevent recovery failed Underlying error: 5: POSIX reports: Input/output error

所以我现在最后的想法是,我必须清理该驱动器中的所有内容,因为看起来有些破损程度很低,我认为完全擦除它会导致我的diskutil安装一个全新的分区方案以及驱动器上的所有内容,使其最终将再次开始工作.

So my final thought is now that I have to clean everything from this drive as it seems there is something broken on a very low level and i would assume that completely wiping it will result in my diskutil to install a complete new partition scheme and everything on the drive so it will eventually start working again..

谢谢大家!

屏幕截图:

推荐答案

如果您 CERTAIN 是disk3,请在终端中尝试以下操作:

Try this in Terminal if you are CERTAIN it is disk3:

sudo dd if=/dev/zero of=/dev/rdisk3 bs=65536 count=1000

如果显示磁盘正忙,请使其不忙!

If it says the disk is busy, make it un-busy!

sudo diskutil unmountDisk /dev/disk3

这篇关于在Mac OS X上擦拭整个USB驱动器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆