Skip to content

Instantly share code, notes, and snippets.

@fiedl
Created January 20, 2014 01:25
Show Gist options
  • Save fiedl/8513469 to your computer and use it in GitHub Desktop.
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.
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
@AudetWeb
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment