{"id":320,"date":"2015-09-03T22:43:18","date_gmt":"2015-09-04T02:43:18","guid":{"rendered":"http:\/\/www.mufljuz.com\/?p=320"},"modified":"2015-09-03T22:43:18","modified_gmt":"2015-09-04T02:43:18","slug":"ext4-hd-recovery","status":"publish","type":"post","link":"https:\/\/www.mufljuz.com\/?p=320","title":{"rendered":"Ext4 HD recovery"},"content":{"rendered":"<p>To check superblock<br \/>\n<code><br \/>\nfsck.ext4 -v \/dev\/sdX1<br \/>\n<\/code><\/p>\n<p>If there is superblock corruption, the above command will output something like this:<br \/>\n<i><br \/>\nThe superblock could not be read or does not describe a correct ext4<br \/>\nfilesystem.  If the device is valid and it really contains an ext4<br \/>\nfilesystem (and not swap or ufs or something else), then the superblock<br \/>\nis corrupt, and you might try running e2fsck with an alternate superblock<br \/>\n<\/i><\/p>\n<p>If there is corruption, find where superblock backups are kept with<br \/>\n<code><br \/>\nmke2fs -n \/dev\/sdX1<br \/>\n<\/code><br \/>\n<i><br \/>\nSuperblock backups stored on blocks:<br \/>\n32768, 98304, 163840, 229376, 294912, 819200, 884736, 160563<br \/>\n<\/i><\/p>\n<p>Use backup to recreate superblock:<br \/>\n<code><br \/>\ne2fsck -b 32768 \/dev\/sdX1<br \/>\n<\/code><\/p>\n<p>In case of journal corruption, mount disk as read only<br \/>\n<code><br \/>\nmount -o ro,noload \/dev\/sdX1 \/mnt\/storage_tmp\/<br \/>\n<\/code><\/p>\n<p>Create backup and replace the failing drive ASAP!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To check superblock fsck.ext4 -v \/dev\/sdX1 If there is superblock corruption, the above command will output something like this: The superblock could not be read or does not describe a correct ext4 filesystem. If the device is valid and it really contains an ext4 filesystem (and not swap or ufs or something else), then the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=\/wp\/v2\/posts\/320"}],"collection":[{"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=320"}],"version-history":[{"count":3,"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=\/wp\/v2\/posts\/320\/revisions"}],"predecessor-version":[{"id":323,"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=\/wp\/v2\/posts\/320\/revisions\/323"}],"wp:attachment":[{"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.mufljuz.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}