I am trying to improve the way in which my phone is mounted on my desktop. I would like to find a way to prevent a specific partition on a specific disk from being mounted on my desktop running Debian Squeeze.
Currently, whenever I plug in my Droid 2, the droid's root partition, as well as a Motorola driver partition automatically mount. I have added the root partition to my fstab (using blkid) so that it will mount to the specified directory, but I am not familiar with any method of preventing something from mounting. Is this possible from within fstab? Should I even be using HAL?
Here is some output from mount:
/dev/sr1 on /media/Motorola type iso9660 (ro,nosuid,nodev,uhelper=hal,uid=1000)
/dev/sdk1 on /mnt/droid type vfat (rw,noexec,nosuid,nodev,umask=006,gid=45,user=me)
The problem I am experiencing is that on disconnect, I get a bunch of 'ghost' partitions that cannot be unmounted:
/dev/sr1 on /media/Motorola type iso9660 (ro,nosuid,nodev,uhelper=hal,uid=1000)
/dev/sr2 on /media/Motorola type iso9660 (ro,nosuid,nodev,uhelper=hal,uid=1000)
/dev/sr3 on /media/Motorola_ type iso9660 (ro,nosuid,nodev,uhelper=hal,uid=1000)
/dev/sr4 on /media/Motorola__ type iso9660 (ro,nosuid,nodev,uhelper=hal,uid=1000)
/dev/sr5 on /media/Motorola___ type iso9660 (ro,nosuid,nodev,uhelper=hal,uid=1000)
/dev/sr6 on /media/Motorola____ type iso9660 (ro,nosuid,nodev,uhelper=hal,uid=1000)
TL;DR
- Are there any mount options that are preferred/designed for removable medium?
- Is there a way to 'ban' a partition from being mounted?