Cannot unmount rclone mount

What is the problem you are having with rclone?

Rclone is not unmounting a remote on a ctrl-c/SIGINT. Upon trying to use fusermount -u /mnt/vault/ I get another error, posted below.

What is your rclone version (output from rclone version)

v1.48.0

Which OS you are using and how many bits (eg Windows 7, 64 bit)

Debian 64-bit

Which cloud storage system are you using? (eg Google Drive)

Google Drive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

root@omvdocker:/mnt# rclone mount vault: /mnt/vault/
^C 2019/09/03 21:06:05 Fatal error: failed to umount FUSE fs: exit status 1: fusermount: failed to unmount /mnt/vault: Device or resource busy

root@omvdocker:/mnt# fusermount -u /mnt/vault/
fusermount: failed to unmount /mnt/vault: Device or resource busy

A log from the command with the -vv flag (eg output from rclone -vv copy /tmp remote:tmp)

NA, see above.

1 Like

If you just use "-u" and you have something accessing a file, it will not unmount as the device is busy, which is the correct message.

'If you use -uz, it'll unmount and kill the process once the filesystem is not in use:

felix@gemini:~$ cd /Test
felix@gemini:/Test$ fusermount -u /Test
fusermount: failed to unmount /Test: Device or resource busy
felix@gemini:/Test$
felix@gemini:/Test$
felix@gemini:/Test$ fusermount -uz /Test
felix@gemini:/Test$ ps -ef | grep "Test"
felix     7256  7192  0 04:06 pts/0    00:00:00 rclone mount gcrypt: /Test
felix     7491  7361  0 04:07 pts/1    00:00:00 grep --color=auto Test
felix@gemini:/Test$ cd
felix@gemini:~$ ps -ef | grep Test
felix     7510  7361  0 04:07 pts/1    00:00:00 grep --color=auto Test
felix@gemini:~$

If you kill the process, you do have to clean it up:

felix@gemini:~$ cd /Test
-bash: cd: /Test: Transport endpoint is not connected
felix@gemini:~$ fusermount -uz /Test
felix@gemini:~$
felix@gemini:~$ cd /Test
felix@gemini:/Test$ ls
felix@gemini:/Test$ cd
felix@gemini:~$ cd /Test
felix@gemini:/Test$ ls
1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.