#297 e2fsck -n tries to write

closed-fixed
Theodore Ts'o
e2fsck (61)
5
2012-02-21
2011-11-28
Bodo Thiesen
No

root@feld-bert:/home/markus# LANG=C e2fsck -n -C0 /dev/dm-1
e2fsck 1.42-WIP (16-Oct-2011)
e2fsck: Group descriptors look bad... trying backup blocks...
Error writing block 1 (Attempt to write block to filesystem resulted in short write). Ignore error? no
[more errors of this kind]
e2fsck: Device or resource busy while trying to open /dev/dm-1
Filesystem mounted or opened exclusively by another program?

1. e2fsck should not try to write when using -n.
2. ignore error is not a question to be answered with "no" when using -n but with "yes" instead.
3. I do not know what that "Device or resource busy" error is about (someone else reported that problem on ext3-users@redhat.com, I'm merely relaying that bug report), but it doesn't matter either: -n means don't write and reading worked obviously.

Regards, Bodo

Full log @ http://pastebin.com/raw.php?i=x0siBmrj

Discussion

  • Bodo Thiesen
    Bodo Thiesen
    2011-11-28

    Maybe I should add that it's about an ext4 file system.

     
  • Theodore Ts'o
    Theodore Ts'o
    2012-02-21

    Thanks for reporting this; I've checked in a fix into the e2fsprogs git tree, and it will be in the next release of e2fsprogs.

     
  • Theodore Ts'o
    Theodore Ts'o
    2012-02-21

    • status: open --> closed-fixed