QNAP: File System is not clean

If you use QNAP which is not connected to UPS you probably see error   “File System is not clean”  very often.  This is my way how to check and clean files system fast on QNAP.

Step 1: You have to connect to QNAP via SSH.
Step 2: Copy and past every line separately.

/etc/init.d/services.sh stop
/etc/init.d/opentftp.sh stop
/etc/init.d/Qthttpd.sh stop
umount /dev/md0
e2fsck -f -v -C 0 /dev/md0