FreeBSD – umount device busy

Device busy 문제 해결방안입니다.

[[email protected] /]# umount /home
umount: unmount of /home failed: Device busy

fuser을 설치합니다.

[[email protected] ~]# cd /usr/ports/sysutils/fuser ; make install clean

Since fuser requires root privilegies to access /dev/mem file, ordinary
users can’t use it. If you want to give non-priveleged users access to this
utility you must set setuid bit on fuser executable:

# chmod +s /usr/local/bin/fuser

fuser에 sticky bit 권한을 부여합니다.

[[email protected] ~]# chmod +s /usr/local/bin/fuser

umount 하려는 디렉토리의 사용자, 프로세스를 확인합니다. (웹서버가 사용중이라면 중지 해줍니다.)

[[email protected] ~]# fuser -cu /home
/home: 63537c(www) 63538c(www) 63539c(www) 63540c(www) 63541c(www) 63542c(www)

강제로 죽입니다.

[[email protected] ~]# fuser -k

umount 해봅니다.

[[email protected] ~]# umount /home

Loading Disqus Comments ...
Loading Facebook Comments ...

No Trackbacks.