解决 umount: /opt: target is busy 问题

调试新固件的docker需要将/opt/目录挂载为 /mnt/sda3/,思路是先结束占用opt的进程,然后umount。

lsof |grep /opt
kill 15531 
umount /opt

umount: /opt: target is busy.
结果蹦出设备忙错误,强制卸载也无效,试了很多网上的方法都不成。

最后竟然 用 umount 的 lazy模式完成。

umount -l /opt

大功告成!

发布日期:
分类:未分类

作者:刹那

命中有时终须有,命中无时需强求。

发表评论

您的邮箱地址不会被公开。 必填项已用 * 标注