當rc.local沒有執行預期中的動作可以依照下方方式來找出問題,通常是指令打錯居多!
To be sure rc.local is being called just append to it a line for debugging:
echo $(date) - Running >> /var/test.run
Reboot and check /var/test.run
To check your scripts errors just use:
/path/to/script > /var/myscript.log 2>&1
This will make sure the output and errors will be written to /var/myscript.log
修改完畢執行#sh /etc/rc.d/rc.local即可測試不用重新開機!
2011年3月17日 星期四
CentOS mount VirtualBox share folder
手動指令
#mount -t vboxsf 共用資料夾名稱 /自建目錄
注意"共用資料夾名稱"可在VirtualBox>裝置>共用資料夾>名稱看到,此指令重開機後就無效。
如果要每次開機自動mount上去,似乎只要安裝過Guest Additions後,可在/media內找到共用目錄。
更新:
這次安裝CentOS6可能是少勾選幾個套件,所以安裝Guest Additions比較麻煩:
1.選擇裝置>安裝Guest Additions
2.#mount /dev/cdrom1 /mnt (先確認是否在VB上設定好光碟機)
3.#yum install -y kernel-devel-2.6.....(因執行VboxLinusAddtions.run告知要安裝)
4.#/mnt/VboxLinusAddtions.run
安裝過程出現Installing the Windows System drivers[FAILED]可以無需理會
#mount -t vboxsf 共用資料夾名稱 /自建目錄
注意"共用資料夾名稱"可在VirtualBox>裝置>共用資料夾>名稱看到,此指令重開機後就無效。
如果要每次開機自動mount上去,似乎只要安裝過Guest Additions後,可在/media內找到共用目錄。
更新:
這次安裝CentOS6可能是少勾選幾個套件,所以安裝Guest Additions比較麻煩:
1.選擇裝置>安裝Guest Additions
2.#mount /dev/cdrom1 /mnt (先確認是否在VB上設定好光碟機)
3.#yum install -y kernel-devel-2.6.....(因執行VboxLinusAddtions.run告知要安裝)
4.#/mnt/VboxLinusAddtions.run
安裝過程出現Installing the Windows System drivers[FAILED]可以無需理會
訂閱:
文章 (Atom)