Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Mounting Network Drives
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="knightjp" data-source="post: 1589481" data-attributes="member: 33134"><p>Hey there,</p><p></p><p>Just thought I'll post something on here about mounting network drives. </p><p></p><p>I had a problem where I setup iTunes and iPhoto to store their media libraries on a file server. That way, in the event of needing to reinstall the OS or formatting the computer, I never need worry about my music and photos being lost. </p><p>I made an application that will launch every time I log in, but I've noticed that when the Mac goes into sleep, on waking, the network drive has been ejected. And I need to run the application manually to before iTunes or iPhoto launch, otherwise I'll errors or messages showing up on my screen. </p><p></p><p>Reading online, there were a few solutions that involve installing 3rd party software like Sleepwatch and drive mounting solutions. </p><p>Then I came to know about <strong>Automount</strong> in OS X, which allows you map a network drive and solves my issue completely. Another thing is that I won't ever need to use my application again and I will never need any other 3rd party app as well. </p><p>That to me is excellent. And its so easy to do using Terminal</p><p></p><ol> <li data-xf-list-type="ol">Lauch Terminal</li> <li data-xf-list-type="ol">Using vi editor, add a line to AutoMaster[CODE]sudo vi /etc/auto_master[/CODE]<br /> I added [CODE]/Volumes/ auto_resources[/CODE] just above the +auto_master line. <br /> It will look like this.<br /> [CODE]# Automounter master map<br /> /Volumes/ auto_resources<br /> +auto_master # Use directory service<br /> /net -hosts -nobrowse,hidefromfinder,nosuid<br /> /home auto_home -nobrowse,hidefromfinder<br /> /Network/Servers -fstab<br /> /- -static[/CODE]</li> <li data-xf-list-type="ol">Now create the auto_resources file. <br /> [CODE]sudo vi /etc/auto_resources[/CODE]<br /> in the blank file add... [CODE]MediaName -fstype=smbfs smb://user:password@serverIP/ShareName[/CODE]</li> <li data-xf-list-type="ol">Activate the AutoMount [CODE]sudo automount -vc[/CODE]</li> <li data-xf-list-type="ol">Restart the computer. </li> </ol></blockquote><p></p>
[QUOTE="knightjp, post: 1589481, member: 33134"] Hey there, Just thought I'll post something on here about mounting network drives. I had a problem where I setup iTunes and iPhoto to store their media libraries on a file server. That way, in the event of needing to reinstall the OS or formatting the computer, I never need worry about my music and photos being lost. I made an application that will launch every time I log in, but I've noticed that when the Mac goes into sleep, on waking, the network drive has been ejected. And I need to run the application manually to before iTunes or iPhoto launch, otherwise I'll errors or messages showing up on my screen. Reading online, there were a few solutions that involve installing 3rd party software like Sleepwatch and drive mounting solutions. Then I came to know about [B]Automount[/B] in OS X, which allows you map a network drive and solves my issue completely. Another thing is that I won't ever need to use my application again and I will never need any other 3rd party app as well. That to me is excellent. And its so easy to do using Terminal [LIST=1] [*]Lauch Terminal [*]Using vi editor, add a line to AutoMaster[CODE]sudo vi /etc/auto_master[/CODE] I added [CODE]/Volumes/ auto_resources[/CODE] just above the +auto_master line. It will look like this. [CODE]# Automounter master map /Volumes/ auto_resources +auto_master # Use directory service /net -hosts -nobrowse,hidefromfinder,nosuid /home auto_home -nobrowse,hidefromfinder /Network/Servers -fstab /- -static[/CODE] [*]Now create the auto_resources file. [CODE]sudo vi /etc/auto_resources[/CODE] in the blank file add... [CODE]MediaName -fstype=smbfs smb://user:password@serverIP/ShareName[/CODE] [*]Activate the AutoMount [CODE]sudo automount -vc[/CODE] [*]Restart the computer. [/LIST] [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Mounting Network Drives
Top