How To Mount a Drive using Fstab and AutoFS?
Mac has evolved over the years, to the most popular Snow Leopard 10.6.7. Now the new Lion is out, we feel the instructions will be much the same as below
- Open your terminal by going to Applications > Utilities > Terminal
- Type in sudo nano /etc/fstab You will be prompted for your password and then nano opens the file. This file should be empty.
- For AFP shares type in
YOUR_NAS:/YOUR_SHARE /Users/simon/Shares/Movies url automounted,url==afp://YOUR_LOGON:YOUR_PASS@YOUR_NAS/YOUR_SHARE 0 0
You need to replace YOUR_NAS, YOUR_SHARE, YOUR_LOGON, YOUR_PASS and /Users/[User_Name]/[Shares]/[Share_Name] with the name of your NAS, the name of your share, your logon, your password and the path to your mount point respectively.
YOUR_NAS:/YOUR_SHARE /Users/simon/Shares/Movies url automounted,url==cifs://YOUR_LOGON:YOUR_PASS@YOUR_NAS/YOUR_SHARE 0 0
- Select Control + o then Enter
- Now you can reboot your Mac to make it active or even better you can just issue the command
sudo automount -vc
- If everything was set up correctly you should get a reply similar to this:
automount: /net updated
automount: /home updated
automount: /Users/simon/Shares/Movies mounted
automount: no unmounts
- Now you can try to open your mount point folder and you should see the contents of your share in there.
Reference
Plex- Howto automount AFP/SMB shares using autofs - Retrieved on 13 June 2011
All text is available under the terms of the GNU Free Documentation License
Privacy Policy | About Wikitec | Disclaimer | Copyright