Hello Lakshman
I don't know anything about this stuff but it might help. I found it while looking for solutions to a DVD read problem.
Presume you are using ubuntu with Gnome. OK?
In case you want to disable removable media using policy, this might help. It's from
http://osdir.com/ml/linux.debian.dev.../msg00070.html.
Code:
Better is to use this /etc/hal/fdi/policy/preferences.fdi file
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- -*- SGML -*- -->
<!-- This .fdi file prevents automount for every media (storage devices)
e.g. floppy, CD/DVD, USB-Stick, USB-Disk, external hard disk.
The original SuSE SDB supplied version was modified to meet
Brownout needs. -->
<deviceinfo version="0.2">
<device>
<match key="storage.policy.should_mount" bool="true">
<merge key="storage.policy.should_mount" type="bool">false</merge>
</match>
<match key="storage.automount_enabled_hint" bool="true">
<merge key="storage.automount_enabled_hint" type="bool">false</merge>
</match>
<match key="storage.media_check_enabled" bool="true">
<merge key="storage.media_check_enabled" type="bool">false</merge>
</match>
<match key="volume.policy.should_mount" bool="true">
<merge key="volume.policy.should_mount" type="bool">false</merge>
</match>
<match key="volume.ignore" bool="false">
<merge key="volume.ignore" type="bool">true</merge>
</match>
</device>
</deviceinfo>
If it doesn't work there are two things to try:
- removing the <deviceinfo version="0.2"> and </deviceinfo> lines
- look for a bug in gnome-auto-mount that makes it ignore storage.automount_enabled_hint