yum --enablerepo=epel -y install fuse-sshfs
mknod -m 666 /dev/fuse c 10 229
rclone mount googledrive: /path/to/local/disk --allow-other --allow-non-empty --vfs-cache-mode writes
sudo update-rc.d -f udev disable
Start when boot
nano /usr/lib/systemd/system/rclone.service
Write (replace the rclone command below):
[Unit]
Description=rclone
[Service]
User=root
ExecStartPre=/usr/bin/mknod -m 666 /dev/fuse c 10 229
ExecStart=/usr/bin/rclone mount googledrive: /path/to/local/disk --allow-other --allow-non-empty --vfs-cache-mode writes
Restart=on-abort
[Install]
WantedBy=multi-user.target
Enable it
systemctl daemon-reload
systemctl start rclone
systemctl enable rclone
Reboot
reboot now
Ref: https://blog.csdn.net/weixin_42527192/article/details/95783945