在winxp下虚拟ubuntu,在ubuntu下访问win的共享文件夹时出现如下错误:
/sbin/mount.vboxsf: mounting failed with the error: No such device
1,若要使用共享文件夹功能,必须安装linux guest additions
2,lsmod | grep vboxvfs,确保加载了vboxvfs模块,若没有,使用sudo modprobe vboxvfs加载
3,新建一个文件夹,比如/mnt/share
4, sudo mount -t vboxsf media /mnt/share/,其中media为共享文件夹的名称
5,cd /mnt/share
6,ls即可
今天又碰到另一个问题:/sbin/mount.vboxsf: mounting failed with the error: Protocol error
解决办法:
sudo rmmod vboxvfs
sudo modprobe vboxvfs
sudo mount -t vboxsf media /mnt/share/
版本:
virtualbox:1.5.6
ubuntu:8.04 beta
装好后都挺好的,就是分辨率只有800*600,不能调,全屏后很难看,装了guest addition还是不管用,后来google了一把,直接把/etc/X11/xorg.conf对应的地方改为如下的就行了:
Section “InputDevice”
Identifier “Configured Mouse”
Driver “vboxmouse”
Option “CorePointer”
EndSection
Section “Device”
Identifier “Configured Video Device”
Driver “vboxvideo”
EndSection
Section “Monitor”
Identifier “Configured Monitor”
EndSection
Section “Screen”
Identifier “Default Screen”
Monitor “Configured Monitor”
Device “Configured Video Device”
DefaultDepth 24
SubSection “Display”
Modes “”1024×768″ “800×600″ “640×480″ <– add the resolution you want
EndSubSection
EndSection
然后重启X就ok了。
ps,关于安装linux guest additions,在启动的ubuntu系统那个vbox菜单栏–>设备–>安装虚拟电脑工具包,这样会在桌面上出现一个iso,然后进入终端,
~>cd cdrom
~>sudo ./VBox….run
安装完后重启ubuntu就好了