2

I am trying to unmount google-drive-ocamlfuse. I entered the following command:

fusermount -u ~/google-drive

it returns:

fusermount: entry for /home/<user_name>/google-drive not found in /etc/mtab

What is wrong and how to fix it?

In general how can I uninstall ocamlfuse

user1700890
  • 265
  • 3
  • 4
  • 10

2 Answers2

4

Because you need mount folder first (in /home/user_name/google-drive):

# mount
google-drive-ocamlfuse ~/google-drive

An them umount:

# umount
fusermount -u ~/google-drive

PD: I recommend changing the name of the folder without symbols. Maybe "gdrive" or another similar

/home/user_name/gdrive

And it's even better to use a bash script described in the post Share Google Drive in Samba

#!/bin/sh
# replace "user" with yout username unix account
MYUSER="user"
# replace "gdrive" with your (path) GoogleDrive Folder
GD="/home/$MYUSER/gdrive"

case "$1" in
  start)
    echo 'Mount Google Drive...'
    # Optional (If the folder does not exist)
    if [ ! -d $GD ]; then mkdir -p $GD && chmod 777 $GD; fi
    google-drive-ocamlfuse $GD
    echo "OK"
    exit
  ;;
  stop)
    echo 'Umount Google Drive...'
    fusermount -u $GD
    echo "OK"
    exit
  ;;
  *)
  echo "Usage: ./gdmu {start|stop}"
 exit 1
 ;;
 esac
 exit 0

Save as bash gdriveini (or any name you want) and execute (don't forget chmod +x gdriveini):

 ./gdriveini start
 ./gdriveini stop
acgbox
  • 2,200
  • This is not an answer. I have the same problem and I can't unmount the drive – smartmouse Nov 10 '19 at 11:49
  • @smartmouse Have you tried the solution? Keep in mind that this is a recurring problem with fuse, no matter the application that uses it. Sometimes it happens when we pass a file to the cloud and cancel the operation before finishing or sometimes for other reasons. The point is that this application (or any other one that uses fuse) is not very reliable – acgbox Nov 11 '19 at 16:49
  • I have not dash or other symbols in the name of folder and I have just mounted and then tried to unmount the drive. I didn't any operation on files. – smartmouse Nov 12 '19 at 09:01
  • What message is displayed when you try to disassemble? (PD: please read this post https://www.maravento.com/2018/11/compartir-google-drive-con-samba.html) – acgbox Nov 12 '19 at 13:36
  • What do you mean for "disasseble"? If you mean unmounting I get the same error described in the question. The post you linked is hard to use since the quoted commands are plenty of spaces! – smartmouse Nov 14 '19 at 13:14
  • Sorry for my english. Use script above to mount/unmount gdrive – acgbox Nov 15 '19 at 15:48
0

sudo rm -rf ~/.gdfuse

sudo rm -rf ~/your_google-drive