{"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