OS X / Synology NAS stuck share (home / home-1)

OS X / Synology NAS stuck share (home / home-1)

我正在使用 Mac OS X 10.11.6 和 VirtualBox 5.1.12,在我的 Synology NAS 上共享 ("home")。

我遇到这个问题很久了,但一直没有找到合适的解决方案。

我使用 NAS 共享的主文件夹,在 VirtualBox 中查看虚拟磁盘的位置时,路径是: /Volumes/home/app content/VirtualBox/Virtual 磁盘

一切正常,直到 Synology NAS 进行更新并重新启动。然后我发现自己处于不再有 'home' 共享但有 'home-1' 共享的位置,这意味着 VirtualBox 无法找到虚拟磁盘,因为它正在查找 'home' 而不是'home-1'.

这刚刚发生意味着我无法访问虚拟磁盘,如果我运行以下命令

mount ; ls -na /Volumes/home* ; id

我得到以下结果

/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
total 0
drwx------+ 2 501  80   68  8 May 07:05 .
drwxrwxrwt@ 5 0    80  170  8 May 07:25 ..
uid=501(jamesgriffin) gid=20(staff) groups=20(staff),701(com.apple.sharepoint.group.1),12(everyone),61(localaccounts),703(com.apple.sharepoint.group.3),100(_lpoperator),704(com.apple.sharepoint.group.4),702(com.apple.sharepoint.group.2)

现在,如果我转到查找器,点击我的 'home' 分享(从收藏夹边栏),然后再次 运行 上面的命令,我得到以下结果。

mount ; ls -na /Volumes/home* ; id
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
//James%20Griffin@DiskStation.local/home on /Volumes/home-1 (afpfs, nodev, nosuid, mounted by jamesgriffin)
/Volumes/home:
total 0
drwx------+ 2 501  80   68  8 May 07:05 .
drwxrwxrwt@ 6 0    80  204  8 May 07:40 ..

/Volumes/home-1:
total 160
drwxrwxrwx  1 501  20   2710  2 Apr 19:23 #recycle
drwx--x--x  1 501  20    264 12 Feb 11:37 - sort
drwx------@ 1 501  20    636  8 May 07:40 .
drwxrwxrwt@ 6 0    80    204  8 May 07:40 ..
-rwx--x--x@ 1 501  20  38916  8 May 07:40 .DS_Store
drwx--x--x@ 1 501  20    264 10 Jul  2016 .TemporaryItems
-rwx--x--x  1 501  20  20992 18 Apr 20:03 ShowCrosshairs.dll
-rwx--x--x@ 1 501  20  11776 18 Mar 14:52 Thumbs.db
drwx--x--x  1 501  20   1928 26 Feb 13:37 app content
-rwx--x--x  1 501  20    376  3 Jan 18:16 b404b44adb23d84f076ac3193777d7e7d41c39af.Tls
drwx--x--x  1 501  20    264 13 Nov 16:14 collections
drwx--x--x  1 501  20   5804  7 May 12:59 downloads
drwx--x--x  1 501  20    806 12 Feb 11:43 folder stucture testing
drwx--x--x  1 501  20    534 23 Jan 21:16 mac finder shortcuts
drwx--x--x  1 501  20    840 13 Mar 19:33 my work
drwx--x--x  1 501  20    264  8 May 03:26 photo
drwx--x--x  1 501  20    568 16 Dec 14:30 repository
drwx--x--x  1 501  20    704 25 Sep  2016 sorted
drwx--x--x@ 1 501  20    806 24 Dec 10:50 sorting
drwx--x--x@ 1 501  20   2098 20 Apr 01:46 temp
uid=501(jamesgriffin) gid=20(staff) groups=20(staff),701(com.apple.sharepoint.group.1),12(everyone),61(localaccounts),703(com.apple.sharepoint.group.3),100(_lpoperator),704(com.apple.sharepoint.group.4),702(com.apple.sharepoint.group.2)

我想我明白发生了什么(NAS 重新启动,OS X 不释放共享,NAS 启动,OS X 给共享新名称 'home-1' 正如它看到的 'home' 拍摄)。不过这样很不方便,我打开虚拟机,干点活,睡觉,NAS自动更新,醒来发现虚拟机不可用了!

我对终端的了解非常有限,所以当我不太确定自己在做什么时,我不喜欢乱用它。重新启动可以解决问题,但在此过程中,我丢失了在虚拟 Machine 中完成的所有未保存的工作。 (我确实定期保存以避免任何问题,但必须重新启动机器并打开所有备份以返回我原来的位置很麻烦,我必须这样做似乎是错误的)

我想我的问题是,这正常吗?有什么办法可以强行卸载 'home' 这样我就不会再得到 'home-1' 共享了吗?

我试过命令

umount /volumes/home

结果

umount: /volumes/home: not currently mounted

正如我所说,我不太喜欢在终端机上乱搞(除非有人指导),因为我真的不知道自己在做什么。

最终,我总是希望我的 NAS 份额是 'home',如果可能的话永远不要 'home-1',有没有什么办法可以做到这一点,或者如果我做的事情根本上是错误的,有什么建议吗?

提前致谢。

好的,对于可能 运行 遇到此问题的任何其他人,我找到了解决它的方法,而无需重新启动机器。

  1. 打开 Finder
  2. Select前往 > 前往文件夹...
  3. 输入“/volumes”

在这里,我有一个名为 'home' 的文件夹(挂载点)。删除它。

重新加载 'home' 共享,现在我有 'home' 而不是 'home-1'