以卸载/tmp为例

1、系统提示如下错误
umount: /tmp: target is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)
则执行下面命令,在umount
lsof /tmp|tail -n +2 | awk '{print $2}' |sort -u|xargs -I {} kill {}


2、系统提示如下错误
e2fsck 1.42.11 (09-Jul-2014)
/dev/mapper/root_vg-lv_tmp is mounted.
e2fsck: Cannot continue, aborting.
则执行下面命令,
fuser -kuc /dev/mapper/root_vg-lv_tmp

Logo

更多推荐