Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using CentOS 6.2 and I want to disable automount of pendrive.

what is the procedure?

which file should I edit?

share|improve this question

As root or sudo:

/etc/init.d/autofs stop

If you don't want it to come back after a reboot, do this as well:

chkconfig autofs off

Now you will have to mount your devices manually. Actually this isn't the case on my SL6.3 box, so I was wrong, I guess it has to do with udev.

And Finally here is the answer you probably want:

share|improve this answer

You need to go into the /etc/fstab file, and assign the no-auto flag to your drive. I don't know how to comment on your question (which I would do, since this is not a complete answer), but I'll post it here to help out.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.