How to process deviceisbusy in Linux
When Linux manages umount devices, it often encounters "device is busy". If a file system of umount encounters this situation, and you are not in the directory to uninstall. It is very likely that a user or process is using that directory.
# umount /mntumount: /mnt: device is busyumount: /mnt: device is busy
You must use the fuser command to view the process ID and process owner. For example:
# fuser -mu /mnt/mnt: 25781c(root)# kill -9 25781# umount /mnt
In this case, the directory that the rhythmbox user is using is displayed. Then, you can use fuser-ck/dev/sdc1 to kill the process.
# fuser -m /dev/sdc1/dev/sdc1: 538# ps auxw|grep 538donncha 538 0.4 2.7 219212 56792 ? SLl Feb11 11:25 rhythmbox
If all these efforts do not work, after killing the process, you may need to add the-f-l parameter and force uninstall it.
# Umount-f-l/mnt
NOTE:
Run the following command to check the bad parts of the SATA hard disk.
# badblocks -v /dev/sda# badblocks -v /dev/sdb# badblocks -v /dev/mapper/vgosi-lvol1Checking blocks 0 to 10477568Checking for bad blocks (read-only test): done Pass completed, 0 bad blocks found.