Sun Virtualbox虛擬機器裡面Ubutnu共用Windows空間的教程

來源:互聯網
上載者:User

用Sun Virtualbox虛擬機器安裝Ubuntu後給ubuntu系統{
function onclick()
{
function onclick()
{

}
}
}" onmouseover="function onmouseover()
{
function onmouseover()
{
function onmouseover()
{
if(typeof(showTitle)!='undefined'){this.title='';window.clearTimeout(hideTO);showTitle(event, this, 0,'');}
}
}
}" onmouseout="function onmouseout()
{
function onmouseout()
{
function onmouseout()
{
if(typeof(showTitle)!='undefined'){mouseIsOverLayer = false; mouseOverWhileLoad = false; hideTO = window.setTimeout('checkIfMouseOverLayer()',500);}
}
}
}" href="http://action.utops.cc/click.jsp?adsId=412&adsLeagueId=5&adsUserId=1&siteId=657&siteLeagueId=5&siteUserId=564&scId=2&adsType=98&prices=1.51&checkCode=4cde36e85d4c6db43cce3debc2980c66_122.226.213.11&click=1&url=http%3A//www.foho.cc/totole/index.html&v=0&keyword=%u5206%u914D&s=http%3A//www.linuxidc.com/Linux/2010-04/25572.htm&rn=450484---2010-7-2-16:10:52" target="_blank">分配資料空間應該怎麼做呢?方法如下:

第一步(前提),安裝增強功能,教程點這裡。

安裝玩增強功能後就是設定共用空間了,Vbox菜單上面選擇:

 

裝置-分配資料空間-添加資料空間

設定好資料空間位置和{
function onclick()
{
function onclick()
{

}
}
}" onmouseover="function onmouseover()
{
function onmouseover()
{
function onmouseover()
{
if(typeof(showTitle)!='undefined'){this.title='';window.clearTimeout(hideTO);showTitle(event, this, 2,'');}
}
}
}" onmouseout="function onmouseout()
{
function onmouseout()
{
function onmouseout()
{
if(typeof(showTitle)!='undefined'){mouseIsOverLayer = false; mouseOverWhileLoad = false; hideTO = window.setTimeout('checkIfMouseOverLayer()',500);}
}
}
}" href="http://action.utops.cc/click.jsp?adsId=427&adsLeagueId=5&adsUserId=1&siteId=657&siteLeagueId=5&siteUserId=564&scId=2&adsType=98&prices=1.51&checkCode=5becf33d251da465e57068b3e8cbdacd_122.226.213.11&click=1&url=http%3A//www.foho.cc/rc/index.html&v=0&keyword=%u540D%u5B57&s=http%3A//www.linuxidc.com/Linux/2010-04/25572.htm&rn=617211---2010-7-2-16:10:52" target="_blank">名字(注意:固定還是臨時看你自己是要長期共用還算臨時共用,共用資料夾名最好填寫英文。)

已共用資料夾名為“vv15”為例示範如何掛載共用空間(Ubuntu中)

掛載共用資料夾

重新進入虛擬Ubuntu,在命令列終端下輸入:

sudo mkdir /mnt/shared

sudo mount -t vboxsf vv15 /mnt/shared

其中”vv15″是之前建立的共用資料夾的名字。OK,現在Ubuntu和主機可以互傳檔案了。

假如您不想每一次都手動掛載,可以在/etc/fstab中添加一項

vv15 /mnt/shared vboxsf rw,gid=100,uid=1000,auto 0 0

這樣就能夠自動掛載了。

卸載的話使用下面的命令:

sudo umount -f /mnt/shared

注意:

共用資料夾的名稱千萬不要和掛載點的名稱相同。{
function onclick()
{
function onclick()
{

}
}
}" onmouseover="function onmouseover()
{
function onmouseover()
{
function onmouseover()
{
if(typeof(showTitle)!='undefined'){this.title='';window.clearTimeout(hideTO);showTitle(event, this, 3,'');}
}
}
}" onmouseout="function onmouseout()
{
function onmouseout()
{
function onmouseout()
{
if(typeof(showTitle)!='undefined'){mouseIsOverLayer = false; mouseOverWhileLoad = false; hideTO = window.setTimeout('checkIfMouseOverLayer()',500);}
}
}
}" href="http://action.utops.cc/click.jsp?adsId=426&adsLeagueId=5&adsUserId=1&siteId=657&siteLeagueId=5&siteUserId=564&scId=2&adsType=98&prices=1.51&checkCode=8c450b38bcafce25771ab6f546e35f6e_122.226.213.11&click=1&url=http%3A//www.totole.com.cn&v=0&keyword=%u6BD4%u5982&s=http%3A//www.linuxidc.com/Linux/2010-04/25572.htm&rn=891546---2010-7-2-16:10:52" target="_blank">比如,上面的掛載點是/mnt/shared,如果共用資料夾的名字也是shared的話,在掛載的時候就會出現如下的錯誤資訊:

/sbin/mount.vboxsf: mounting failed with the error: Protocol error

原因分析可以看Tips on running Sun Virtualbox的Shared Folder on a Linux Guest節。

 

我用sudo mount -t vboxsf vv15 /mnt/shared進行手動掛載,當將ubuntu關後再起來,查看/mnt/shared看不到共用檔案,再用sudo mount -t vboxsf vv15 /mnt/shared掛載,竟然出來個“invalid argument”的錯誤,沒辦法,只能先用sudo umount -f /mnt/shared卸載後再掛載,這個就可以看到共用檔案了,我也不知道為什麼這麼奇怪。

上面這個問題應該是由於沒有退出共用目錄,再進去就可以看到共用檔案,其實最主要在mount後系統有沒有重新整理到目錄,具體的重新整理目錄機制我還不瞭解,一般是即出該目錄,再進入就已重新整理這個目錄了,有些也可能要退回到根目錄後再進入想看的目錄才會載入重新整理後的資訊,這實現就比較低級,不人性化的系統的重新整理方式。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.