Repository navigation
Description
The associated forum post URL from https://forum.rclone.org
What is the problem you are having with rclone?
"rclone nfsmount" raises error "mount_nfs: -o mountport: option not supported"
What is your rclone version (output from rclone version)
rclone v1.69.3
- os/version: openbsd 7.7 (64 bit)
- os/kernel: 7.7 (amd64)
- os/type: openbsd
- os/arch: amd64
- go/version: go1.24.3
- go/linking: static
- go/tags: none
Which OS you are using and how many bits (e.g. Windows 7, 64 bit)
- os/version: openbsd 7.7 (64 bit)
Which cloud storage system are you using? (e.g. Google Drive)
OneDrive
The command you were trying to run (e.g. rclone copy /tmp remote:tmp)
rclone nfsmount USR:DIR /home/onedrive/DIR
A log from the command with the -vv flag (e.g. output from rclone -vv copy /tmp remote:tmp)
2025/05/31 23:17:00 DEBUG : rclone: Version "v1.69.1-DEV" starting with parameters ["rclone" "nfsmount" "USR:DIR" "/home/onedrive/DIR" "-vv"]
2025/05/31 23:17:00 DEBUG : Creating backend with remote "USR:DIR"
2025/05/31 23:17:00 DEBUG : Using config file from "/home/onedrive/.config/rclone/rclone.conf"
2025/05/31 23:17:01 DEBUG : OneDrive root 'USR': Next delta token is: NDslMjM0OyUyMzE7MzsyYjA4ZWNjMC1kNjE0LTRjNWUtYWQzYy0yNjk3Mzc2OThkYjQ7NjM4ODQzMjMwMTgwOTMwMDAwOzY2ODg4OTcxOTslMjM7JTIzOyUyMzA7JTIz
2025/05/31 23:17:01 NOTICE: OneDrive root 'USR': --vfs-cache-mode writes or full is recommended for this remote as it can't stream
2025/05/31 23:17:01 WARNING: context.Background: NFS writes don't work without a cache, the filesystem will be served read-only
2025/05/31 23:17:01 DEBUG : nfs: Starting memory handle cache
2025/05/31 23:17:01 DEBUG : Running mount command: ["mount" "-o" "port=33945" "-o" "mountport=33945" "-o" "tcp" "localhost:USR DIR" "/home/onedrive/DIR"]
2025/05/31 23:17:01 NOTICE: NFS Server running at 127.0.0.1:33945
2025/05/31 23:17:01 CRITICAL: Fatal error: failed to mount FUSE fs: mount_nfs: -o mountport: option not supported: failed to mount NFS volume: exit status 1
How to use GitHub
- Please use the 👍 reaction to show that you are affected by the same issue.
- Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
- Subscribe to receive notifications on status change and new comments.
Activity
ghollf commentedon Jun 1, 2025
Options available: https://man.openbsd.org/mount_nfs
ncw commentedon Jun 4, 2025
@ghollf this code hasn't been tested on *BSD I think.
If you or anyone would like to have a go at fixing this then the code is here
rclone/cmd/nfsmount/nfsmount.go
Lines 55 to 60 in ddebca8
It would need a bit of
if runtime.GOOS == "openbsd" {hjicks commentedon Apr 24, 2026
Hi there,
apparently OpenBSD lacks
mountportand it would get it from portmap. i have the did following to register rclone's server:replace
<PORT>with one you gave to--addr.Note that while that can be 2049, you gotta either run rclone as root OR tune
sysctl(8)values in securelevel 0. but that doesn't matter much.Now, for mounting it:
$ doas mount_nfs -T localhost:/ /mnt/ mount_nfs: can't access /: Authentication errorA quick peek at wireshark shows that last packet we are getting with the following data:
Now i'm not sure if any of BSDs support
AUTH_NULL. I dont see any code for neither OpenBSD nor NetBSD about it and quick greps in FreeBSD and Dragonfly sources didnt got me an answer, but i assume they lack it as well.While we can add support for
AUTH_NULLto NFS client in BSD kernels, that effort has to be shared among BSDs, which might not be very easy and requires a bit of help from others.Currently only
AUTH_UNIXseems to be commonly available across all of them.If anyone with FreeBSD/NetBSD/Dragonfly can check if they can mount rclone's nfs server, that'd be wonderful.
ncw commentedon Apr 24, 2026
I just had a quick grep through the github.com/willscott/go-nfs source code (the library we use) and I don't think it supports anything other than Null Auth :-(
docs: add OpenBSD mounting section for nfsmount
nfsmount: fix mount_nfs options incompatible with OpenBSD - fixes rcl…
nfsmount: fix mount_nfs options incompatible with OpenBSD - fixes rcl…
docs: add OpenBSD mounting section for nfsmount