XP下Virtualbox虚拟Ubuntu共享文件夹设置(mounting failed with the error: Protocol error)
来源:互联网 发布:java代码防止反编译 编辑:程序博客网 时间:2024/05/01 18:21
环境:主机操作系统 是Windows XP ,虚拟机 是Ubuntu 9.10,虚拟机是VirtualBox 3.08。
1. 安装增强功能包(Guest Additions)
安装好Ubuntu 9.10后,运行Ubuntu并登录。然后在VirtualBox的菜单里选择"设备(Devices)" -> "安装增强功能包(Install Guest Additions)"。
你会发现在Ubuntu桌面上多出一个光盘图标,这张光盘默认被自动加载到了文件夹/media/cdom0。进入命令行终端,输入:
cd /media/cdom0
sudo ./VboxLinuxAdditions.run
开始安装工具包。安装完毕后会提示要重启Ubuntu。
2. 设置共享文件夹
重启完成后点击"设备(Devices)" -> 共享文件夹(Shared Folders)菜单,添加一个共享文件夹,选项固定和临时是指该文件夹是否是持久的。共享名可以任取一个自己喜欢的,比如"gongxiang",尽量使用英文名称。
3. 挂载共享文件夹
重新进入虚拟Ubuntu,在命令行终端下输入:
sudo mkdir /mnt/shared
sudo mount -t vboxsf gongxiang /mnt/shared
其中"gongxiang"是之前创建的共享文件夹的名字。OK,现在Ubuntu和主机可以互传文件了。(gongxiang文件夹总大小不能超过shared分配的空间!)
假如您不想每一次都手动挂载,可以在/etc/fstab中添加一项
gongxiang /mnt/shared vboxsf rw,gid=100,uid=1000,auto 0 0
这样就能够自动挂载了。
4. 卸载的话使用下面的命令:
sudo umount -f /mnt/shared
注意:
共享文件夹的名称千万不要和挂载点的名称相同。比如,上面的挂载点是/mnt/shared,如果共享文件夹的名字也是shared的话,在挂载的时候就会出现如下的错误信息(看http://www.virtualbox.org/ticket/2265):
/sbin/mount.vboxsf: mounting failed with the error: Protocol error
提示错误
/sbin/mount.vboxsf: mounting failed with the error: Invalid argument
1.取消自动挂载可以解决,
2.r若1没有效果,即在/etc/fstab中添加一项
gongxiang /mnt/shared vboxsf rw,gid=100,uid=1000,auto 0 0
- XP下Virtualbox虚拟Ubuntu共享文件夹设置(mounting failed with the error: Protocol error)
- XP下Virtualbox虚拟Ubuntu共享文件夹设置(mounting failed with the error: Protocol error)
- XP下Virtualbox虚拟Ubuntu共享文件夹设置(mounting failed with the error: Protocol error)
- XP下Virtualbox虚拟Ubuntu共享文件夹设置(mounting failed with the error: Protocol error)
- XP下Virtualbox虚拟Ubuntu共享文件夹设置(mounting failed with the error: Protocol error)
- XP下Virtualbox虚拟Ubuntu共享文件夹设置(mounting failed with the error: Protocol error)
- XP下Virtualbox虚拟Ubuntu共享文件夹设置(mounting failed with the error: Protocol error)
- Win10x64下Vbox安装Ubuntux64共享文件夹报错:/sbin/mount.vboxsf: mounting failed with the error: Protocol error
- /sbin/mount.vboxsf: mounting failed with the error: Protocol
- /sbin/mount.vboxsf: mounting failed with the error: Protocol
- /sbin/mount.vboxsf: mounting failed with the error: Protocol
- XP下Virtualbox虚拟Ubuntu共享文件夹设置
- XP下Virtualbox虚拟Ubuntu共享文件夹设置
- XP下Virtualbox虚拟Ubuntu共享文件夹设置
- XP下Virtualbox虚拟Ubuntu共享文件夹设置
- XP下Virtualbox虚拟Ubuntu共享文件夹设置
- 怎样在XP下Virtualbox虚拟Ubuntu共享文件夹设置
- 【转】XP下Virtualbox虚拟Ubuntu共享文件夹设置
- 从汇编的眼光看C++(之泛型编程)
- FTP 工具类. 可以完成对目录创建的创建、修改、删除,对文件的上传下载等操作
- C语言字符串函数详解(1)
- VS2008 对齐代码
- 《Object-Oriented Programming With ANSI-C》 C++对象模型的经典之作
- XP下Virtualbox虚拟Ubuntu共享文件夹设置(mounting failed with the error: Protocol error)
- 黑马程序员_论坛问题杂记
- iostat来对linux硬盘IO性能进行了解
- 电容降压
- 失败是缺点的积累
- 定时关机,适用于windows系统
- x&(x-1)的巧用:用于判断x是否为2的n次幂,计算二进制1的个数
- 【usaco】4.4.2最小割集PROB Pollutant Control
- joj 1805