3

I am trying to transfer data that takes days to complete and would like to have a permanent connection to my Network Attached Storage device. I can open finder, then go--> connect to server in order to connect to my network attached storage. However, if I return to my computer and there is a login screen, the connection has been dropped. I would like for the data transfer to continue even while I am logged out, and for the disk to be remounted even if the network connection is temporarily dropped.

I have enabled the connection as a login item as described in https://apple.stackexchange.com/a/20667/1942, but it still doesn't automatically mount the device. An answer to another question, https://apple.stackexchange.com/a/210960/1942, suggests writing an AppleScript to automate this, referencing a blog post from 2008 (>10y ago).

What are my options for automating the mounting in 2019?

I have a MacBook Pro + macOS Mojave 10.14.3

output from smbutil statshares -a

10
  • 1
    What is the protocol used to connect to the NAS? AFP, SMB? What is the NAS make?
    – user302097
    Commented Mar 15, 2019 at 10:12
  • @Gummibando using smb to connect to NAS; the make is Buffalo TS1200D. Commented Mar 15, 2019 at 17:12
  • How are you connecting? WiFi? Ethernet? What speed?
    – Allan
    Commented Mar 15, 2019 at 17:20
  • I am transferring via local Ethernet at about 10MB/s Commented Mar 15, 2019 at 19:48
  • @DavidLeBauer Sorry, even more questions. 1. The speed is really slow, what is the Ethernet link speed to the NAS (100 Mbit/s, 1 Gbit/s)?. 2. With the mounted share selected in the Finder, what does the Finder Info dialog (CMD-I) say under "Format"? 3. With the share munted, can you post the output of the Terminal/commandline command "smbutil statshares -a" (maybe add a screenshot to your original post)? 4. Can SSH be enabled on the Buffalo NAS to access the core system with admin privileges? 5. Do you know what the Samba (the SMB server software on the NAS) version is?
    – user302097
    Commented Mar 16, 2019 at 9:19

1 Answer 1

1

I resolved the issue of keeping the disk mounted by using the caffeinate command. Caffeinate keeps the system from sleeping as described in the man page.

1
  • Probably the simplest solution. The TeraStation setup seems very limited, which makes mitigating the issue at the SMB level more ore less impossible. (Just for comparison, at home I use a Synology NAS, which after a few lines of command line configuration, supports persistent connections, transparent reconnects, macOS meta data and transfer speeds north of 100 MB/s). If you don't want to fiddle around with the "caffeinate" command on the commandline, there is a nice free menu bar utility available for one-click-keep-awake functionality. github.com/newmarcel/KeepingYouAwake
    – user302097
    Commented Mar 21, 2019 at 13:41

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .