{"id":348,"date":"2011-10-22T07:22:39","date_gmt":"2011-10-22T12:22:39","guid":{"rendered":"https:\/\/www.bodhost.com\/blog\/?p=348"},"modified":"2026-02-26T13:59:07","modified_gmt":"2026-02-26T13:59:07","slug":"linux-based-disk-errors-for-badblocks","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/blog\/linux-based-disk-errors-for-badblocks\/","title":{"rendered":"Linux Based Disk Errors For Badblocks"},"content":{"rendered":"<p data-start=\"121\" data-end=\"515\">Linux Disk Errors can be frustrating, especially when caused by badblocks affecting your storage drives. Identifying and resolving these issues promptly is crucial to prevent data loss and maintain system performance.<\/p>\n<p data-start=\"121\" data-end=\"515\">In this guide, we\u2019ll walk you through how to detect badblocks, troubleshoot disk errors, and implement preventive measures to keep your Linux server running smoothly.<\/p>\n<p>Server often face problems with Hard disk drives and one of them is bad blocks. Bad blocks can occur in the HDD due the intensive I\/O reads and I\/0 writes in HDD. To check the Bad blocks in a <a href=\"https:\/\/www.bodhost.com\/web-servers\/self-managed-vps-hosting\" target=\"_blank\" rel=\"noopener\">Linux server<\/a>, following command needs to be executed in the server.<\/p>\n<p>$ badblocks \/dev\/fd0H1<span style=\"color: #000080;\"><span style=\"text-decoration: underline;\">440 1440<\/span><\/span> &gt;<br \/>\nbad\u2212blocks<br \/>\n$ fsck \u2212t ext2 \u2212l bad\u2212blocks<br \/>\n\/dev\/fd0H1440<br \/>\nParallelizing fsck version 0.5a (5\u2212Apr\u221294)<br \/>\ne2fsck 0.5a, 5\u2212Apr\u221294 for EXT2 FS 0.5, 94\/03\/10<br \/>\n<strong><br \/>\nPass 1: <\/strong>Checking inodes, blocks, and sizes<br \/>\n<strong>Pass 2:<\/strong> Checking directory structure<br \/>\n<strong>Pass 3:<\/strong> Checking directory connectivity<br \/>\n<strong>Pass 4: <\/strong>Check reference counts.<br \/>\n<strong>Pass 5:<\/strong> Checking group summary information.<\/p>\n<p>\/dev\/fd0H1440: ***** FILE SYSTEM WAS MODIFIED *****<br \/>\n\/dev\/fd0H1440: 11\/360 files, 63\/1440 blocks<br \/>\n$<\/p>\n<p>If bad blocks display a block which was previously utilized then you can try to transfer the block to other location. If in any case the block was really bad, not just marginal, the data of the file may be corrupted.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux Disk Errors can be frustrating, especially when caused by badblocks affecting your storage drives. Identifying and resolving these issues promptly is crucial to prevent data loss and maintain system performance. In this guide, we\u2019ll walk you through how to detect badblocks, troubleshoot disk errors, and implement preventive measures to keep your Linux server running [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[77],"class_list":["post-348","post","type-post","status-publish","format-standard","hentry","category-web-hosting","tag-linux-server"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts\/348","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/comments?post=348"}],"version-history":[{"count":6,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts\/348\/revisions"}],"predecessor-version":[{"id":7364,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/posts\/348\/revisions\/7364"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/media?parent=348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/categories?post=348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/blog\/wp-json\/wp\/v2\/tags?post=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}