forum/performance improvement: git on ssd, annex on spindle diskgit-annexhttp://git-annex.branchable.com/forum/performance_improvement__58___git_on_ssd__44___annex_on_spindle_disk/git-annexikiwiki2016-03-12T16:58:09Zcomment 1http://git-annex.branchable.com/forum/performance_improvement__58___git_on_ssd__44___annex_on_spindle_disk/comment_1_b3f22f9be02bc4f2d5a121db3d753ff5/joey2016-03-12T16:58:09Z2011-04-02T17:48:29Z
Either option should work fine, but git gc --aggressive will probably avoid most of git's seeking.
comment 2http://git-annex.branchable.com/forum/performance_improvement__58___git_on_ssd__44___annex_on_spindle_disk/comment_2_f94abce32ef818176b42a3cc860691ae/Richard2016-03-12T16:58:09Z2011-04-02T21:34:24Z
<p>I'll give it a try as soon as I get rid of this:</p>
<pre><code>% git annex fsck
</code></pre>
<p>fatal: index file smaller than expected
fatal: index file smaller than expected
% git status
fatal: index file smaller than expected
%</p>
<p>And no, I am not sure where that is coming from all of a sudden... (it might have to do with a hard lockup of the whole system due to a faulty hdd I tested, but I didn't do anything to it for ages before that lock-up. So meh. Also, this is prolly off topic in here)</p>
<p>Richard</p>
comment 3http://git-annex.branchable.com/forum/performance_improvement__58___git_on_ssd__44___annex_on_spindle_disk/comment_3_0c8e77fe248e00bd990d568623e5a5c9/joey2016-03-12T16:58:09Z2011-04-03T01:48:57Z
<p>For future reference, git can recover from a corrupted index file with <code>rm .git/index; git reset --mixed</code>.</p>
<p>Of course, you lose any staged changes that were in the old index file, and may need to re-stage some files.</p>
comment 4http://git-annex.branchable.com/forum/performance_improvement__58___git_on_ssd__44___annex_on_spindle_disk/comment_4_4b7e8f9521d61900d9ad418e74808ffb/Richard2016-03-12T16:58:09Z2011-04-03T09:03:22Z
Thanks a lot. I tried various howtos around the net, but none of them worked; yours did. (I tried it in one of the copies of the broken repo which I keep around for obvious reasons).
Error with .git/annex as a symlinkhttp://git-annex.branchable.com/forum/performance_improvement__58___git_on_ssd__44___annex_on_spindle_disk/comment_5_7abbbe7db3988a2d239d11b0a4c597e7/stoile2016-03-12T16:58:09Z2013-11-16T12:20:58Z
<p>I had my git annex directory on a ssd and .git/annex on a hdd (using a symlink). I got errors when adding files because a move failed. I forgot to copy the error message. When I had .git/annex/objects on a hdd, everything worked as expected, there were no problems.</p>
<p>So what exactly will go wrong if I only have this one subdirectory on another filesystem?</p>
Bug report answering my questionhttp://git-annex.branchable.com/forum/performance_improvement__58___git_on_ssd__44___annex_on_spindle_disk/comment_6_46bd45fdc25d9c583f4ebe3a9730ab9f/stoile2016-03-12T16:58:09Z2013-11-17T10:28:40Z
My question was answered in <a href="http://git-annex.branchable.com/bugs/not_possible_to_have_annex_on_a_separate_filesystem/">http://git-annex.branchable.com/bugs/not_possible_to_have_annex_on_a_separate_filesystem/</a>.