2月 24, 2011
Device or resource busyエラーでumountできない件
大したことじゃないけど、
たまにumountコマンド流したらこういうエラーが上がってくる。。。
[root@centos ~]# umount /mnt/mountfile/ unmount error 16 = Device or resource busy Refer to the umount.cifs(8) manual page (man 8 umount.cifs) unmount error 16 = Device or resource busy Refer to the umount.cifs(8) manual page (man 8 umount.cifs)
その時はオプションで-lを付けて実行すればよい。。。
[root@centos ~]# umount -l /mnt/mountfile/
説明。。。
[root@centos ~]# man umount -l lazy アンマウント。現在のファイルシステムの階層構造から指定された ファイルシステムを切り離し、ファイルシステムへの全ての参 照 が busy でなくなった時点ですぐに整理する。 (カーネル 2.4.11 以降である必要がある。)
他にも
[root@centos ~]# fuser -muv /mnt/mountfile/
実行結果で関連なプロセスをkillすれば、問題なくumountできるでしょう。。。