USB storage not automatically mounted

Bug #172759 reported by boxed
2
Affects Status Importance Assigned to Milestone
gnome-volume-manager (Ubuntu)
Invalid
Low
Unassigned

Bug Description

USB removable flash/harddisk storage drives won't automatically mount. It seems that the hald does it's work, the devices are added and all the information can be read in the Hardware Information application. Also fdisk agrees that the device is created as seen in the 'fdisk -l' output below.
The only time when the gnome-volume-manager does correctly mount these devices is on it starts up.

I've attached two outputs of the gvm. The first scenario is as following:
Flash device is not connected -> gvm is started -> flash device is plugged in -> waiting a bit -> flash device is unplugged
result: flash device was not mounted
gvm output:
manager.c/647: setting[0]: bool: autobrowse = 1
manager.c/647: setting[1]: bool: autoburn = 1
manager.c/642: setting[2]: string: autoburn_audio_cd_command = serpentine
manager.c/642: setting[3]: string: autoburn_data_cd_command = nautilus --no-desktop burn:
manager.c/647: setting[4]: bool: autoipod = 1
manager.c/642: setting[5]: string: autoipod_command = rhythmbox
manager.c/647: setting[6]: bool: autokeyboard = 0
manager.c/642: setting[7]: string: autokeyboard_command =
manager.c/647: setting[8]: bool: automount_drives = 1
manager.c/647: setting[9]: bool: automount_media = 1
manager.c/647: setting[10]: bool: automouse = 0
manager.c/642: setting[11]: string: automouse_command =
manager.c/647: setting[12]: bool: autoopen = 0
manager.c/642: setting[13]: string: autoopen_path = .autoopen:autoopen
manager.c/647: setting[14]: bool: autophoto = 1
manager.c/642: setting[15]: string: autophoto_command = gnome-volume-manager-gthumb %h
manager.c/647: setting[16]: bool: autopalmsync = 0
manager.c/642: setting[17]: string: autopalmsync_command = gpilotd-control-applet
manager.c/647: setting[18]: bool: autoplay_cda = 1
manager.c/642: setting[19]: string: autoplay_cda_command = sound-juicer -d %d
manager.c/647: setting[20]: bool: autoplay_dvd = 1
manager.c/642: setting[21]: string: autoplay_dvd_command = totem %m
manager.c/647: setting[22]: bool: autoplay_vcd = 1
manager.c/642: setting[23]: string: autoplay_vcd_command = totem %m
manager.c/647: setting[24]: bool: autopocketpc = 0
manager.c/642: setting[25]: string: autopocketpc_command = multisync
manager.c/647: setting[26]: bool: autoprinter = 0
manager.c/642: setting[27]: string: autoprinter_command = gnome-cups-add hal://%h
manager.c/647: setting[28]: bool: autorun = 0
manager.c/642: setting[29]: string: autorun_path = .autorun:autorun:autorun.sh
manager.c/647: setting[30]: bool: autotablet = 0
manager.c/642: setting[31]: string: autotablet_command =
manager.c/656: settings[32]: float: percent_threshold = 0.050000
manager.c/656: settings[33]: float: percent_used = 0.010000
manager.c/3306: gvm_user_active_at_console: check-foreground-console returned with 1
manager.c/3306: gvm_user_active_at_console: check-foreground-console returned with 1
manager.c/3306: gvm_user_active_at_console: check-foreground-console returned with 1
manager.c/3306: gvm_user_active_at_console: check-foreground-console returned with 1
manager.c/3306: gvm_user_active_at_console: check-foreground-console returned with 1
manager.c/3306: gvm_user_active_at_console: check-foreground-console returned with 1
manager.c/3306: gvm_user_active_at_console: check-foreground-console returned with 1
manager.c/3306: gvm_user_active_at_console: check-foreground-console returned with 1
manager.c/2622: Device removed: /org/freedesktop/Hal/devices/usb_device_457_151_noserial_if0_scsi_host_scsi_device_lun0_scsi_generic
manager.c/2622: Device removed: /org/freedesktop/Hal/devices/volume_uuid_272E_5E9F
manager.c/2622: Device removed: /org/freedesktop/Hal/devices/usb_device_457_151_noserial_if0_scsi_host_scsi_device_lun0
manager.c/2622: Device removed: /org/freedesktop/Hal/devices/usb_device_457_151_noserial_if0_scsi_host
manager.c/2622: Device removed: /org/freedesktop/Hal/devices/storage_serial_USB2_0_USB_Flash_Disk_0_0
manager.c/2622: Device removed: /org/freedesktop/Hal/devices/usb_device_457_151_noserial_if0
manager.c/2622: Device removed: /org/freedesktop/Hal/devices/usb_device_457_151_noserial_usbraw
manager.c/2622: Device removed: /org/freedesktop/Hal/devices/usb_device_457_151_noserial

The second scenario is as following:
Flash device is connected -> gvm is started -> flash device is manually unmounted -> flash device is unplugged
result: flash device is mounted at gvm start
gvm output:
manager.c/647: setting[0]: bool: autobrowse = 1
manager.c/647: setting[1]: bool: autoburn = 1
manager.c/642: setting[2]: string: autoburn_audio_cd_command = serpentine
manager.c/642: setting[3]: string: autoburn_data_cd_command = nautilus --no-desktop burn:
manager.c/647: setting[4]: bool: autoipod = 1
manager.c/642: setting[5]: string: autoipod_command = rhythmbox
manager.c/647: setting[6]: bool: autokeyboard = 0
manager.c/642: setting[7]: string: autokeyboard_command =
manager.c/647: setting[8]: bool: automount_drives = 1
manager.c/647: setting[9]: bool: automount_media = 1
manager.c/647: setting[10]: bool: automouse = 0
manager.c/642: setting[11]: string: automouse_command =
manager.c/647: setting[12]: bool: autoopen = 0
manager.c/642: setting[13]: string: autoopen_path = .autoopen:autoopen
manager.c/647: setting[14]: bool: autophoto = 1
manager.c/642: setting[15]: string: autophoto_command = gnome-volume-manager-gthumb %h
manager.c/647: setting[16]: bool: autopalmsync = 0
manager.c/642: setting[17]: string: autopalmsync_command = gpilotd-control-applet
manager.c/647: setting[18]: bool: autoplay_cda = 1
manager.c/642: setting[19]: string: autoplay_cda_command = sound-juicer -d %d
manager.c/647: setting[20]: bool: autoplay_dvd = 1
manager.c/642: setting[21]: string: autoplay_dvd_command = totem %m
manager.c/647: setting[22]: bool: autoplay_vcd = 1
manager.c/642: setting[23]: string: autoplay_vcd_command = totem %m
manager.c/647: setting[24]: bool: autopocketpc = 0
manager.c/642: setting[25]: string: autopocketpc_command = multisync
manager.c/647: setting[26]: bool: autoprinter = 0
manager.c/642: setting[27]: string: autoprinter_command = gnome-cups-add hal://%h
manager.c/647: setting[28]: bool: autorun = 0
manager.c/642: setting[29]: string: autorun_path = .autorun:autorun:autorun.sh
manager.c/647: setting[30]: bool: autotablet = 0
manager.c/642: setting[31]: string: autotablet_command =
manager.c/656: settings[32]: float: percent_threshold = 0.050000
manager.c/656: settings[33]: float: percent_used = 0.010000
manager.c/3022: mount_all: mounting /dev/sdb1
manager.c/1783: mounting /org/freedesktop/Hal/devices/volume_uuid_272E_5E9F...
manager.c/798: executing command: /usr/bin/gnome-mount --no-ui --hal-udi=/org/freedesktop/Hal/devices/volume_uuid_272E_5E9F
gnome-mount 0.6
manager.c/2680: Mounted: /org/freedesktop/Hal/devices/volume_uuid_272E_5E9F
manager.c/2702: Unmounted: /org/freedesktop/Hal/devices/volume_uuid_272E_5E9F
manager.c/2603: Removing ripped out /org/freedesktop/Hal/devices/volume_uuid_272E_5E9F from mounted list
manager.c/2622: Device removed: /org/freedesktop/Hal/devices/usb_device_457_151_noserial_if0_scsi_host_scsi_device_lun0_scsi_generic
manager.c/2622: Device removed: /org/freedesktop/Hal/devices/volume_uuid_272E_5E9F
manager.c/2622: Device removed: /org/freedesktop/Hal/devices/usb_device_457_151_noserial_if0_scsi_host_scsi_device_lun0
manager.c/2622: Device removed: /org/freedesktop/Hal/devices/usb_device_457_151_noserial_if0_scsi_host
manager.c/2622: Device removed: /org/freedesktop/Hal/devices/usb_device_457_151_noserial_if0
manager.c/2622: Device removed: /org/freedesktop/Hal/devices/usb_device_457_151_noserial_usbraw
manager.c/2622: Device removed: /org/freedesktop/Hal/devices/storage_serial_USB2_0_USB_Flash_Disk_0_0
manager.c/2622: Device removed: /org/freedesktop/Hal/devices/usb_device_457_151_noserial

$ fdisk -l
Disk /dev/sdb: 131 MB, 131072000 bytes
16 heads, 32 sectors/track, 500 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Disk identifier: 0x00000000

   Device Boot Start End Blocks Id System
/dev/sdb1 * 1 499 127728 6 FAT16

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for your report.

Changed in gnome-volume-manager:
importance: Undecided → Low
Revision history for this message
Martin Pitt (pitti) wrote :

manager.c/1783: mounting /org/freedesktop/Hal/devices/volume_uuid_272E_5E9F...
manager.c/798: executing command: /usr/bin/gnome-mount --no-ui --hal-udi=/org/freedesktop/Hal/devices/volume_uuid_272E_5E9F
gnome-mount 0.6
manager.c/2680: Mounted: /org/freedesktop/Hal/devices/volume_uuid_272E_5E9F
manager.c/2702: Unmounted: /org/freedesktop/Hal/devices/volume_uuid_272E_5E9F
manager.c/2603: Removing ripped out /org/freedesktop/Hal/devices/volume_uuid_272E_5E9F from mounted list

This shows that g-v-m correctly mounted your drive, but some time afterwards (the log does not have timestamps) it says that the device suddenly disappeared. Did you actually pull it out, or was it plugged in all the time? In the former case I don't see the bug, it was correctly mounted and seemingly working (check the output of "mount"). In the latter case it might be an electrical problem with the USB port or the stick; can you please attach /var/log/kern.log after this happens?

Changed in gnome-volume-manager:
status: New → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!.

Changed in gnome-volume-manager:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.