dyne / tomb

the Crypto Undertaker
https://dyne.org/software/tomb
GNU General Public License v3.0
1.34k stars 153 forks source link

fsck error "UNEXPECTED INCONSISTENCY" #444

Closed sinux-l5d closed 2 years ago

sinux-l5d commented 2 years ago

Hi, I recently reinstalled tomb to open an old tomb. But it seems that the FS is corrupted, as a "UNEXPECTED INCONSISTENCY" come up with a clue asking to run fsck.

tomb  .  Checking filesystem via /dev/loop1
fsck de util-linux 2.38.1
Error reading block 2129920 (invalid argument). 

save: UNEXPECTED INCONSISTENCY ; RUN fsck MANUALY.
        (i.e., without -a or -p options)
mount: /run/media/sinux/saves: wrong filesystem type, wrong option, wrong superblock on /dev/mapper/tomb.saves.00830ec7decbefa56ce6caa4c27b2a1fa8ef766aaf81dfb80af912f07ab35f16.loop1, missing code page or helper program, or other error.
       dmesg(1) may have more information after a failed mount system call.
tomb [W] Error mounting tomb.saves.00830ec7decbefa56ce6caa4c27b2a1fa8ef766aaf81dfb80af912f07ab35f16.loop1 on /run/media/sinux/saves
tomb [W] Are mount options 'rw,noatime,nodev' valid?
tomb [E] Cannot mount saves

(translated from french)

tomb -v:

  Tomb 2.9.0 - a strong and gentle undertaker for your secrets

   Copyright (C) 2007-2021 Dyne.org Foundation, License GNU GPL v3+
   This is free software: you are free to change and redistribute it
   For the latest sourcecode go to <http://dyne.org/software/tomb>

   This source code is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
   When in need please refer to <http://dyne.org/support>.

  System utils:

(pinentry-gtk-2:58937): Gtk-WARNING **: 22:32:39.919: Unable to locate theme engine in module_path: "adwaita",
  zsh 5.9 (x86_64-pc-linux-gnu)
  Sudo version 1.9.11p3
  cryptsetup 2.5.0 flags: UDEV BLKID KEYRING KERNEL_CAPI 
  pinentry-gtk2 (pinentry) 1.2.0
  findmnt de util-linux 2.38.1
  gpg (GnuPG) 2.2.39 - key forging algorithms (GnuPG symmetric ciphers):
  IDEA 3DES CAST5 BLOWFISH AES AES192 AES256 TWOFISH CAMELLIA128 CAMELLIA192 CAMELLIA256

  Optional utils:

  /usr/bin/gettext
  dcfldd not found
  /usr/bin/shred
  steghide not found
  /usr/bin/resize2fs
  tomb-kdb-pbkdf2 not found
  /usr/bin/qrencode
  swish-e not found
  unoconv not found
  /usr/bin/lsof

I was wondering how to run fsck manually? Have you ever had this issue before?

Narrat commented 2 years ago

Personally I didn't ran into such an issue. Regarding how to solve this. You could try to open the tomb the manual way. See this from the README

Edit: You don't need to completly follow it. Just that you can run fsck on it, which should be possible after the cryptsetup luksOpen command