Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Is it possible to Disable auto mount of External Harddrives or USB's in RHEL.

For security reasons I have to disable this feature.

And when I need it I will enable it back.

share|improve this question
In nautilus? (The file manager) –  warl0ck Dec 30 '12 at 6:48
I think you should manipulate udev's rules. –  PersianGulf Dec 30 '12 at 8:09
How about this service autofs stop and chkconfig autofs off –  OmiPenguin Dec 30 '12 at 10:15
RHEL5 does not auto mount these (at least not on my installations) - what are you referring to? I need to right-click on a symbol on my desktop to mount any such device - after udev made the device appear. –  Nils Dec 30 '12 at 20:56
@Nils Im referring to External Hard drives. Wrong RHEL 5 does automount External hard drive once you mount them atleast mine does. And how do you right click the device which is not mounted as far as I know unmounted devices doesnot appear on Desktop. –  OmiPenguin Dec 31 '12 at 6:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.