![]() Replace username:password values with your own. fstype=afp tells autofs to use the AFP share protocol, similarly -fstype=smbfs tells autofs to use the SMB share protocol. This will bring up a text editor containing the new empty auto_nas file.Īdd a line in this file for each mount point PersonalMedia -fstype=afp PersonalMedia -fstype=smbfs this example, PersonalMedia is the name of the directory that will appear under your mount point specified in Step 3. With the Terminal window still open, create the auto_nas file $ sudo nano /etc/auto_nas We need to create the file that autofs will refer to for details about your individual mounts. Press Enter to accept the suggested path Step 5 – Create auto_nas Press Y when prompted to save the changes The second column is the name of a file that we will create in Step 5. On Mac OS X 10.9 and later, do not use /Volumes as your mount point since everything that’s not a physical volume (hard disk), including your mount point directory, will be removed whenever the machine is rebooted. You can replace this with a path of your choice. The first column /mnt/NAS specifies where you would like your mounted volume to appear. net -hosts -nobrowse,hidefromfinder,nosuid Simply append your new mappings underneath the default ones. This will bring up a text editor containing the auto_master file. Open the auto_master file by typing the following in the Terminal window: $ sudo nano /etc/auto_master Then 20 minutes after the Mac has gone to sleep, so will the NAS (assuming no other resource is accessing the NAS) – Win Win! Step 1 – Open the Terminal.appĮither start typing Terminal in the Spotlight search, or goto Applications > Utilities > Terminal. Using autofs means that whilst my Mac is awake, it will continously attempt to mount the PersonalMedia share on the NAS – whether it’s being used or not – effectivily disabling the NAS’s ability to sleep. The same benefits apply to devices that may live permanently on your network, but regularly go to sleep and need to reliably re-mount volumes on wake. However, unlike drives mounted manually through the Finder, or even by a “Login Item” at login time, autofs mounted volumes will automatically connect and reconnect as needed whenever the network volumes are available, and quietly disconnect when they’re not. This is more of an issue with Plex, as the disconnected share is not accessible when you try to access the Plex library for that share, Plex returns an error – understandibly as the drive is no longer available.Īutofs is a utility that will mount network volumes on your OS X system, just like you would do through the Finder. ![]() So if I’m using the Mac, but not accessing the PersonalMedia share, then after 20 minutes the NAS will go to sleep and the network drive will disconnect, and the only way to reconnect is using the Finder option, Connect to Server or performing a restart. The problem is that the Mac will only attempt to connect to the NAS on power up from cold start/restart or from sleep. The Synology NAS is set to spin down the disks after 20 minutes of inactivity and wake on LAN when requested (WOL), which is great as it’ll preserve the life of the disks and of course use less power consumption when not in use. ![]() With the NAS mounted using Finder and adding it to the “Login Item” for automatic mounting, I was all set, or so I thought… I recently bought a Synology NAS, and copied the contents of the PersonalMedia into the Synology using RAID 1 redundancy (2x 2TB WD Red). Connected to the Mac are two USB external drives, one called Media for movies, TV shows, etc… and the other one called PersonalMedia for photos and camcorder/home videos. I have a Apple Mac Mini that I use as a HTPC using Plex.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |