在virtualbox中挂载共享文件夹的问题

时间:2017-02-02 18:49:38

标签: macos debian virtualbox shared-directory

我正在尝试在virtualbox中的MacOS(Host)和Debian(Guest)之间创建一个共享文件夹。我已经完成了安装guest添加的步骤,创建了一个名为“share”的共享文件夹和一个名为“sf”的debian文件夹,但是当我尝试运行时

sudo mount -t vboxsf share ~/sf

我收到错误

mount: realpath /Users/USERNAME/sf: No such file or directory

我的印象是第二条路径是Debian中的目录。当我删除〜/。

时也会发生这种情况

1 个答案:

答案 0 :(得分:0)

看起来您正在尝试从OSX shell运行此命令。那可能是这样吗?

如果是,请在Debian guest上切换到您的shell。在运行Sub Makro1() ' ' Makro1 Makro ' Set ws = ActiveSheet 'sheet containing your numbers in column A ActiveWorkbook.Worksheets.Add For Each nummer In ws.Range("A1:A10") If nummer.Text = "" Then Exit For For Each qt In ActiveSheet.QueryTables qt.Delete Next With ActiveSheet.QueryTables.Add(Connection:= _ "URL;http://195.198.34.45/trav/hast/visa/" & nummer.Text & "/resultat", Destination:=Range("$A$1")) .Name = "resultat" .FieldNames = True .RowNumbers = False .FillAdjacentFormulas = False .PreserveFormatting = True .RefreshOnFileOpen = False .BackgroundQuery = True .RefreshStyle = xlInsertDeleteCells .SavePassword = False .SaveData = True .AdjustColumnWidth = True .RefreshPeriod = 0 .WebSelectionType = xlEntirePage .WebFormatting = xlWebFormattingNone .WebPreFormattedTextToColumns = True .WebConsecutiveDelimitersAsOne = True .WebSingleBlockTextImport = False .WebDisableDateRecognition = True .WebDisableRedirections = False .Refresh BackgroundQuery:=False nummer.Offset(0, 1) = ActiveSheet.Cells(21, 1) End With Next Application.DisplayAlerts = False ActiveSheet.Delete Application.DisplayAlerts = True End Sub 命令之前,还要确保目录~/sf确实存在。

希望这有帮助。