-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMountfile.example
More file actions
64 lines (58 loc) · 2.54 KB
/
Mountfile.example
File metadata and controls
64 lines (58 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Mounts Configuration Example
#
# This file shows example configurations for network mounts.
# Copy this file to "mounts.config" and customize with your actual mount details.
#
# IMPORTANT: Never commit your actual mounts.config to git!
# It may contain sensitive network information.
#
# Format: mountpoint|server|sharepath|type|options
#
# Fields:
# mountpoint: Full path where the share will be accessible
# server: IP address or hostname of the server
# sharepath: Path to the share on the server
# type: Either "nfs" or "smb"
# options: Mount options (optional, sensible defaults provided)
#
# Mount Point Guidelines:
# - Use /System/Volumes/Data/nfs/ for NFS mounts
# - Use /System/Volumes/Data/smb/ for SMB mounts
# - These are accessible as /nfs/ and /smb/ via firmlinks
#
# NFS Mount Options (defaults: resvport,bg,hard,intr):
# resvport - Use reserved port (required by most NFS servers)
# bg - Retry in background if server unavailable
# hard - Keep retrying NFS requests (vs soft)
# soft - Give up after timeout
# intr - Allow interruption of NFS operations
# ro - Mount read-only
# rw - Mount read-write (default)
# nfsvers=4 - Force NFSv4
#
# SMB Mount Options (defaults: soft):
# soft - Fail after timeout
# hard - Keep retrying indefinitely
#
# Security Notes:
# - Use private IP addresses (192.168.x.x, 10.x.x.x)
# - Or use .local mDNS names for local network
# - Never include passwords in this file
# - For SMB auth, use Keychain or connect via Finder first
# - Use read-only (ro) when write access not needed
# Example: NFS share for media files
# Replace 192.168.1.100 with your NAS IP
# Replace /volume1/media with your NFS export path
/System/Volumes/Data/nfs/media|192.168.1.100|/volume1/media|nfs|resvport,bg,hard,intr
# Example: NFS share for documents (soft mount - won't hang if server down)
/System/Volumes/Data/nfs/documents|192.168.1.100|/volume1/documents|nfs|resvport,soft,intr
# Example: NFS share read-only for backups
/System/Volumes/Data/nfs/backups|192.168.1.100|/volume1/backups|nfs|resvport,ro,hard,intr
# Example: SMB/CIFS share (Windows/Samba)
# Replace 192.168.1.50 with your SMB server IP
# Replace "shared" with your share name
/System/Volumes/Data/smb/shared|192.168.1.50|shared|smb|soft
# Example: Using mDNS hostname (.local)
/System/Volumes/Data/nfs/photos|nas.local|/photos|nfs|resvport,soft,intr
# Example: NFSv4 mount
/System/Volumes/Data/nfs/data|server.local|/exports/data|nfs|resvport,nfsvers=4,hard,intr