解决 "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 到现在,这种情形还是一次遇到。
继续阅读