Have you tried modifying the files for auto mount, here is a .md file i had gpt put together out of my notes. you can use the top section to use find/replace with your information to make it so you can copy and paste
# NFS Automount Setup for `sharenamefromNAS`
use find&replace for all instances on these items to match your setup to make reading easier:
IPAddress = your NAS ip
sharenamefromNAS = the share name from synology NFS settings (ie /volume1/Media)
volumes_NAME = the share name ie volumes_Media
volumes.NAME = the share name ie volumes_Media
This guide walks through the steps to configure an NFS mount on a Mac, ensuring it automounts on reboot.
## Prerequisites
- A Synology NAS with NFS enabled and the share `IPAddress:sharenamefromNAS`.
- A Mac with the correct permissions to access the NFS share.
## Steps
### 1. **Enable NFS on Synology NAS**
Ensure that NFS is enabled on the Synology and the correct permissions are set:
- Log into your Synology NAS and enable NFS under `Control Panel` > `File Services` > `NFS`.
- Configure the shared folder with the correct NFS permissions (e.g., `map all users to admin` for easy access).
### 2. **Modify `/etc/auto_master`**
This file controls the automounter master map.
1. Edit the `/etc/auto_master` file:
```bash
sudo nano /etc/auto_master
```
2. Add the following line at the end of the file to reference the `auto_nfs` file:
```bash
/- auto_nfs
```
3. Save and exit (`Ctrl + O`, `Enter`, `Ctrl + X`).
### 3. **Create `/etc/auto_nfs`**
This file maps the NFS share to a local mount point.
1. Create or modify `/etc/auto_nfs`:
```bash
sudo nano /etc/auto_nfs
```
2. Add the following line to map the share:
```bash
sharenamefromNAS -fstype=nfs,ro IPAddress:sharenamefromNAS
```
3. Save and exit (`Ctrl + O`, `Enter`, `Ctrl + X`).
### 4. **Ensure `sharenamefromNAS` Exists**
Automount relies on the directory being present before it can mount the NFS share. To ensure the directory exists at startup, we created a launch agent that runs at boot.
### 5. **Create Launch Agent to Create `sharenamefromNAS` Directory on Boot**
1. Create a new plist file for the launch agent:
```bash
sudo nano /Library/LaunchDaemons/com.create.volumes.NAME.plist
```
2. Add the following content to the file:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.create.volumes.NAME</string>
<key>ProgramArguments</key>
<array>
<string>/bin/mkdir</string>
<string>-p</string>
<string>sharenamefromNAS</string>
</array>
<key>RunAtLoad</key>
<true/>
<key>KeepAlive</key>
<false/>
<key>StandardErrorPath</key>
<string>/tmp/create_volumes_NAME.err</string>
<key>StandardOutPath</key>
<string>/tmp/create_volumes_NAME.out</string>
</dict>
</plist>
```
3. Save and exit (`Ctrl + O`, `Enter`, `Ctrl + X`).
4. Load the launch agent:
```bash
sudo launchctl load /Library/LaunchDaemons/com.create.volumes.NAME.plist
```
### 6. **Test the Setup**
1. To test the mount manually (before reboot):
```bash
sudo automount -vc
```
2. Manually mount the NFS share if necessary:
```bash
sudo mkdir -p sharenamefromNAS
sudo mount -t nfs IPAddress:sharenamefromNAS sharenamefromNAS
```
3. Verify the files are accessible:
```bash
ls sharenamefromNAS
```
### 7. **Reboot and Verify Automount**
After reboot, ensure the directory is created and the share is mounted automatically:
1. Reboot the system:
```bash
sudo reboot
```
2. After reboot, verify the mount:
```bash
ls sharenamefromNAS
```
3. Verify automount is working:
```bash
mount | grep sharenamefromNAS
```
### Troubleshooting
- If the NFS mount is not showing after reboot, ensure that `sharenamefromNAS` exists by running `ls sharenamefromNAS`.
- If the directory is missing, check the launch agent logs located at `/tmp/create_volumes_NAME.out` for any errors.
---
This setup ensures that your NFS share from the Synology NAS is automatically mounted on `sharenamefromNAS` on the Mac after reboot, and the directory is created at boot if it does not exist.
Let me know if you need further modifications!