![]() ![]() ![]() You could even accomplish this with cat as well. dd will stop when it encounters the end of the file, the end of the file being the end of the disk. We’ve omitted the bs and count options because when writing through a whole disk, they are unnecessary. for i in $( seq 0 2 ) do dd if=/dev/urandom of=/dev/sda done A for loop is handy for this drive wiping process, else you would need to intervene manually and repeat it as necessary, hardly efficient. ![]() Alright, what if you want to securely erase an entire drive? Well, you can still do that with dd, all you need to do is change your input from /dev/zero to /dev/random or /dev/urandom and then run it through however many passes you believe is sufficiently secure. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |