PDA

View Full Version : [ubuntu] hald-addon-storage: no polling on /dev/scd0 because it is explicitly disabled



ngine13
September 28th, 2008, 11:34 PM
What does that mean?

I'm trying to solve the cd automount problem that i meet in gnome..

Please help me.. if you can. :)

ngine13
September 29th, 2008, 12:05 AM
maybe an easier question is :

why gnome-volume-manager can't automount a cd when is inserted..

hald is running

dbus is running..

what is the problem with cd automount..


p.s.

1. usb automount is working
2. cd automount was working before some weeks!!!
3. cd automount is working when i leave a cd in the drive and i restart the system!!!

mikewhatever
September 29th, 2008, 12:20 AM
Below is a quote from <man hal-disable-polling>:


DESCRIPTION
hal-disable-polling can be used to to disable and enable media detection on drives with removable storage. For more information about both
the big picture and specific HAL properties, refer to the HAL spec
which can be found in /usr/share/doc/hal-doc/spec/hal-spec.html depend‐
ing on the distribution.


I saw powertop recommending it.


Suggestion: Disable 'hal' from polling your cdrom with:
hal-disable-polling --device /dev/cdrom 'hal' is the component that auto-opens a
window if you plug in a CD but disables SATA power saving from kicking in.
In my case, running <sudo sudo hal-disable-polling --device /dev/cdrom> stops a window popping up when a cd is inserted, but no errors.

Can you post the output of the following please:

cat /etc/fstab

ngine13
September 29th, 2008, 12:44 AM
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda5
UUID=cff704b2-8919-4b05-9b1a-3adba28dc109 / reiserfs notail,relatime 0 1
# /dev/sda6
UUID=BA8A53316D4FAE83 /data ntfs defaults,umask=007,users,gid=46 0 1
# /dev/sda1
UUID=72b0e88e-464e-e79e-76ef-2e5fdf2f4f4f none swap sw 0 0
#/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0

mikewhatever
September 29th, 2008, 12:59 AM
Well, as you can see, the cdrom line is commented out. You'll need to remove the '#' sign from the beginning of the last line in fstab.


sudo cp /etc/fstab /etc/fstab-backup
gksudo gedit /etc/fstab

When done try running
sudo mount -a

ngine13
September 29th, 2008, 01:05 AM
Thank you very much!!! :)

I use the command you recommended in order to enable polling on my device :

sudo hal-disable-polling --enable-polling --device /dev/scd0


ps

i think that gnome doesn't read the fstab file.
i left the /dev/scd0 line as a comment.
the output that bash gave me after executing the "sudo hal-disable-polling --enable-polling --device /dev/scd0" command is :

Polling for drive /dev/scd0 have been enabled. The fdi file deleted was
/etc/hal/fdi/information/media-check-disable-storage_model_BD_ROM_BC_5500A.fdi

Thanks again. :)

mikewhatever
September 29th, 2008, 01:08 AM
OK, but polling was probably disabled because the cdrom was unmounted. If you don't want to mount it manually, edit fstab as described above.

ngine13
September 29th, 2008, 01:21 AM
OK, but polling was probably disabled because the cdrom was unmounted. If you don't want to mount it manually, edit fstab as described above.

But i don't mount it manually and it works.. with the /dev/scd0 fstab line as a comment.

I mean i insert a cd in the drive and instantly in the gnome desktop appears a cdrom icon and a nautilus window with it's content.

I press then right click on the cdrom icon -> eject.

Then i put again the cd in the drive to check it and it works.

I can try to uncomment the line.. but nothing is going to change because i think than only when i use the command "mount" in a terminal i need that line uncomment.

Thanks again. :)

mikewhatever
September 29th, 2008, 01:37 AM
I agree, if it works as is, don't fix it.