解決 "maximal mount count reached" 與硬碟檢測

檢查 mount 次數

當 mount 硬碟時老是出現

"EXT3-fs warning: maximal mount count reached, running e2fsck is recommended"

是提醒你該用 e2fsck 做檔案系統的檢查,請依下列步驟處理:

1. 查看目前的 mount 次數及限制

$ tune2fs -l /dev/sdb1 | grep ^M
Mount count:              26
Maximum mount count:      22

2. 取消最大 mount 次數檢查

$ tune2fs -c0 -i0 /dev/sdb1
tune2fs 1.39 (29-May-2006)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds

3. 查看目前的 mount 次數及限制

$ tune2fs -l /dev/sdb1 | grep ^M
Mount count:              26
Maximum mount count:      -1

繼續閱讀

解決 VMware 出現 "Failed to lock the file" 的錯誤

VMware Server 當掉後重新啟動 Guest OS 時,出現

cannot open the disk '*.vmdk' or one of the snapshot disk is depends on.
Reason: Failed to lock the file.

解決方法一:

進到 VMware 的 Guest OS 資料夾,將所有的 *.lck 資料夾或檔案刪除

解決方法二:

手動編輯 *.vmk,加入一行:

disk.locking = "FALSE"

感覺第二種解決方式會造成未來檔案使用時的安全性問題,所以我是使用第一種方式解決。

[PHP]安裝 Roundcube Webmail for IMAP Server

Roundcube Webmail 是一套「僅支援 IMAP」的 Webmail 程式,它結合了 Ajax 技術,讓 UI 變得更容易操作。

Roundcube 是我目前看到最能兼具簡單與華麗的 Webmail,而且它也是少數支援多國語言介面的 OpenSource 之中,能夠把繁體中文翻譯得很不錯的。

它可以自訂的項目很多,不過對於系統的需求頗高,我也是將系統昇級至 Centos 6 之後才安裝來使用。如果你的環境也是使用 IMAP,非常建議使用 Roundcube。
繼續閱讀

CentOS 6.x 如何安裝 Proftpd

在 CentOS 6.x 安裝 proftpd:

yum -y remove vsftpd
yum -y install proftpd
chkconfig proftpd on

在改好設定檔,重新啟動 proftpd 之後,卻發現 ftp 用戶無法正常登入!!也跟防火牆的設定無關,我從 redhat linux 7.3 使用 proftpd 到現在,這種情形還是一次遇到。
繼續閱讀