forum/How do you know when something fails a fsck?git-annexhttp://git-annex.branchable.com/forum/How_do_you_know_when_something_fails_a_fsck__63__/git-annexikiwiki2013-11-27T22:47:37Zcomment 1http://git-annex.branchable.com/forum/How_do_you_know_when_something_fails_a_fsck__63__/comment_1_1c14981916dd55376d5e9f95023556cb/Justin2013-11-27T22:47:37Z2013-06-10T14:23:25Z
<pre><code>justin@box:/tmp/f$ git init
Initialized empty Git repository in /tmp/f/.git/
justin@box:/tmp/f$ git-annex init
init ok
(Recording state in git...)
justin@box:/tmp/f$ cp /etc/motd .
justin@box:/tmp/f$ git-annex add .
add motd (checksum...) ok
(Recording state in git...)
justin@box:/tmp/f$ git-annex fsck
fsck motd (checksum...) ok
justin@box:/tmp/f$ chmod +w motd
justin@box:/tmp/f$ echo hi >> motd
justin@box:/tmp/f$ git-annex fsck
fsck motd
Bad file size (3 B larger); moved to /tmp/f/.git/annex/bad/SHA256-s354--2e724dde1a5dc33bc15580b2aef1ee541ca8047d746fff9bb7917062b871c0bf
** No known copies exist of motd
failed
(Recording state in git...)
git-annex: fsck: 1 failed
</code></pre>
<p>You can also use fsck -q which will only show errors.</p>