linux中U盘umonut时出现“Device is busy”的解决方法
问题:
#umount /dev/sda1
umount: /mnt/usb: device is busy
查找占用目录进程:
#lsof |grep /mnt/usb
bash 1971 root cwd DIR 8,1 16384 1 /mnt/usb/
bash 2342 root 3r DIR 8,1 16384 1 /mnt/usb/
杀掉进程:
#kill -9 1971
#kill -9 2342
卸载:
#umount /mnt/usb