环境:主机操作系统 是Windows XP ,虚拟机 是Ubuntu 9.10,虚拟机是VirtualBox 3.08。
1. 安装增强功能包(Guest Additions)
在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和主机可以互传文件了。
假如您不想每一次都手动挂载,可以在/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
分享到:
相关推荐
Share between windows and linux
Working with Files Chapter 7. Sharing Chapter 8. Searching Chapter 9. Settings Chapter 10. Location Chapter 11. Using the Camera Chapter 12. Responsive Design Chapter 13. Resources and Localization ...
and encrypt data via streams Design apps that give the illusion of running using live tiles, background transfers, and background tasks Share data between apps using the clipboard and the Share charm ...
These include multitouch, bitmap graphics, interfacing with share and search facilities, printing, working with the sensors (GPS and orientation), text, obtaining input from the stylus (including ...
File Share Services_user_guide_win.pdf
As the Linux server market share continue to grow, so too does the demand for qualified and certified Linux administrators. Certification holders must recertify every five years, but LPI recommends ...
This book has been updated with a new sample app that demonstrates how to build a Windows Store app that interacts with Windows Azure Mobile Services. 1) Building Windows store apps 2) WinJs ...
linux虚拟机环境下与windows共享的设置
introduce linux so
Linux 2.6内核的Fair-Share调度算法研究.pdf
能够监控文件新建,删除,修改等执行动作
Title: Embedded Linux Development with Yocto Project Author: Daiane Angolini, Otavio Salvador Length: 121 pages Edition: 1 Language: English Publisher: Packt Publishing Publication Date: 2014-06-24 ...
RoseVM Cluster(Share)for Windows维护手册 ,基于虚拟化的共享集群解决方案
cmake-3.5.2.zip Windows Source (has \r\n line feeds)Latest Release (3.5.2) The release was packaged with CPack which is included as part of the release. The .sh files are self extracting gziped tar ...
you want to share it with others please use the following link: www.tuxradar.com/linuxstarterpack Once you've settled into Linux, visit www.linuxformat.com to find out more about the UK's best-...
You can also configure your computer to share your files, printers, Web pages, or directory services to other computers. Then, if you choose, you can transition your skills to manage anything from a ...
./configure --prefix=/usr/local/GDAL2.4.1 --with-libtiff=internal --with-geotiff=internal --with-jpeg=internal --with-jpeg12=yes --with-geos=/usr/local/GDAL2.4.1/bin/geos-config --with-mysql
linux 添加汉字
Learn how to carry your personalized Windows experience with you as part of your Microsoft account instead of having it tied to one device, while also keeping everything safe, secure and backed up, ...
Organized by general task (such as working with text, managing files, and manipulating graphics), each section contains a series of step-by-step recipes that help you to get your work done quickly ...