Created
January 20, 2014 01:25
-
-
Save fiedl/8513469 to your computer and use it in GitHub Desktop.
QNAP-NAS: How to check disk if cannot unmount when device is busy.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh admin@nas | |
/etc/init.d/services.sh stop | |
/etc/init.d/xdove.sh stop | |
# See if there are still files open on the disk: | |
lsof |grep /share/MD0_DATA | |
# Kill the open processes if any. | |
umount /dev/md0 | |
e2fsck -f -v -C 0 /dev/md0 | |
# References: | |
# * http://forum.qnap.com/viewtopic.php?t=786 | |
# * http://stackoverflow.com/questions/624154/linux-which-process-is-causing-device-busy-when-doing-umount |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for posting this script; it helped me to solve a minor issue with my QNAP box.
Best wishes and much success in the future!