{"id":2908,"date":"2023-10-23T15:46:21","date_gmt":"2023-10-23T15:46:21","guid":{"rendered":"https:\/\/voodoo.business\/?p=2908"},"modified":"2024-01-16T21:49:44","modified_gmt":"2024-01-16T21:49:44","slug":"linux-badblocks-cheat-sheet","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2023\/10\/23\/linux-badblocks-cheat-sheet\/","title":{"rendered":"Linux badblocks cheat sheet"},"content":{"rendered":"\n<p>1- Large disks need to have their block size specified, without it, disks like my 6TB and my 8Tb hard drives will not work, badblocks will report the following error.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">badblocks: Value too large for defined data type invalid end block (5860522584): must be 32-bit value<\/pre>\n\n\n\n<p>So the solution is to add the block size, like the following for example (<strong>This one is destructive<\/strong>)<\/p>\n\n\n\n<p>badblocks -b 4096 -wsv \/dev\/sdb<\/p>\n\n\n\n<p>It is a good idea to LOG THE BAD SECTORS (<strong>this is the command i usually use for a destructive test)<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">badblocks -b 4096 -o \/root\/badblockslog.txt -wsv \/dev\/sdb<\/pre>\n\n\n\n<p>In the command above, the W means do a destructive red-write test, the S is for show progress, and the V is for show the errors you encounter, the -o flowed by a file name is where to keep the log file<\/p>\n","protected":false},"excerpt":{"rendered":"<p>1- Large disks need to have their block size specified, without it, disks like my 6TB and my 8Tb hard drives will not work, badblocks will report the following error. badblocks: Value too large for defined data type invalid end block (5860522584): must be 32-bit value So the solution is to add the block size, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,9],"tags":[],"class_list":["post-2908","post","type-post","status-publish","format-standard","hentry","category-hard-disks","category-pc-hardware"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/2908","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=2908"}],"version-history":[{"count":2,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/2908\/revisions"}],"predecessor-version":[{"id":3247,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/2908\/revisions\/3247"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=2908"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=2908"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=2908"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}