Hi, I'm trying to prevent SD/CF from automatically mounting when I plug them in. I have had a look in fstab but from my limited knowledge it is not obvious exactly how to prevent devices/filesytems from automatically mounting themselves. I assumed the fstab "noauto" mount option would do the trick, but it doesn't appear to prevent auto detect/mount. Perhaps there is some other process included with the pdaXrom distro (seperate from fstab system) which is monitoring interface ports and mounting??? I'm not sure...

for example, I would like to be able to plug my wifi adapter or SD card in but NOT have it automatically mount, so that I can CHOOSE exactly when I need it mounted and so save a little battery power for the moments when they are actually used. At the moment, whenever I plug my wifi card, I have to unmount it with OpenBox's SD/CF/USB monitor plugin (pdaxrom taskbar). I sometimes forget it has been automatically mounted by which time a large portion of my battery has been used unnecessarily!!

I'm a linux noob, but I'm sure if someone points me in the right direction I can figure the rest out. I'm just not sure where to begin.

In there is this a long list of devices that when detected it runs a script.

Hint: Lines 243-244 for block devices (SD/CF)

Late

Hi guys, thanks for the tips. I believe pdaxii13 uses the 2.4.x kernel, and I can't find an /etc/udev/ dir, so i guess it's not that.

Capn_Fish: I tried commenting out ("#") the fstab entries for CF/SD mounting and then rebooting. It didn't seem to stop the cards from being mounted. So I'm guessing it is definitely something "external" to fstab which is controlling the mounts. Another process/daemon. What exactly? I'm not sure...

I will keep searching for a soulution, but if anyone has any other ideas then pls post. thank you!

"linux is the most powerful and flexible OS"...*IF* you can figure out WHERE you need to look to make the changes you want!

As a temporary fix, although not so easy, you could write a bash script to detect if it's been mounted, and maybe have it trigger an opie-sh pop-up asking you if you want to unmount it or leave it in. Complicated, but I think it can be done.

Has opie-sh been ported for pdaX roms? It's pretty cool to use. My page about it from experience with Sharp ROM:

Monitoring scripts can be tricky...I have one I'm still debugging that tests for the presence of an /var/spool/at job of a specific type, and gives me a popup if there isn't one. You could query every 10 minutes to see if SD is plugged in, give you a popup if it is, and then have it 'umount' the card if you give a certain answer. Maybe set a flag so it won't ask again during current session. Maybe too much work, but it's another possible workaround if the ideal solution doesn't appear.