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 06:46:35 +0000 [thread overview]
Message-ID: <bug-114821-13602-KKDojklqgP@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-114821-13602@https.bugzilla.kernel.org/>
https://bugzilla.kernel.org/show_bug.cgi?id=114821
--- Comment #6 from Lukas <dse.ssd@gmail.com> ---
I agree, the head cycling does seem unlikely to be caused by software. But I'm
confused how can the drive be 'failing' simple reads so often and yet pass
every fitness, including a vendor diagnostic test of every sector...
I cannot create a drive image... It is 4TB in size and I don't have that much
contiguous free storage at my disposal. What I could do is wipe the drive and
re-create the ext4 partition. I have most of the contents backed up. It sounds
like a radical way of testing, but let me know if that's my only option.
In the mean time I've done some more testing. Maybe it will prove useful.
Firstly, I've reproduced the error on Raspbian 8 with 4.1.18-v7+ kernel running
on a different Raspberry Pi device. (Sorry, the kernel is again non-vanilla).
Upon accessing a particular file on the drive, I can hear the head load cycle
and a dmesg ext4 error is logged.
Secondly, I've noticed that most of the ext4 errors are due to smbd and for the
same inode #1523. That inode seems to be accessed quite often whenever I do
anything with the drive.
I ran
$ debugfs -R "ncheck 1523" /dev/sdb1
and determined that the inode holds a single text file in the root directory of
the drive - 'file.txt'. I cannot list or delete this file:
% ls -li
ls: cannot access file.txt: Input/output error
? -????????? ? ? ? ? ? file.txt
$ rm file.txt
rm: cannot remove `file.txt': Input/output error
If I execute
$ debugfs -R 'cat <1523>' /dev/sdb1
it returns nothing and I believe the file should be empty. The command takes a
few minutes to execute, which I don't think is normal too.
I know this sounds even more like hardware problems, but, again, there's
nothing in the SMART attributes, self-tests or vendor diagnostic tests to
support that.
Should I attempt to delete this file using debugfs? Or should I re-create the
partition from scratch? Or should I just get another drive, close this 'bug'
and stop troubleshooting?
--
You are receiving this mail because:
You are watching the assignee of the bug.
next prev parent reply other threads:[~2016-03-20 6:46 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 [this message]
2016-03-20 15:12 ` bugzilla-daemon
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-KKDojklqgP@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).