aboutsummaryrefslogtreecommitdiff
path: root/doc/forum/repo_corruption_in_usb_external_drive.mdwn
blob: 989126837e22754214db6bb0cbfae5238fc32777 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
I'm sorry to ask this again, but I'm not being able to find my previous message regarding this issue. I'm finding very hard to find older posts in forums. Is there a way to search for all my posted messages?
Anyway, after some automount problems (changed mount point name), my usb repo (direct) ended in a weird state.
See for instance the screenshot: <http://picpaste.com/git-annex-problem-eZvOl90y.jpg>

In addition making a git-annex info gives the following:

 * repository mode: direct
 * trusted repositories: error: refs/heads/master does not point to a valid object!
 * error: refs/heads/synced/git-annex does not point to a valid object!
 * error: refs/heads/synced/master does not point to a valid object!
 * error: refs/remotes/sapo/annex/direct/master does not point to a valid object!
 * error: refs/remotes/sapo/git-annex does not point to a valid object!
 * error: refs/remotes/sapo/master does not point to a valid object!
 * error: refs/synced/1912d5a7-3929-47f0-8e25-a071d7079cc4/git-annex does not point to a valid object!
 * error: refs/synced/1912d5a7-3929-47f0-8e25-a071d7079cc4/master does not point to a valid object!
 * error: refs/heads/master does not point to a valid object!
 * error: refs/heads/synced/git-annex does not point to a valid object!
 * error: refs/heads/synced/master does not point to a valid object!
 * error: refs/remotes/sapo/annex/direct/master does not point to a valid object!
 * error: refs/remotes/sapo/git-annex does not point to a valid object!
 * error: refs/remotes/sapo/master does not point to a valid object!
 * error: refs/synced/1912d5a7-3929-47f0-8e25-a071d7079cc4/git-annex does not point to a valid object!
 * error: refs/synced/1912d5a7-3929-47f0-8e25-a071d7079cc4/master does not point to a valid object!
 * fatal: index file smaller than expected
 * git-annex: failed to read sha from git write-tree


What should I do? delete the usb repo and start again. Thank god this is just a trial.

What happens if a file gets corrupted. Lets say it is corrupted in repo A, and fine in repo B. Will the good copy be overridden?

git-repair takes a long time and seems to be stuck there, or maybe it just takes a long time (10Gb repo). Is this normal?
    > git-annex repair
    Running git fsck ...
    Initialized empty Git repository in /tmp/tmprepo.1/.git/
    Trying to recover missing objects from remote sapo.
    Unpacking all pack files.
    Unpacking objects: 100% (348848/348848), done.


Thanks in advance.