To mount the file system of your **Raspberry Pi** on your **Mac Mini** so it appears as a local directory, you have a few good options depending on your needs (read-only vs. read/write, security, performance). Here are the most common and effective methods: --- ### **Option 1: SSHFS (Secure & Easy)** **SSHFS** mounts your Pi’s filesystem over SSH on your Mac as if it's a local drive. #### **Steps**: 1. **Install SSHFS on your Mac**: ```bash brew install macfuse brew install sshfs ``` 2. **Create a mount point**: ```bash mkdir ~/pi-mount ``` 3. **Mount the Pi’s file system**: ```bash sshfs pi@<raspberry-pi.local>:/home/pi ~/pi-mount ``` Replace `<raspberry-pi.local>` with your Pi's hostname or IP. 4. **Unmount when done**: ```bash umount ~/pi-mount ``` --- > **Note:** Using NFS or SAMBA have dissadvantages in terms of ease of use and setup. SAMBA is heavy.
### **Fast Option: NFS** > Faster, for LAN use If you're okay setting up a service on the Pi, NFS offers faster performance for local networks. #### **On the Raspberry Pi**: 1. Install the NFS server: ```bash sudo apt install nfs-kernel-server ``` 2. Edit the exports file: ```bash sudo nano /etc/exports ``` Add a line like: ``` /home/pi 192.168.x.x/24(rw,sync,no_subtree_check) ``` Replace `192.168.x.x/24` with your Mac’s LAN subnet. 3. Restart the NFS server: ```bash sudo exportfs -ra sudo systemctl restart nfs-kernel-server ``` #### **On the Mac**: 1. Create a mount point: ```bash mkdir ~/pi-nfs ``` 2. Mount the share: ```bash sudo mount -t nfs <pi-ip>:/home/pi ~/pi-nfs ``` ---
### **Heavy Option: SMB/CIFS** > for Finder integration. If you want to mount the Pi in Finder: 1. On the Pi: ```bash sudo apt install samba ``` Then configure `/etc/samba/smb.conf` and add a share. 2. On your Mac: * Open **Finder > Go > Connect to Server** * Enter: `smb://<raspberry-pi.local>/pi` * Authenticate with Pi’s username/password