卸載掛載的盤提示以下:web
[root@web2-server yum.repos.d]# umount /mnt/cdrom/ umount: /mnt/cdrom: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1))
[root@web2-server yum.repos.d]# umount /mnt/cdrom/ -f //強制卸載也不行 umount2: 設備或資源忙 umount: /mnt/cdrom: device is busy. (In some cases useful info about processes that use the device is found by lsof(8) or fuser(1)) umount2: 設備或資源忙
[root@web2-server yum.repos.d]# fuser -m /mnt/cdrom/ bash
/mnt/cdrom/: 1338c 5830c //佔用進程pid ide
#fuser -m -k /mnt/cdrom/ //或者查詢後直接殺死進程 後面的2步就不須要執行了server
若是仍是不行,還能夠強行解除掛載進程
umount -l /mnt/cdrom資源
強行解除掛載it
[root@web2-server yum.repos.d]# ps aux |grep 1338 //查看佔用進程 class
root 1338 0.0 0.2 108292 1912 pts/2 Ss+ 14:27 0:00 -bash grep
root 1423 0.0 0.1 103236 884 pts/1 S+ 14:49 0:00 grep 1338yum
# 在使用kill 殺掉進程