I have a 512G disk and I want to clear the last 512k bytes at the end of the disk.
I usually clear it by dd if=/dev/zero of=/dev/da0 the whole disk.
Which way is the fastest to do this operation?
migrated from stackoverflow.com Apr 8 '10 at 16:16This question came from our site for professional and enthusiast programmers. |
|||
|
|
|||
|
As already pointed out, Now you need to know the exact size of the disk, if you want to write the last 512kB. On linux, you can use the So the command-line becomes something like:
|
|||||
|
|
Use the |
|||
|
|