顯示具有 win7 標籤的文章。 顯示所有文章
顯示具有 win7 標籤的文章。 顯示所有文章

2014年7月22日 星期二

Virtualbox 共用資料夾無法symbolic link問題

在寫case的時候遇到無法建symbolic link的問題,顯示唯讀的檔案系統。搜尋了一下發現是virtualbox在win7上的問題,跟管理員權限與virtualbox要打開設訂有關。

Fixing your virtualbox shared folder symlink error

Operations such as installing node.js or python virtualenv to a virtualbox writable shared folder can fail if you try to do this as a linux (ubuntu) virtualbox guest running Windows 7 host.
The cause is symlink permission.
Typical error:
ln -fs out/Release/node node
ln: failed to create symbolic link `node': Read-only file system
It can also be a “Protocol error”.
This happens even if your shared folder is writable.

Fix: Enable symlinks feature in VirtualBox

Run at cmd prompt:
  1.     
  2. VBoxManage setextradata YOURVMNAME VBoxInternal2/SharedFoldersEnableSymlinksCreate/YOURSHAREFOLDERNAME 1  
  3.     
Verify by running:
  1.     
  2. VBoxManage getextradata YOURVMNAME enumerate  
  3.     
If your user belongs to Administrators group then start VirtualBox with “Run as Administrator”!

上面的參數請視情況修改:
  • c:\Oracle\VirtualBox\ : 這是VirtualBox的預設資料夾,如果安裝在不同資料夾,請自行修改。
  • YOURVMNAME : 請修改為你要開啟的VM名稱。
  • YOURSHAREFOLDERNAME :修改為VM設定中共用資料夾的名稱

參考資料
http://www.plumeqi.com/post/VirtualBox-shared-folder-symlin-error.html
http://ahtik.com/blog/2012/08/16/fixing-your-virtualbox-shared-folder-symlink-error/
http://gwokae.mewggle.com/wordpress/index.php/archives/1097

2013年11月14日 星期四

windows7 檔案圖示上有鎖怎麼去除

從右鍵內容-安全性-進階-權限(分頁)-變更權限-包括從此物件的父項繼承而來的權限(打勾)
-確定

windows系統-windows 7共享文件夾上的小鎖怎麽去除
這個根本不影響到我們的正常使用,但是今天卻被問到了用過windows 7的朋友可能知道,在共享文件的時候,文件夾上會出現壹個小鎖的圖標用來方便辨認,可是問題也出現了哪就是如果取消共享的時候,小鎖盡然還在,是不是很惱人。當然我說過了這個問題很蛋疼。搞不搞都無所謂,但是別人既然問了,哪就得找到方法,不然太沒有面子了是吧。搗騰了壹下發現

  1.可以通過添加共享文件夾用戶組實現。

  做法:依次打開妳的共享文件夾屬性–“安全”選項,添加“Authenticated Users”組。

  缺點:似乎下次共享時,添加的“Authenticated Users”組又沒了,故又會出現小鎖。

  2.妳的共享文件夾“屬性”-“安全”選項中選擇“高級”–>”權限” 中選擇“更改權限”,勾選“包括可從該對象的父項繼承的權限”,確定後就可看見小鎖圖標消失。

參考資料
http://support.microsoft.com/kb/981799/zh-tw (如果打不開則看這個)