From: bugzilla-daemon@bugzilla.kernel.org
To: linux-ext4@vger.kernel.org
Subject: [Bug 114821] Frequent and recurring ext4 "bad header invalid magic" errors on a healthy drive
Date: Sun, 20 Mar 2016 15:12:38 +0000 [thread overview]
Message-ID: <bug-114821-13602-RA56Ty4zjS@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-114821-13602@https.bugzilla.kernel.org/>
https://bugzilla.kernel.org/show_bug.cgi?id=114821
Andreas Dilger <adilger.kernelbugzilla@dilger.ca> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |adilger.kernelbugzilla@dilg
| |er.ca
--- Comment #7 from Andreas Dilger <adilger.kernelbugzilla@dilger.ca> ---
Probably better than deleting the file, which would just release the bad
block(s) to be allocated by some other file, is to use "debugfs -c -R 'stat
<1523>' /dev/sdb1" to list the blocks allocated to the file, and then run
"badblocks" to mark those blocks bad. This might also be the inode block that
is bad, which you could tell by listening for the head jump when you run
"debugfs stat" on the inode. I don't think ext4 or e2fsck currently handles
bad blocks in the middle of the inode table, though I guess they could by
permanently marking those inodes allocated when parsing the bad block numbers.
One way to check which is the bad block(s), if it isn't the inode itself, is
once you isolate the file's block number(s) is to run "dd if=/dev/sdb1
of=/dev/null bs=4k count=1 skip={blocknr}" one at a time for each block and
listen for the head jump. This may be complicated by readahead in both the
drive and the kernel, so it may be better to do this from higher to lower block
numbers.
--
You are receiving this mail because:
You are watching the assignee of the bug.
next prev parent reply other threads:[~2016-03-20 15:12 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-17 5:05 [Bug 114821] New: Frequent and recurring ext4 "bad header invalid magic" errors on a healthy drive bugzilla-daemon
2016-03-17 7:38 ` [Bug 114821] " bugzilla-daemon
2016-03-18 5:17 ` bugzilla-daemon
2016-03-18 5:17 ` bugzilla-daemon
2016-03-18 5:18 ` bugzilla-daemon
2016-03-18 22:46 ` bugzilla-daemon
2016-03-20 6:46 ` bugzilla-daemon
2016-03-20 15:12 ` bugzilla-daemon [this message]
2016-03-20 20:50 ` bugzilla-daemon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-114821-13602-RA56Ty4zjS@https.bugzilla.kernel.org/ \
--to=bugzilla-daemon@bugzilla.kernel.org \
--cc=linux-ext4@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).