How to use NFS Mount on MacOS Sonoma?

What is the problem you are having with rclone?

Can't figure out how to use nfsmount with vfscache etc. The man page for nfsmount is the same as mount with minimal changes and no info on nuanced differences between the two.

Run the command 'rclone version' and share the full output of the command.

rclone v1.65.2
- os/version: darwin 14.2.1 (64 bit)
- os/kernel: 23.2.0 (arm64)
- os/type: darwin
- os/arch: arm64 (ARMv8 compatible)
- go/version: go1.21.6
- go/linking: dynamic
- go/tags: none

Which cloud storage system are you using? (eg Google Drive)

Google Drive (Shared)

The command you were trying to run (eg rclone copy /tmp remote:tmp)

$ rclone nfsmount gmail: ~/Documents/rclonemount/ --vfs-cache-mode=full -vv

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[gmail]
type = drive
client_id = XXX
client_secret = XXX
scope = drive
token = XXX
team_drive = XXX
root_folder_id = 

A log from the command that you were trying to run with the -vv flag

$ rclone nfsmount gmail: ~/Documents/rclonemount/ --vfs-cache-mode=full -vv
2024/01/24 13:24:12 DEBUG : rclone: Version "v1.65.2" starting with parameters ["rclone" "nfsmount" "gmail:" "/Users/c/Documents/rclonemount/" "--vfs-cache-mode=full" "-vv"]
2024/01/24 13:24:12 DEBUG : Creating backend with remote "gmail:"
2024/01/24 13:24:12 DEBUG : Using config file from "/Users/c/.config/rclone/rclone.conf"
2024/01/24 13:24:12 DEBUG : vfs cache: root is "/Users/c/Library/Caches/rclone"
2024/01/24 13:24:12 DEBUG : vfs cache: data root is "/Users/c/Library/Caches/rclone/vfs/gmail"
2024/01/24 13:24:12 DEBUG : vfs cache: metadata root is "/Users/c/Library/Caches/rclone/vfsMeta/gmail"
2024/01/24 13:24:12 DEBUG : Creating backend with remote "/Users/c/Library/Caches/rclone/vfs/gmail/"
2024/01/24 13:24:12 DEBUG : fs cache: renaming cache item "/Users/c/Library/Caches/rclone/vfs/gmail/" to be canonical "/Users/c/Library/Caches/rclone/vfs/gmail"
2024/01/24 13:24:12 DEBUG : Creating backend with remote "/Users/c/Library/Caches/rclone/vfsMeta/gmail/"
2024/01/24 13:24:12 DEBUG : fs cache: renaming cache item "/Users/c/Library/Caches/rclone/vfsMeta/gmail/" to be canonical "/Users/c/Library/Caches/rclone/vfsMeta/gmail"
2024/01/24 13:24:12 INFO  : vfs cache: cleaned: objects 0 (was 0) in use 0, to upload 0, uploading 0, total size 0 (was 0)
2024/01/24 13:24:12 DEBUG : Running mount command: ["mount" "-o" "port=61716" "-o" "mountport=61716" "localhost:" "/Users/c/Documents/rclonemount/"]
2024/01/24 13:24:12 NOTICE: NFS Server running at 127.0.0.1:61716
2024/01/24 13:24:12 DEBUG : Google drive root '': read info from Shared Drive "GShared "
2024/01/24 13:24:12 DEBUG : : OpenFile: flags=O_RDONLY, perm=----------
2024/01/24 13:24:12 DEBUG : : >OpenFile: fd=/ (r), err=<nil>
2024/01/24 13:24:13 [ERROR] No file for lookup of ._.
2024/01/24 13:24:13 [ERROR] call to 0x1038c13a0 failed: No such file or directory
2024/01/24 13:24:13 DEBUG : : OpenFile: flags=O_RDONLY, perm=----------
2024/01/24 13:24:13 DEBUG : : >OpenFile: fd=/ (r), err=<nil>
2024/01/24 13:24:13 [ERROR] No file for lookup of image18.png
2024/01/24 13:24:13 [ERROR] call to 0x1038c13a0 failed: No such file or directory
2024/01/24 13:24:13 DEBUG : : OpenFile: flags=O_RDONLY, perm=----------
2024/01/24 13:24:13 DEBUG : : >OpenFile: fd=/ (r), err=<nil>
2024/01/24 13:24:13 [ERROR] No file for lookup of .hidden
2024/01/24 13:24:13 [ERROR] call to 0x1038c13a0 failed: No such file or directory
2024/01/24 13:24:13 DEBUG : : OpenFile: flags=O_RDONLY, perm=----------
2024/01/24 13:24:13 DEBUG : : >OpenFile: fd=/ (r), err=<nil>
2024/01/24 13:24:13 [ERROR] No file for lookup of DCIM
2024/01/24 13:24:13 [ERROR] call to 0x1038c13a0 failed: No such file or directory
2024/01/24 13:24:13 DEBUG : : OpenFile: flags=O_RDONLY, perm=----------
2024/01/24 13:24:13 DEBUG : : >OpenFile: fd=/ (r), err=<nil>
2024/01/24 13:24:13 [ERROR] No file for lookup of .metadata_never_index_

And what does not work?

Your command looks ok:

Be aware that from my experience it is extremely buggy - I am not actually sure why it was released in such state.

Reading files from mount works but it is impossible to write anything.

The issues have been already reported on github:

but so far nothing changed.

I would not use it for anything but experimenting - at least on macOS.

For working solution I use FUSE-T and rclone mount

Well this answers it. writes don't work. The documentation for nfsmount is pretty stale/incomplete I guess

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.