卸载 google-drive-ocamlfuse

卸载 google-drive-ocamlfuse

我正在尝试卸载 google-drive-ocamlfuse。我输入了以下命令:

fusermount -u ~/google-drive

它返回:

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

哪里出了问题以及如何修复?

一般情况下我该如何卸载ocamlfuse

答案1

因为您需要先挂载文件夹(在 /home/user_name/google-drive 中):

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

卸载它们:

# umount
fusermount -u ~/google-drive

PD:我建议更改文件夹名称,不要使用符号。也许是“gdrive”或其他类似的

/home/user_name/gdrive

最好使用文章中描述的 bash 脚本在 Samba 中共享 Google Drive

#!/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

另存为 bash gdriveini(或您想要的任何名称)并执行(不要忘记 chmod +x gdriveini):

 ./gdriveini start
 ./gdriveini stop

答案2

sudo rm-rf~/.gdfuse

sudo rm -rf ~/你的 google 驱动器

相关内容