Hello,

 
I am trying the mount protondrive using the following script
 
#!/bin/bash
# Configuration
REMOTE_NAME="proton"
MOUNT_POINT="$HOME/ProtonDrive"
SYSTEMD_UNIT="$HOME/.config/systemd/user/rclone-proton.mount.service"
LOG_DIR="$HOME/.cache/rclone"
LOG_FILE="$LOG_DIR/rclone-proton.log"

# Step 1: Ensure required directories
echo "[+] Creating mount point and log directory..."
mkdir -p "$MOUNT_POINT" "$LOG_DIR" "$HOME/.config/systemd/user"
# Step 2: Write systemd unit
echo "[+] Writing systemd user unit..."
cat > "$SYSTEMD_UNIT" <<EOF
[Unit]
Description=Mount Proton Drive via rclone
After=network-online.target
Wants=network-online.target
[Service]
Type=notify
ExecStart=rclone mount $REMOTE_NAME: $MOUNT_POINT \\
    --vfs-cache-mode writes \\
    --vfs-cache-max-size 500M \\
    --vfs-cache-max-age 1h \\
    --dir-cache-time 5m \\
    --poll-interval 1m \\
    --log-level INFO \\
    --log-file $LOG_FILE \\
    --umask 002 \\
    --allow-other
ExecStop=/bin/fusermount3 -u $MOUNT_POINT
Restart=on-failure
RestartSec=10
[Install]
WantedBy=default.target
EOF
# Step 3: Enable allow-other (if not already)
if ! grep -q "^user_allow_other" /etc/fuse.conf 2>/dev/null; then
    echo "[+] Adding 'user_allow_other' to /etc/fuse.conf (requires sudo)..."
    sudo sh -c 'echo "user_allow_other" >> /etc/fuse.conf'
fi
# Step 4a: Check if the fuse group exists, create if not
if ! cat /etc/group | grep -qw 'fuse'; then
    echo "[+] Creating 'fuse' group (requires sudo)..."
    sudo groupadd fuse
fi
# Step 4b: Add user to fuse group if not already
if ! groups "$USER" | grep -qw fuse; then
    echo "[+] Adding user to 'fuse' group (requires sudo)..."
    sudo usermod -aG fuse "$USER"
    echo "[!] Please log out and back in for group changes to apply."
fi
# Step 5: Reload and start service
echo "[+] Enabling and starting rclone mount via systemd..."
systemctl --user daemon-reexec
systemctl --user daemon-reload
systemctl --user enable --now rclone-proton.mount.service
echo "[✓] Done. Mounted at: $MOUNT_POINT"
 
But I get
[+] Creating mount point and log directory...
[+] Writing systemd user unit...
[+] Enabling and starting rclone mount via systemd...
Job for rclone-proton.mount.service failed because the control process exited with error code.
See "systemctl --user status rclone-proton.mount.service" and "journalctl --user -xeu rclone-proton.mount.service" for details.
[✓] Done. Mounted at: /home/pdupre/ProtonDrive
 
 
systemctl --user status rclone-proton.mount.service
● rclone-proton.mount.service - Mount Proton Drive via rclone
     Loaded: loaded (/home/pdupre/.config/systemd/user/rclone-proton.mount.service; enabled; preset: disabled)
    Drop-In: /usr/lib/systemd/user/service.d
             └─10-timeout-abort.conf
     Active: activating (auto-restart) (Result: exit-code) since Wed 2026-09-30 17:48:54 CEST; 9s ago
 Invocation: 97549d6085764248b102db4c217b9ca7
    Process: 59561 ExecStart=rclone mount proton: /home/pdupre/ProtonDrive --vfs-cache-mode writes --vfs-cache-max-size 50>
   Main PID: 59561 (code=exited, status=1/FAILURE)
   Mem peak: 24.3M
        CPU: 58ms
 
journalctl --user -xeu rclone-proton.mount.service
he job identifier is 4741.
Sep 30 17:49:35 Teucidide systemd[3460]: rclone-proton.mount.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ An ExecStart= process belonging to unit UNIT has exited.
░░ 
░░ The process' exit code is 'exited' and its exit status is 1.
Sep 30 17:49:35 Teucidide systemd[3460]: rclone-proton.mount.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ The unit UNIT has entered the 'failed' state with result 'exit-code'.
Sep 30 17:49:35 Teucidide systemd[3460]: Failed to start rclone-proton.mount.service - Mount Proton Drive via rclone.
░░ Subject: A start job for unit UNIT has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░ 
░░ A start job for unit UNIT has finished with a failure.
░░ 
░░ The job identifier is 4741 and the job result is failed
 
I also tried restart without more success.
 
There are one thing that I do not understand is why I do not need to login to the protondrive server before I
can mount.
 
Can you help me?
Thank.
 
===========================================================================
Patrick DUPRÉ | | email: [email protected]
===========================================================================
-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to