我在Synology NAS上使用Mac OS X 10.11.6和VirtualBox 5.1.12,並使用共享(「home」)。OS X/Synology NAS卡住份額(家庭/住宅-1)
我有這個問題很長一段時間,但從來沒有找到一個合適的解決方案。
我看着的VirtualBox虛擬磁盤的位置時使用的主文件夾從NAS共享,路徑爲: /卷/家庭/應用內容/ VirtualBox虛擬/虛擬磁盤
一切工作正常,直到Synology NAS將執行更新並重新啓動。然後我發現自己處於不再擁有「家庭」份額,而是「家庭1」份額的位置,這意味着VirtualBox無法找到虛擬磁盤,因爲它正在「家」而不是「家」-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 .
[email protected] 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%[email protected]/home on /Volumes/home-1 (afpfs, nodev, nosuid, mounted by jamesgriffin)
/Volumes/home:
total 0
drwx------+ 2 501 80 68 8 May 07:05 .
[email protected] 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
[email protected] 1 501 20 636 8 May 07:40 .
[email protected] 6 0 80 204 8 May 07:40 ..
[email protected] 1 501 20 38916 8 May 07:40 .DS_Store
[email protected] 1 501 20 264 10 Jul 2016 .TemporaryItems
-rwx--x--x 1 501 20 20992 18 Apr 20:03 ShowCrosshairs.dll
[email protected] 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
[email protected] 1 501 20 806 24 Dec 10:50 sorting
[email protected] 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提供了「家-1」的共享新的名字,因爲它看到的「家」的拍攝)。然而,這是相當不方便的,因爲我打開了我的虛擬機,做了一些工作,上牀睡覺,NAS自動更新,我醒來後發現我的虛擬機已不可用!
我對終端的瞭解非常有限,所以當我不太確定自己在做什麼時,我不喜歡惹惱它。重新啓動解決了這個問題,但是在這個過程中,我放棄了在虛擬機中完成的任何未保存的工作。 (我經常保存以避免任何問題,但這是一個麻煩,不得不重新啓動機器,並打開一切備份到我的位置,這似乎是錯誤的,我必須這樣做)
我想我的問題是,這是正常的嗎?有沒有辦法強制卸載'家',所以我不再有'家'1分享?
我也嘗試命令
umount /volumes/home
與結果
umount: /volumes/home: not currently mounted
正如我說的,我不喜歡在終端搞亂很多(除非被引導),因爲我真的不知道我在做什麼。
最終,我總是希望我的NAS共享成爲'家',如果可能,永遠不會'家'1',有沒有辦法做到這一點,或者任何建議,如果我正在做一些根本性的錯誤?
在此先感謝。