by

Google drive on Ubuntu – Automount

Create the unit file as nano ~/.config/systemd/user/google-drive-ocamlfuse.service (be sure to replace instances of {label} and {mountpoint}):

[Unit]
Description=FUSE filesystem over Google Drive
After=network.target

[Service]
ExecStart=google-drive-ocamlfuse -label {label} {mountpoint}
ExecStop=fusermount -u {mountpoint}
Restart=always
Type=forking

[Install]
WantedBy=default.target

To automount on boot:

systemctl enable --user google-drive-ocamlfuse.service

To mount drive:

systemctl start --user google-drive-ocamlfuse.service

To unmount drive:

systemctl stop --user google-drive-ocamlfuse.service

More info can be found here: https://github.com/astrada/google-drive-ocamlfuse/wiki/Automounting

Write a Comment

Comment

Webmentions

  • Google drive on Ubuntu – Ciprian's blog

    […] For automount, please follow the instructions from here: https://blog.ciprianpascu.ro/2023/03/28/google-drive-on-ubuntu-automount/ […]