aboutsummaryrefslogtreecommitdiff
path: root/doc/forum/git_annex_file_content_replaced_with_symlink_content.mdwn
blob: 654a1af9e2ab06a1f95ac15eb2f68e3241e03780 (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
I have a git-annex repository on a USB drive (full of pictures), however, when I go to the actual drive:

    $ cd /run/media/hinmanm/MINIDRIVE1/pics
    $ ls -lh australia-2014-03

I get:

    -rw-r--r--. 1 hinmanm hinmanm 1.1K Aug 22  2015 IMG_20140321_181130.jpg
    -rw-r--r--. 1 hinmanm hinmanm 1.1K Aug 22  2015 IMG_20140321_181137.jpg
    -rw-r--r--. 1 hinmanm hinmanm 1.1K Aug 22  2015 IMG_20140321_181221.jpg
    -rw-r--r--. 1 hinmanm hinmanm 1.1K Aug 22  2015 IMG_20140321_181228.jpg
    -rw-r--r--. 1 hinmanm hinmanm 1.1K Aug 22  2015 IMG_20140321_181233.jpg
    ... hundreds more .jpg files that are all 1.1K ...

It looks like the files think they are symlinks, instead of pictures:

```
$ cat australia-2014-03/IMG_20140321_181233.jpg
XSym
0201
2ac7522707415dfe67ad5afa1ab3e516
../.git/annex/objects/5F/Xw/SHA256E-s2499217--ad9525adf9a82e4ac83c89fd2bddfd2b2aef690ccbbddf38d91abc85f72509f6.jpg/SHA256E-s2499217--ad9525adf9a82e4ac83c89fd2bddfd2b2aef690ccbbddf38d91abc85f72509f6.jpg
```

Running `git-annex fsck` doesn't do anything, and trying to do `git-annex indirect` gives me:

```
$ git-annex indirect                                  
git-annex: This repository seems to be on a crippled filesystem, you must use direct mode.
```

It looks like there is still a bunch of data in `.git/annex`, as its 6.7gb. Is there a way I can get the files back and get git-annex working again, right now none of my photos are available :(