2023年12月18日更新:
出现这种情况也可以尝试如下命令取消挂载:
umount -l /home
取消挂载 /home
时出现:
umount: /home: device is busy
原因是因为有程序在使用/home
目录,我们可以使用fuser查看那些程序的进程,然后杀掉就可以了.
$ fuser -m /home
/home: 10278c 10279c 10280c 10281c 10282c 10295 10365 18222c
命令:
kill -9 pid