Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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 have a SD card which is always inserted in my SD-card slot. However, I do not often use it (but do not want to take it out). Currently, it's being auto-mounted every time I start my computer. I feel this might over time wear out the SD card unnecessarily. So my question is: how to prevent this particular SD card from being mounted automatically? Whenever I need it, I'll mount it manually.

I've found this article: http://www.tuxradar.com/answers/706

Which explains exactly what to do using HAL, but given that HAL is deprecated I'm looking for a way of doing this using udev.

Using Arch Linux.

share|improve this question
Is it listed in your /etc/fstab and are you sure it is actually being mounted? Normally unlisted disks are shown in the GUI but not actually mounted until you try to open them. – psusi Jun 14 '12 at 0:57
It's in fact not listed in /etc/fstab, but it becomes available automatically at /var/run/media, without any additional GUI interaction necessary... – user Jun 14 '12 at 1:51
Did my answer work for you? – killermist Jul 24 '12 at 13:17
up vote 1 down vote accepted

Devices mentioned in /etc/fstab will be treated as mentioned there-in. This will prevent whatever auto-system is used to deal with "unknown" devices, when attached.

http://superuser.com/a/439079/139040 includes the recommendation I came up with for how to deal-with/defeat the auto-mounting systems of OSX, but the concepts should translate.

share|improve this answer
Thanks, will try this out soon! – user Jul 7 '12 at 23:37

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.