Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 02-17-2009, 08:13 PM   #16
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Original Poster
Rep: Reputation: 33

Originally Posted by Simon Bridge View Post
got it. Do you need the ports permanently disabled or just for exams?

The hal method could be worked in to a script so admins can turn it on or off ... but it may be trouble to impliment system-wide, I don't know how you are set up.

Th access-controls approach will work system wide - just switch off student access to external media. I don't know what access control mechanisms the sysadmins use, so cannot really advise more specifically.

I'm sorry you think that getting a reply right for you is "such a fuss". I'm afraid it cannot be helped.
So if last phrase hurt any one i wud try to take it back .. Thanks for every one who provided answer for my post ..
Old 02-17-2009, 08:17 PM   #17
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Original Poster
Rep: Reputation: 33

Originally Posted by catkin View Post
Hello Lakshman :-)

I think hal-disable-polling can do it but I don't know what the device names have to be. Time to experiment, plugging in a selection of devices? When I insert a USB memory stick on ubuntu 8.04.2, it's /dev/sdb1. CD/DVDs come up as /dev/scd0.

BTW, where are you in Kerala? I'm in Tamil Nadu, in Auroville near Puducherry.


im frm Nileshwar , Kasargod District ..
Old 02-19-2009, 09:14 AM   #18
LQ 5k Club
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
A policy solution?

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
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">
<match key="storage.policy.should_mount" bool="true">
<merge key="storage.policy.should_mount" type="bool">false</merge>
<match key="storage.automount_enabled_hint" bool="true">
<merge key="storage.automount_enabled_hint" type="bool">false</merge>
<match key="storage.media_check_enabled" bool="true">
<merge key="storage.media_check_enabled" type="bool">false</merge>
<match key="volume.policy.should_mount" bool="true">
<merge key="volume.policy.should_mount" type="bool">false</merge>
<match key="volume.ignore" bool="false">
<merge key="volume.ignore" type="bool">true</merge>
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Tip: Tip: Simple Regular Expressions For Reviewing Log Files LXer Syndicated Linux News 0 11-20-2008 12:41 PM
Any way to change a USB's partition? Slimmay Linux - Newbie 2 09-28-2008 01:44 PM
Want to mount different USB's as /dev/sda1 bobmac010 Linux - Newbie 2 01-22-2008 12:44 PM
Wireless USB's barrythai SUSE / openSUSE 0 02-08-2005 01:20 AM
AWOL usb's acid_kewpie Linux - General 0 06-16-2001 05:06 AM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration