How to do a Diskpart Clean on OS X

bmoneruxui

Is there a way to perform the equivalent of (Windows') diskpart clean via MacOS X? I have to completely bomb some drives so that they can be formatted correctly in a buffalo Linkstation that I have. However it's posing an issue as it's very picky about what's on the drives before it formats (something I was unaware of when I bought it).

Performing diskutil eraseDisk is good and all, but it forces me to also select a filesystem and volume name. diskpart clean on Windows doesn't do this, and produces a "clean" disk (with no volumes at all), which is what I want.

Daniel B

An easy-to-use, albeit slightly dangerous, method would be to simply overwrite the partition table:

dd if=/dev/zero of=/dev/diskX bs=1m count=2

... where diskX is the disk you want to nuke. Be careful because this command won’t ask.

This writes zeroes to the first 2 MiB, which should be sufficient to remove any and all partitioning schemes and whatnot.

Update: It might also be necessary to nuke the backup GPT table at the end of the disk:

dd if=/dev/zero of=/dev/diskX bs=1m seek=1907727

... with 1907727 being a value for a standard 2 TB consumer drive of I own, which has a total size of 2,000,398,934,016 bytes. I selected 2000398934016 / (1024 * 1024) - 2, discarding any decimal places.

Both count and seek in the command lines above are multiples of the block size bs specified on the same command line.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

OS X에서 Diskpart Clean을 수행하는 방법

분류에서Dev

Undo Diskpart clean

분류에서Dev

How do I view my clipboard history on OS X?

분류에서Dev

What do the readonly attributes in diskpart really mean?

분류에서Dev

How do I clean dust from a computer?

분류에서Dev

How do I reset the login password on a Mac OS X guest OS running in VMware Fusion?

분류에서Dev

Diskpart Clean, 따라서 부팅 할 수 없음

분류에서Dev

Diskpart Clean All은 HDD 수명을 단축합니까?

분류에서Dev

How do I enable snap-to-grid by default on Mac OS X?

분류에서Dev

How to turn off write protection in win 7 using diskpart?

분류에서Dev

diskpart 'clean'및 'convert gpt'명령 후 데이터를 복구 할 수 있습니까?

분류에서Dev

How to change screen resolution on OS X

분류에서Dev

How to correct malfunctioning Terminal in Mac OS X?

분류에서Dev

How to run a script at login/logout in OS X?

분류에서Dev

In Cocoa for OS X, What is "bundle" and what does it do?

분류에서Dev

How to clean /var/cache?

분류에서Dev

How to clean a flooded mailbox

분류에서Dev

diskpart "clean"명령 후 파티션과 데이터를 복원하는 방법은 무엇입니까?

분류에서Dev

"diskpart clean"에서 데이터를 복구하려면 어떻게해야합니까?

분류에서Dev

How to clean a keyboard in Toshiba laptop?

분류에서Dev

How to make clean commits with etckeeper?

분류에서Dev

How can I remap windows and alt keys in OS X?

분류에서Dev

How to change the Mac OS X dock icon in a wxPython application

분류에서Dev

How to use find command in OS X terminal to search for folders?

분류에서Dev

How to I build/compile the latest FFmpeg snapshot for OS X?

분류에서Dev

How can I write space in Terminal on OS X?

분류에서Dev

How to fix Unprotected Private Key file on Mac OS X

분류에서Dev

How to Bridge Two Ethernet Ports on Mac OS X

분류에서Dev

Mac OS X how to verify particular packages are installed

Related 관련 기사

  1. 1

    OS X에서 Diskpart Clean을 수행하는 방법

  2. 2

    Undo Diskpart clean

  3. 3

    How do I view my clipboard history on OS X?

  4. 4

    What do the readonly attributes in diskpart really mean?

  5. 5

    How do I clean dust from a computer?

  6. 6

    How do I reset the login password on a Mac OS X guest OS running in VMware Fusion?

  7. 7

    Diskpart Clean, 따라서 부팅 할 수 없음

  8. 8

    Diskpart Clean All은 HDD 수명을 단축합니까?

  9. 9

    How do I enable snap-to-grid by default on Mac OS X?

  10. 10

    How to turn off write protection in win 7 using diskpart?

  11. 11

    diskpart 'clean'및 'convert gpt'명령 후 데이터를 복구 할 수 있습니까?

  12. 12

    How to change screen resolution on OS X

  13. 13

    How to correct malfunctioning Terminal in Mac OS X?

  14. 14

    How to run a script at login/logout in OS X?

  15. 15

    In Cocoa for OS X, What is "bundle" and what does it do?

  16. 16

    How to clean /var/cache?

  17. 17

    How to clean a flooded mailbox

  18. 18

    diskpart "clean"명령 후 파티션과 데이터를 복원하는 방법은 무엇입니까?

  19. 19

    "diskpart clean"에서 데이터를 복구하려면 어떻게해야합니까?

  20. 20

    How to clean a keyboard in Toshiba laptop?

  21. 21

    How to make clean commits with etckeeper?

  22. 22

    How can I remap windows and alt keys in OS X?

  23. 23

    How to change the Mac OS X dock icon in a wxPython application

  24. 24

    How to use find command in OS X terminal to search for folders?

  25. 25

    How to I build/compile the latest FFmpeg snapshot for OS X?

  26. 26

    How can I write space in Terminal on OS X?

  27. 27

    How to fix Unprotected Private Key file on Mac OS X

  28. 28

    How to Bridge Two Ethernet Ports on Mac OS X

  29. 29

    Mac OS X how to verify particular packages are installed

뜨겁다태그

보관