I have encrypted directory remote on a usb drive over time it accumulated some unused files. I would like to drop them running,
git annex --unused --from external
returns a list of unused files when I try to drop them with,
git annex dropunused --force --from external 1-XX
I get,
dropunused XX (from external...) failed
I can not seem to get rid of these files.
One reason it might fail (especially if it's not printing any useful message beyond "(failed)") is if it thought the file was present in the repositort, but something has happened to it.
So, I suggest you try:
git annex fsck --from external
Followed by dropping again.
If that doesn't help, I'd recommend stracing the dropping of one of the unused files, and see what's going wrong toward the end.
I've tried,
and
did not solve the problem. Running,
tail of strace produces,
I see you're using encryption. That could have something to do with the problem. Which type of encryption was used for this special remote? encryption=shared or one of the other options?
Look through the whole strace output for attempts to access the directory special remote and show those. Or put up the full strace somewhere.