# umount /dev/sda2
umount: /: target is busy.
perhaps
umount: /dev/sda2: device is busy
This is because some users are using files on the current disk. There are two solutions:
① Force uninstall (not recommended)
umount -l /dev/sda2
② After confirming with the user, close the processes related to these open files
see:
lsof /dev/sda2
Kill program:
lsof /dev/sda2 | awk ‘{print $2}’ | xargs kill -9
Uninstall:
umount /dev/sda2
Similar Posts:
- Umount error: /home: target is busy. [How to Solve]
- umount Error: umount.nfs4: device is busy [How to Solve]
- [How to Solve] Driver/library version mismatch
- Can’t create/write to file ‘/tmp/ (Errcode: 30) [How to Solve]
- How to Solve NFS uninstall directory error
- Nginx Error: too many open files [How to Solve]
- The solution of JPS process information unavailable
- How to read and write multiple files in Python?
- Solve the problem of “ZABBIX discoverer processes 75% busy” in CentOS
- How to Solve Python socket:[Errno 32] Broken pipe