Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jmpage2

macrumors 68040
Original poster
Sep 14, 2007
3,237
607
About 10 days ago I purchased a new 2012 i7 based iMac to replace a late 2009 model that I had. I restored my user data via Time Machine with Migration Assistant. Everything is working great other than one thing that has me somewhat baffled.

For years now I have been using a script that runs at system startup to map a bunch of SMB shares on my Synology box. This was working fine with the previous Mac which was also running Mountain Lion. Somehow now, with nothing else changed that I am aware of, my Mac is of its own accord disconnecting these shares. After disconnection, I can re-run the script and everything maps back up, for a while... then a day or less later, the shares are gone.

This is really playing havoc with things that I do, as all of my media and other large files sit on these network shares and many applications like Lightroom, iTunes, etc, points directly to these volumes.

Does anyone have any idea of what I can do to fix this?

Here's the script that is packaged and runs at start-up;

Code:
tell application "Finder"
	mount volume "smb://user:password@bogart/Movies"
	mount volume "smb://user:password@bogart/Music"
	mount volume "smb://user:password@bogart/Photos"
	mount volume "smb://juser:password@bogart/Public"
	mount volume "smb://user:password@bogart/Videos"
	mount volume "smb://user:password@bogart/home"
	mount volume "smb://user:password@bogart/TV"
end tell
 

rezwits

macrumors 6502a
Jul 10, 2007
838
436
Las Vegas
Seems like your internet connection might be dropping out

If you loose network connection for a little bit, the shares disappear. With AFP shares I believe they auto connect, maybe not with SMBs

Just a thought...
 

jmpage2

macrumors 68040
Original poster
Sep 14, 2007
3,237
607
Seems like your internet connection might be dropping out

If you loose network connection for a little bit, the shares disappear. With AFP shares I believe they auto connect, maybe not with SMBs

Just a thought...

I don't think that the network is dropping. The problem only seems to occur when the Mac goes to sleep. Sometimes after waking it from sleep, the SMB shares are missing and I have to remount them.

I will have to investigate if there is any way to make the SMB shares persistent, but I've never had trouble with any of my previous Macs dropping the shares.
 

jmpage2

macrumors 68040
Original poster
Sep 14, 2007
3,237
607
I found the log messages that appear to relate to this problem. Can anyone shed any light on it?

Code:
2/1/13 4:15:33.000 AM kernel[0]: hibernate_page_list_setall time: 825 ms
2/1/13 4:15:33.000 AM kernel[0]: pages 751417, wire 500617, act 62401, inact 1, cleaned 0 spec 13992, zf 2831, throt 0, could discard act 96108 inact 9377 purgeable 517 spec 65386 cleaned 187
2/1/13 4:15:33.000 AM kernel[0]: hibernate_page_list_setall found pageCount 579842
2/1/13 4:15:33.000 AM kernel[0]: IOHibernatePollerOpen, ml_get_interrupts_enabled 0
2/1/13 4:15:33.000 AM kernel[0]: IOHibernatePollerOpen(0)
2/1/13 4:15:33.000 AM kernel[0]: encryptStart 2b850
2/1/13 4:15:33.000 AM kernel[0]: bitmap_size 0xbf8dc, previewSize 0x15dbe90, writing 573929 pages @ 0x16c6fbc
2/1/13 4:15:33.000 AM kernel[0]: hibernate_machine_init: state 2, image pages 500413, sum was 7756a69b, image1Size 22d73200, conflictCount 5396, nextFree 1797
2/1/13 4:15:33.000 AM kernel[0]: hibernate_page_list_discard time: 65 ms, discarded act 96108 inact 9377 purgeable 517 spec 65386 cleaned 187
2/1/13 4:15:33.000 AM kernel[0]: IOHibernatePollerOpen(), ml_get_interrupts_enabled 0
2/1/13 4:15:33.000 AM kernel[0]: IOHibernatePollerOpen(0)
2/1/13 4:15:33.000 AM kernel[0]: hibernate_machine_init reading
2/1/13 4:15:33.000 AM kernel[0]: PMStats: Hibernate read took 820 ms
2/1/13 4:15:33.000 AM kernel[0]: hibernate_machine_init pagesDone 579638 sum2 d57ca2fc, time: 820 ms, comp bytes: 75239424 time: 57 ms 1253 Mb/s, crypt bytes: 276048384 time: 90 ms 2908 Mb/s
2/1/13 4:15:33.000 AM kernel[0]: Wake reason: RTC (Alarm)
2/1/13 4:15:33.000 AM kernel[0]: RTC: SleepTimer 2013/2/1 11:15:22, sleep 2013/2/1 09:15:37
2/1/13 4:15:33.000 AM kernel[0]: AirPort_Brcm43xx::powerChange: System Wake - Full Wake/ Dark Wake / Maintenance wake
2/1/13 4:15:33.000 AM kernel[0]: /drv/ MacModule.cpp:304   powerStateWillChangeTo: flags=2 stateNumber=3
2/1/13 4:15:33.000 AM kernel[0]: /drv/ MacModule.cpp:305   powerStateWillChangeTo: found flag=kIOPMPowerOn (2)
2/1/13 4:15:33.000 AM kernel[0]: /drv/ MacModule.cpp:304   powerStateDidChangeTo: flags=2 stateNumber=3
2/1/13 4:15:33.000 AM kernel[0]: /drv/ MacModule.cpp:305   powerStateDidChangeTo: found flag=kIOPMPowerOn (2)
2/1/13 4:15:33.000 AM kernel[0]: Previous Sleep Cause: 5
2/1/13 4:15:33.000 AM kernel[0]: Previous Shutdown Cause: 0
2/1/13 4:15:33.000 AM kernel[0]: TBT W (2): 0x0100 [x]
2/1/13 4:15:33.000 AM kernel[0]: AppleBCM5701::selectMedium - autoselect, any duplex, EEE allowed, flow control allowed
2/1/13 4:15:33.000 AM kernel[0]: Ethernet [AppleBCM5701Ethernet]: Link down on en0
2/1/13 4:15:33.000 AM kernel[0]: Ethernet [AppleBCM5701Ethernet]: Link up on en0, 1-Gigabit, Full-duplex, Symmetric flow-control, Debug [796d,0301,0de1,0300,cde1,3800]
2/1/13 4:15:33.000 AM kernel[0]: Graphics suppressed 6317 ms
2/1/13 4:15:33.519 AM hidd[61]: MultitouchHID: device bootloaded
2/1/13 4:15:33.811 AM configd[17]: network changed: v4(en0-:192.168.0.110) DNS- Proxy- SMB
2/1/13 4:15:33.901 AM com.apple.time[11]: Next maintenance wake [Backup Interval]: <date: 0x7fe64cb0f4d0> Thu Jan 31 23:59:10 2013 MST (approx)
2/1/13 4:15:33.901 AM com.apple.time[11]: Requesting maintenance wake [Backup Interval]: <date: 0x7fe64cb0f4d0> Thu Jan 31 23:59:10 2013 MST (approx)
2/1/13 4:15:34.576 AM KernelEventAgent[59]: tid 00000000 received event(s) VQ_DEAD (32)
2/1/13 4:15:34.577 AM KernelEventAgent[59]: tid 00000000 type 'smbfs', mounted on '/Volumes/home', from '//jason@bogart/home', dead
2/1/13 4:15:34.577 AM KernelEventAgent[59]: tid 00000000 force unmount //jason@bogart/home from /Volumes/home
2/1/13 4:15:34.578 AM KernelEventAgent[59]: tid 00000000 found 1 filesystem(s) with problem(s)
2/1/13 4:15:34.613 AM KernelEventAgent[59]: tid 00000000 received event(s) VQ_DEAD (32)
2/1/13 4:15:34.615 AM KernelEventAgent[59]: tid 00000000 type 'smbfs', mounted on '/Volumes/Movies', from '//jason@bogart/Movies', dead
2/1/13 4:15:34.618 AM KernelEventAgent[59]: tid 00000000 force unmount //jason@bogart/Movies from /Volumes/Movies
2/1/13 4:15:34.626 AM KernelEventAgent[59]: tid 00000000 type 'smbfs', mounted on '/Volumes/Music', from '//jason@bogart/Music', dead
2/1/13 4:15:34.629 AM KernelEventAgent[59]: tid 00000000 force unmount //jason@bogart/Music from /Volumes/Music
2/1/13 4:15:34.666 AM KernelEventAgent[59]: tid 00000000 type 'smbfs', mounted on '/Volumes/Photos', from '//jason@bogart/Photos', dead
2/1/13 4:15:34.667 AM KernelEventAgent[59]: tid 00000000 force unmount //jason@bogart/Photos from /Volumes/Photos
2/1/13 4:15:34.674 AM KernelEventAgent[59]: tid 00000000 type 'smbfs', mounted on '/Volumes/Public', from '//jason@bogart/Public', dead
2/1/13 4:15:34.674 AM KernelEventAgent[59]: tid 00000000 force unmount //jason@bogart/Public from /Volumes/Public
2/1/13 4:15:34.681 AM KernelEventAgent[59]: tid 00000000 type 'smbfs', mounted on '/Volumes/Videos', from '//jason@bogart/Videos', dead
2/1/13 4:15:34.682 AM KernelEventAgent[59]: tid 00000000 force unmount //jason@bogart/Videos from /Volumes/Videos
2/1/13 4:15:34.695 AM KernelEventAgent[59]: tid 00000000 type 'smbfs', mounted on '/Volumes/TV', from '//jason@bogart/TV', dead
2/1/13 4:15:34.697 AM KernelEventAgent[59]: tid 00000000 force unmount //jason@bogart/TV from /Volumes/TV
2/1/13 4:15:34.697 AM KernelEventAgent[59]: tid 00000000 found 6 filesystem(s) with problem(s)
2/1/13 4:15:34.730 AM configd[17]: network changed: v4(en0+:192.168.0.110) DNS+ Proxy+ SMB
2/1/13 4:15:34.733 AM coreservicesd[34]: SFLEntryBase::ListHasChanged mach_msg returned 10000004d
2/1/13 4:15:34.734 AM coreservicesd[34]: SFLEntryBase::ListHasChanged mach_msg returned 10000004d
2/1/13 4:15:36.741 AM mDNSResponderHelper[12635]: do_mDNSInterfaceAdvtIoctl: ioctl call SIOCGIFINFO_IN6 failed - error (22) Invalid argument
2/1/13 4:15:36.742 AM mDNSResponderHelper[12635]: do_mDNSInterfaceAdvtIoctl: ioctl call SIOCGIFINFO_IN6 failed - error (22) Invalid argument
2/1/13 4:15:39.670 AM ath[11956]: lockssl_handshake (thread 0x7fff7ace9180): SSL handshake fatal lower level error -1: SSL_ERROR_WANT_READ
2/1/13 4:15:46.167 AM SyncServer[12690]: [0x7fd4f940bd70] |DataManager|Warning| Client com.apple.Mail sync alert tool path /System/Library/Frameworks/Message.framework/Resources/MailSync does not exist.
2/1/13 4:15:46.531 AM com.apple.usbmuxd[42]: HandleUSBMuxConnect Client 0x100502a10-AppleMobileDeviceHelper/com.apple.SyncServices.AppleMobileDeviceHelper requesting attach to 0x7a:62078 failed, no such device
2/1/13 4:15:46.538 AM AppleMobileDeviceHelper[11957]: AMDeviceConnect (thread 0x7fff7ace9180): Could not connect to lockdown port (62078) on device 122 - 2e028d911ba6cccc9d133418ec87aae39f56fd09: 0xe8000084.
2/1/13 4:15:46.545 AM AppleMobileDeviceHelper[11957]: 11957:2060358016|DeviceLinkListener.c:_copyMobileDeviceValue| ERROR: Could not connect to attached device: This device is no longer connected. (132)
2/1/13 4:15:46.584 AM com.apple.usbmuxd[42]: HandleUSBMuxConnect Client 0x100502a10-AppleMobileDeviceHelper/com.apple.SyncServices.AppleMobileDeviceHelper requesting attach to 0x7b:62078 failed, no such device
2/1/13 4:15:46.585 AM AppleMobileDeviceHelper[11957]: AMDeviceConnect (thread 0x7fff7ace9180): Could not connect to lockdown port (62078) on device 123 - 2e028d911ba6cccc9d133418ec87aae39f56fd09: 0xe8000084.
2/1/13 4:15:46.586 AM AppleMobileDeviceHelper[11957]: 11957:2060358016|DeviceLinkListener.c:_copyMobileDeviceValue| ERROR: Could not connect to attached device: This device is no longer connected. (132)
2/1/13 4:15:46.586 AM com.apple.usbmuxd[42]: HandleUSBMuxConnect Client 0x100502a10-AppleMobileDeviceHelper/com.apple.SyncServices.AppleMobileDeviceHelper requesting attach to 0x7c:62078 failed, no such device
2/1/13 4:15:46.587 AM AppleMobileDeviceHelper[11957]: AMDeviceConnect (thread 0x7fff7ace9180): Could not connect to lockdown port (62078) on device 124 - 2e028d911ba6cccc9d133418ec87aae39f56fd09: 0xe8000084.
2/1/13 4:15:46.587 AM AppleMobileDeviceHelper[11957]: 11957:2060358016|DeviceLinkListener.c:_copyMobileDeviceValue| ERROR: Could not connect to attached device: This device is no longer connected. (132)


----------

I also just got the ********* support I've ever received from Apple. After convincing the front line technician to bump me up to 2nd level support the 2nd level support "engineer" told me they don't support SMB shares. Really really unbelievable.
 

xgman

macrumors 603
Aug 6, 2007
5,697
1,425
2/1/13 4:15:34.578 AM KernelEventAgent[59]: tid 00000000 found 1 filesystem(s) with problem(s)
2/1/13 4:15:34.613 AM KernelEventAgent[59]: tid 00000000 received event(s) VQ_DEAD (32)


Run a disk repair of some sort on the share maybe.
 

jmpage2

macrumors 68040
Original poster
Sep 14, 2007
3,237
607
2/1/13 4:15:34.578 AM KernelEventAgent[59]: tid 00000000 found 1 filesystem(s) with problem(s)
2/1/13 4:15:34.613 AM KernelEventAgent[59]: tid 00000000 received event(s) VQ_DEAD (32)


Run a disk repair of some sort on the share maybe.

You can't repair a network volume. There's nothing wrong with the share, all of the other devices in the home see those shares just fine... it's just the new iMac that is having trouble.
 

rezwits

macrumors 6502a
Jul 10, 2007
838
436
Las Vegas
WiFi?

Oh I forgot to ask, WiFi or Ethernet?

Cause I have a similar problem. With my MacBook 17" 2011, when I get a drop in WiFi, the Popup for my AFPs, gives me the "Disconnect" "Ignore" options, I just click "Ignore", and then when my WiFi kicks back in, the shares are online.

But if you are on ethernet, yeah I don't what that's about...

Bummer
 

volvo64

macrumors newbie
Jan 30, 2013
8
0
I have a simliar problem in a domain environment. I have 3 mapped network drives on a brand new iMac and they work just fine on initial login but eventually drop. Instead of a login script I added the volumes to Startup Items in the Users CP. This is not a work-stopper since I showed the user how to reconnect the shares but it certainly is annoying. And since one of our 3-letter overlords is now thinking he might need a Mac (hell no), it will be a work-stopper if he gets one.

+1 for this problem. Also on wired ethernet.
 
Last edited:

jmpage2

macrumors 68040
Original poster
Sep 14, 2007
3,237
607
I have possibly found a workaround achieved by changing a couple of things. First, I set a static ip on the iMac, second I turned off the energy setting for network access as this is what is waking the iMac up every two hours when it is sleeping. My suspicion is that when it wakes this way it is in a low power mode that might be playing havoc with the NIC coming up properly which results in the shares being booted. So far in three days not one disconnection. I suspect this is a driver problem in the new chipset being used, but apple clearly doesn't care as they complained to me that it is not supported to do network shares from their machines.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.