mahdionline

Well-Known Member
Oct 18, 2003
127
0
166
we have a centos4.4 + cpanel.

our box have a /tmp and I want to remount it with noexec.

I edit "/etc/fstab" and then try to remount the /tmp for change the setting,
I try " umount /dev/sda6 " I get this error :
umount: /tmp: device is busy
umount: /tmp: device is busy

how can i do it ?

Regard
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,465
30
473
Go on, have a guess
If there are open files on it you cannot umount the drive, you would have to kill any processes that have files open on /tmp. However, there's no need to do that, just remount it instead:

mount -v -o remount /tmp