{"id":346,"date":"2014-10-30T12:08:06","date_gmt":"2014-10-30T12:08:06","guid":{"rendered":"http:\/\/installingcats.com\/?p=346"},"modified":"2014-10-30T12:08:06","modified_gmt":"2014-10-30T12:08:06","slug":"securely-delete-linux-server","status":"publish","type":"post","link":"https:\/\/installingcats.com\/2014\/10\/30\/securely-delete-linux-server\/","title":{"rendered":"Securely Delete Linux Server"},"content":{"rendered":"

Shutting down and deleting a Linux server securely – overwrite disk data using:<\/p>\n

dd if=\/dev\/zero of=\/dev\/sdXXX bs=1048576<\/p>\n

where sdXXX is found by using<\/p>\n

df<\/p>\n

which returns something like<\/p>\n

Filesystem 1K-blocks Used Available Use% Mounted on
\n\/dev\/xvda 98438788 29142068 64296324 32% \/
\nvarrun 524288 44 524244 1% \/var\/run
\nvarlock 524288 4 524284 1% \/var\/lock
\nudev 524288 52 524236 1% \/dev
\ndevshm 524288 0 524288 0% \/dev\/shm<\/p>\n

In this case for me my main disk partition containing my data would be \/dev\/xvda that I want to delete so the command to securely delete a disk (overwriting with zeroes)<\/p>\n

dd if=\/dev\/zero of=\/dev\/xvda bs=1048576<\/p>\n

For more information on this process, check out this great article on\u00a0using dd to securely erase disks on Linux<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"

Shutting down and deleting a Linux server securely – overwrite disk data using: dd if=\/dev\/zero of=\/dev\/sdXXX bs=1048576 where sdXXX is found by using df which returns something like Filesystem 1K-blocks Used Available Use% Mounted on \/dev\/xvda 98438788 29142068 64296324 32% \/ varrun 524288 44 524244 1% \/var\/run varlock 524288 4 524284 1% \/var\/lock udev 524288 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts\/346"}],"collection":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/comments?post=346"}],"version-history":[{"count":0,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/posts\/346\/revisions"}],"wp:attachment":[{"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/media?parent=346"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/categories?post=346"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/installingcats.com\/wp-json\/wp\/v2\/tags?post=346"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}