Mounting systemd mount drives with rclone
Example for mounting cloud drives at boot using rclone
Google drive
Section titled “Google drive”/etc/systemd/system/cloud-google.mountUnitDescription=Mount for /cloud/googleMountType=rcloneWhat=google-drive:Where=/cloud/googleOptions=rw,netdev,allow_other,args2env,vfs-cache-mode=writes,config=/home/cyroth/.config/rclone/rclone.conf,cache-dir=/var/rcloneInstallWantedBy=multi-user.targetOnedrive
Section titled “Onedrive”/etc/systemd/system/cloud-onedrive.mount[Unit]Description=Mount for /cloud/onedrive[Mount]Type=rcloneWhat=onedrive:Where=/cloud/onedriveOptions=rw,_netdev,allow_other,args2env,vfs-cache-mode=writes,config=/home/cyroth/.config/rclone/rclone.conf,cache-dir=/var/rclone[Install]WantedBy=multi-user.targetMount with
systemctl daemon-reload
systemctl enable cloud-onedrive.mount --now