Skip to content

pam_mount instructions don't work currently #923

@xandey

Description

@xandey

I use the pam_mount automount method. https://github.com/astrada/google-drive-ocamlfuse/wiki/Automounting#mount-using-pam_mount
I believe pam_mount calls google-drive-ocamlfuse like this:

google-drive-ocamlfuse -label default default /home/apatterson/.gdrive -o "nosuid,nodev"

For me on ubuntu 25.10 this fails:

apatterson@beta ~[0]$ fusermount -u ~/.gdrive
apatterson@beta ~[0]$ google-drive-ocamlfuse -label default default /home/apatterson/.gdrive -o nosuid,nodev
apatterson@beta ~[0]$ ls .gdrive 
ls: unknown io error: '.gdrive', 'Os { code: 107, kind: NotConnected, message: "Transport endpoint is not connected" }'

I found that if I don't have the options as the last argument it works

apatterson@beta ~[0]$ fusermount -u .gdrive
apatterson@beta ~[0]$ google-drive-ocamlfuse -label default default -o "nosuid,nodev" /home/apatterson/.gdrive
apatterson@beta ~[0]$ ls .gdrive/
[redacted]

I have an old machine with 24.04 that works and it reports the same version of google-drive-ocamlfuse (both machines:

apatterson@beta ~[0]$ google-drive-ocamlfuse -version
google-drive-ocamlfuse, version 0.7.32
Copyright (C) 2012-2024 Alessandro Strada
License MIT

In the meantime I avoid this issue by changing /usr/local/bin/gdfuse to just pass the two args:

google-drive-ocamlfuse -label $1 $2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions