Joh*_*ood 7 permissions virtualbox shared-folders
在我的主机系统(Windows 8 Pro 64 位)上,我安装了 VirtualBox(4.2.12)并安装了 Ubuntu 12.04 32 位作为来宾系统。我还安装了 VirtualBox 来宾实用程序来创建共享文件夹。
现在,在创建共享文件夹后,我将我的用户 ID 添加到组中vboxsf,该组是共享文件夹的所有者
sudo usermod -a -G vboxsf <my-user-id>
重新登录Ubuntu系统后,我可以访问共享文件夹并在其中创建一个文本文件。但是在使用像 gedit 或 Geany 这样的文本编辑器时,我遇到了一个奇怪的问题。当我尝试保存文件时,原始文件将从磁盘中删除并且 gedit 告诉我
Could not save the file /media/sf_shared_folder/test.txt 和
Unexpected error: Error renaming temporary file: Text file busy
我已经在群里了,为什么会发生冲突?以及如何解决它们?

小智 7
我遇到了同样的问题。我的设置:VirtualBox 4.2.12 和 Ubuntu 13.04 来宾在 W7SP1 主机上运行,使用 fstab 像这样安装了 Windows 文件夹
dev /home/dregad/dev vboxsf auto,rw,uid=dregad,gid=dregad,umask=0022,dmode=0755,fmode=0644 0 0
Run Code Online (Sandbox Code Playgroud)
我正在使用Geany。保存文件失败,并出现与上述 gedit 问题中描述的类似症状(也失败)。错误信息如下:
Error saving file.
Error renaming temporary file: Text file busy
The file on disk may now be truncated!
Run Code Online (Sandbox Code Playgroud)
我对 Geany 的解决方案:
我很少使用它,所以不确定 gedit 是否提供了类似的技巧,但是 FWIW,你可能想看看这个 stackexchange question,因为它提供了一种解决方法。
| 归档时间: |
|
| 查看次数: |
12253 次 |
| 最近记录: |