Nils Asmussen wrote: > the setup is as follows: I have two computers. Using the git-annex webapp, I > set up a usb dongle to sneakernet files between them. > Whenever I connect the usb dongle to one of the computers, the files are > transferred as expected. > > But: When I then try to unmount the usb device, I get an error message. The > device cannot be unmounted because it still has opened files. > I expect to be able to unmount the device without problems after the transfer > has completed.
> The files are held open by > $ ps 14141 > PID TTY STAT TIME COMMAND > 14141 ? SN 0:00 git --git-dir=/media/nils/USB/annex cat-file > --batch It seems to me that you have configured the git-annex assistant to run in the repository in your USB device. Since it's a daemon, it will necessarily keep files open on the device and so prevent it from being unmounted. That's why this is not a recommended configuration. Intead, the way it's supposed to work is that you run the git-annex assistant in only the repository located on your computer. It will then notice when the USB device is connected and take care of syncing with it. To fix your configuration, you can edit ~/.config/git-annex/autostart and remove the line for /media/nils/USB/annex. -- see shy jo
signature.asc
Description: Digital signature