{"id":132,"date":"2017-05-09T20:57:06","date_gmt":"2017-05-09T18:57:06","guid":{"rendered":"http:\/\/bastardo.de\/?p=132"},"modified":"2017-05-09T20:57:06","modified_gmt":"2017-05-09T18:57:06","slug":"verify-read-and-write-sectors-at-a-harddisk-for-example-after-wipe","status":"publish","type":"post","link":"https:\/\/bastardo.de\/index.php\/2017\/05\/09\/verify-read-and-write-sectors-at-a-harddisk-for-example-after-wipe\/","title":{"rendered":"verify (read and write) sectors at a harddisk ( for example after wipe )"},"content":{"rendered":"<p>Hello<\/p>\n<p>the last days i have wiped a harddisk with a nwipe.<br \/>\nnow i want to test if the sectors are correct overwritten with random data or better at the end with the blanking pass.<\/p>\n<p>to do that i have used<\/p>\n<pre class=\"brush:bash\">root@host:~$ dd if=\/dev\/sda of=testSector count=1 bs=512 skip=848234\nroot@host:~$ ls -lah testSector \n-rw-r--r-- 1 root root 512 Mai 9 20:51 testSector\n\n<\/pre>\n<p>where\u00a0<strong>848234<\/strong> is the <strong>Sector Number<\/strong> in that example<\/p>\n<p>the result is<\/p>\n<pre class=\"brush:bash\">root@host:~$ cat testSector | od -o\n0000000 000000 000000 000000 000000 000000 000000 000000 000000\n*\n0001000<\/pre>\n<p>that means the disk is at that sector successfully blanked \ud83d\ude09<\/p>\n<p>&nbsp;<\/p>\n<p>Hint: to write some random data to this sector you can use the seek option<\/p>\n<pre class=\"brush:bash\">dd if=\/dev\/urandom of=\/dev\/sda \u00a0count=1 bs=512 seek=848234\n<\/pre>\n<pre class=\"brush:bash\">root@host:~$ dd if=\/dev\/urandom of=\/dev\/sda count=1 bs=512 seek=84234\n1+0 Datens\u00e4tze ein\n1+0 Datens\u00e4tze aus\n512 bytes copied, 0,000171533 s, 3,0 MB\/s\nroot@host:~$ dd if=\/dev\/sda of=testSector count=1 bs=512 skip=848234\nroot@host:~$ cat testSector | od -o\n0000000 152264 101766 076373 004631 135374 176667 050103 073263\n0000020 003573 113101 054520 134473 050305 161767 062320 122631\n0000040 112241 040731 164452 151325 110756 103712 122175 007127\n0000060 106677 111246 151736 134123 070055 071502 127052 006733\n0000100 016462 140063 106340 075113 135236 040731 070540 050634\n0000120 120725 012544 137356 004304 135025 077212 037105 063232\n0000140 017500 020745 164012 066752 117227 034401 102106 002367\n0000160 043327 102742 100723 021743 104661 175100 167331 121240\n0000200 161230 165423 021265 031457 053316 140015 007725 136412\n0000220 100223 067136 166016 042721 046442 002012 121731 024135\n0000240 044776 050324 126152 127215 057712 041523 113266 024335\n0000260 016362 000614 135326 162237 055575 117146 014014 116267\n0000300 004072 173014 122470 135151 122400 041037 100437 151255\n0000320 162432 103334 023300 074714 056124 016406 007221 032507\n0000340 121605 047133 027122 030424 137170 123053 103476 161352\n0000360 063070 052450 111541 022277 015016 113155 027252 147123\n0000400 131134 031073 117501 126474 047361 041560 013720 073711\n0000420 024352 117055 016246 054663 172336 036371 027345 020214\n0000440 160543 152253 010601 115263 176535 106513 112731 150711\n0000460 146652 032205 156223 173052 070052 120633 160266 057257\n0000500 175317 177705 063171 004156 075675 115245 072707 165572\n0000520 011106 075707 062765 035245 042650 121131 036537 110032\n0000540 077717 112056 160525 132765 054451 033665 116436 003052\n0000560 030666 137100 072461 047316 034617 176217 013447 012607\n0000600 006055 010351 010703 010537 050256 132356 147016 016417\n0000620 017170 015713 035343 026253 047034 036250 165207 107541\n0000640 005664 044402 073542 051567 060003 044253 152435 063107\n0000660 033037 101026 012541 130057 021666 124712 106530 065053\n0000700 026762 166473 122303 140272 054466 135251 107330 142724\n0000720 075672 047672 003550 136406 100752 004503 013000 074173\n0000740 160230 167304 126156 043055 042616 035035 127507 170670\n0000760 167460 155627 013361 033221 101157 100050 130744 112503\n0001000\n<\/pre>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello the last days i have wiped a harddisk with a nwipe. now i want to test if the sectors are correct overwritten with random data or better at the end with the blanking pass. to do that i have used root@host:~$ dd if=\/dev\/sda of=testSector count=1 bs=512 skip=848234 root@host:~$ ls -lah testSector -rw-r&#8211;r&#8211; 1 root [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-132","post","type-post","status-publish","format-standard","hentry","category-allgemein"],"_links":{"self":[{"href":"https:\/\/bastardo.de\/index.php\/wp-json\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bastardo.de\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bastardo.de\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bastardo.de\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bastardo.de\/index.php\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":0,"href":"https:\/\/bastardo.de\/index.php\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"wp:attachment":[{"href":"https:\/\/bastardo.de\/index.php\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bastardo.de\/index.php\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bastardo.de\/index.php\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}