【问题标题】:OS X / Synology NAS stuck share (home / home-1)OS X / Synology NAS 卡住共享 (home / home-1)
【发布时间】:2017-05-08 07:07:56
【问题描述】:

我正在使用 Mac OS X 10.11.6 和 VirtualBox 5.1.12,在我的 Synology NAS 上有一个共享(“家庭”)。

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

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

一切正常,直到 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)

现在,如果我转到查找器,单击我的“主页”共享(从收藏夹侧边栏),然后再次运行上述命令,我会得到以下结果。

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自动更新,我醒来发现我的虚拟机不再可用!

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

我想我的问题是,这正常吗?有什么方法可以强制卸载“home”,这样我就不再获得“home-1”共享了吗?

我确实试过这个命令

umount /volumes/home

结果

umount: /volumes/home: not currently mounted

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

最终,如果可能的话,我总是希望我的 NAS 共享成为“home”而不是“home-1”,有什么方法可以做到这一点,或者如果我做的事情根本上错了,有什么建议吗?

提前致谢。

【问题讨论】:

    标签: macos share reboot nas


    【解决方案1】:

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

    1. 打开查找器
    2. 选择前往 > 前往文件夹...
    3. 输入“/volumes”

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-04-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-11-17
      相关资源
      最近更新 更多