Filesystem is not clean – run fsck

一台服务器非正常关机启动后执行挂载硬盘命令:

1
#mount /dev/ad1s1a /itkylin.com

提示如下信息:

1
2
3
WARNING: R/W mount of /itkylin.com denied.  Filesystem is not clean - run fsck
 
#mount: /dev/ad1s1a : Operation not permitted

解决方法(记得加-t ufs参数):

1
2
3
4
#fsck -t ufs -y /dev/ad1s1a
** /dev/ad1s1a
** Last Mounted on /itkylin.com
** Phase 1 - Check Blocks and Sizes

扫描完之后重新挂载就可以了!