linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: bugzilla-daemon@bugzilla.kernel.org
To: linux-ext4@kernel.org
Subject: [Bug 196677] fsck.ext4: unable to set superblock flags, even after mounting ok
Date: Fri, 18 Aug 2017 02:24:31 +0000	[thread overview]
Message-ID: <bug-196677-13602-AbeEpv0OUC@https.bugzilla.kernel.org/> (raw)
In-Reply-To: <bug-196677-13602@https.bugzilla.kernel.org/>

https://bugzilla.kernel.org/show_bug.cgi?id=196677

Adam Nielsen (a.nielsen@shikadi.net) changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #2 from Adam Nielsen (a.nielsen@shikadi.net) ---
Just to follow up on this, after performing a couple of troubleshooting steps
suggested by Ted, it became apparent that the SD card containing the ext4
filesystem has become read only.

Writes succeed without error, but the original data is always returned
unmodified.

For the benefit of anyone else finding their way here, I was able to verify the
problem by making a copy of the filesystem on another device and running fsck
on the copy, which succeeded.

To avoid needing a lot of disk space for the copy, I used e2image to copy the
metadata into a sparse file:

$ e2image -r /dev/sdb2 sdb2.e2i
e2image 1.43.4 (31-Jan-2017)

$ fsck.ext4 sdb2.e2i
e2fsck 1.43.4 (31-Jan-2017)
sdb2.e2i: recovering journal
Setting free inodes count to 902960 (was 903626)
Setting free blocks count to 2918014 (was 2920347)
sdb2.e2i: clean, 69984/972944 files, 967554/3885568 blocks

This only took 180MB of on-disk space instead of the full 15GB.

So the underlying cause of this bug is a hardware failure on the SD card.  It
appears to have gone into some sort of failsafe read-only mode, but
unfortunately it doesn't reject write operations, it just discards them.  This
means the host (and also the user, thanks to caching) does not realise there is
a problem unless, like fsck, a program does a verify-after-write and reveals
the issue.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.

      parent reply	other threads:[~2017-08-18  2:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-16  8:14 [Bug 196677] New: fsck.ext4: unable to set superblock flags, even after mounting ok bugzilla-daemon
2017-08-16 13:49 ` [Bug 196677] " bugzilla-daemon
2017-08-18  2:24 ` bugzilla-daemon [this message]

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-196677-13602-AbeEpv0OUC@https.bugzilla.kernel.org/ \
    --to=bugzilla-daemon@bugzilla.kernel.org \
    --cc=linux-ext4@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).