pmount-hal should use mount for fstab devices

Bug #33232 reported by Danson Joseph
22
Affects Status Importance Assigned to Milestone
pmount (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Hi,

I've had this on a few machines. The mount applet given and error about the UDI and it not being a mountable volume or something similar, but a sheel mount command work fine, please advise - One machine was brand new and the other old, so I don't think age is a problem.

Many Thanks,
Danson

Revision history for this message
Daniel Holbach (dholbach) wrote :

Thanks for your bug report. Which version of Ubuntu and gnome-applets do you use? What is the error message exactly?

Changed in gnome-applets:
assignee: nobody → desktop-bugs
status: Unconfirmed → Needs Info
Revision history for this message
Danson Joseph (nosnad) wrote :

Hi,

Sorry for the late reply - I didn't have access to the machine.
The message is:

"ERROR: given UDI is not a mountable volume"

The disk is properly formatted with data on it.

Thanks,
Danson

Revision history for this message
Sebastien Bacher (seb128) wrote :

What version of Ubuntu do you use? What sort of device do you try to mount?

Revision history for this message
Martin Pitt (pitti) wrote :

Sorry, we need more information to know the reason for this.

  * Which Ubuntu version do you use? (Breezy/Breezy with latest breezy-updates/latest Dapper)
  * Please do 'lshal > hal.txt' and attach hal.txt here.
  * Please describe the device you want to mount (cdrom/USB stick/floppy)

Thanks!

Changed in gnome-applets:
assignee: desktop-bugs → pitti
Revision history for this message
Danson Joseph (nosnad) wrote :
Download full text (48.8 KiB)

Hi,

I'm using Ubuntu 5.10 i386 version with updates.
It's a floppy drive I am trying to mount.
Here is the lshal output,
Thanks,
Danson:

Dumping 51 device(s) from the Global Device List:
-------------------------------------------------
udi = '/org/freedesktop/Hal/devices/acpi_SLPB'
  info.udi = '/org/freedesktop/Hal/devices/acpi_SLPB' (string)
  linux.hotplug_type = 4 (0x4) (int)
  button.has_state = false (bool)
  info.capabilities = {'button'} (string list)
  info.category = 'button' (string)
  info.product = 'Sleep Button' (string)
  button.type = 'sleep' (string)
  info.parent = '/org/freedesktop/Hal/devices/computer' (string)
  linux.acpi_type = 4 (0x4) (int)
  linux.acpi_path = '/proc/acpi/button/sleep/SLPB' (string)

udi = '/org/freedesktop/Hal/devices/acpi_PWRF'
  info.udi = '/org/freedesktop/Hal/devices/acpi_PWRF' (string)
  linux.hotplug_type = 4 (0x4) (int)
  button.has_state = false (bool)
  info.capabilities = {'button'} (string list)
  info.category = 'button' (string)
  info.product = 'Power Button' (string)
  button.type = 'power' (string)
  info.parent = '/org/freedesktop/Hal/devices/computer' (string)
  linux.acpi_type = 4 (0x4) (int)
  linux.acpi_path = '/proc/acpi/button/power/PWRF' (string)

udi = '/org/freedesktop/Hal/devices/acpi_PWRB'
  info.udi = '/org/freedesktop/Hal/devices/acpi_PWRB' (string)
  linux.hotplug_type = 4 (0x4) (int)
  button.has_state = false (bool)
  info.capabilities = {'button'} (string list)
  info.category = 'button' (string)
  info.product = 'Power Button' (string)
  button.type = 'power' (string)
  info.parent = '/org/freedesktop/Hal/devices/computer' (string)
  linux.acpi_type = 4 (0x4) (int)
  linux.acpi_path = '/proc/acpi/button/power/PWRB' (string)

udi = '/org/freedesktop/Hal/devices/acpi_CPU0'
  info.udi = '/org/freedesktop/Hal/devices/acpi_CPU0' (string)
  linux.hotplug_type = 4 (0x4) (int)
  processor.can_throttle = true (bool)
  processor.number = 0 (0x0) (int)
  info.capabilities = {'processor'} (string list)
  info.category = 'processor' (string)
  info.product = 'Processor' (string)
  info.parent = '/org/freedesktop/Hal/devices/computer' (string)
  linux.acpi_type = 1 (0x1) (int)
  linux.acpi_path = '/proc/acpi/processor/CPU0' (string)

udi = '/org/freedesktop/Hal/devices/storage_model_AOPEN_CD_RW_CRW5224_1_05_20021212'
  info.addons = {'hald-addon-storage'} (string list)
  storage.policy.desired_mount_point = 'cdrecorder' (string)
  storage.policy.mount_filesystem = 'auto' (string)
  storage.policy.should_mount = true (bool)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_model_AOPEN_CD_RW_CRW5224_1_05_20021212' (string)
  info.udi = '/org/freedesktop/Hal/devices/storage_model_AOPEN_CD_RW_CRW5224_1_05_20021212' (string)
  storage.cdrom.write_speed = 0 (0x0) (int)
  storage.cdrom.read_speed = 9173 (0x23d5) (int)
  storage.cdrom.support_media_changed = true (bool)
  storage.cdrom.dvdplusrw = false (bool)
  storage.cdrom.dvdplusr = false (bool)
  storage.cdrom.dvdram = false (bool)
  storage.cdrom.dvdrw = false (bool)
  storage.cdrom.dvdr = false (bool)
  storage.cdrom.dvd = false (bool)
  storage.cdrom.cdr...

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks for the hal log.

udi = '/org/freedesktop/Hal/devices/computer_storage'
  [...]
  block.is_volume = false (bool)

This is supposed to be 'true' for a working floppy. Can anyone with a working floppy check this on his box? I don't have a floppy anywhere and can't test this.

Danson, can you please check whether it works with

  mount /dev/fd0

?

Thanks!

Revision history for this message
Danson Joseph (nosnad) wrote : Re: floppy is not mountable

Hi,

mount /dev/fd0 does work. I have another PC that's working fine. Here are the relevant lshal sections:

udi = '/org/freedesktop/Hal/devices/computer_storage'
  storage.policy.desired_mount_point = 'floppy' (string)
  storage.policy.mount_filesystem = 'auto' (string)
  storage.policy.should_mount = true (bool)
  block.storage_device = '/org/freedesktop/Hal/devices/computer_storage' (string)
  info.udi = '/org/freedesktop/Hal/devices/computer_storage' (string)
  info.capabilities = {'storage', 'block'} (string list)
  info.category = 'storage' (string)
  storage.requires_eject = false (bool)
  storage.hotpluggable = false (bool)
  storage.removable = true (bool)
  info.parent = '/org/freedesktop/Hal/devices/computer' (string)
  storage.physical_device = '/org/freedesktop/Hal/devices/computer' (string)
  storage.drive_type = 'floppy' (string)
  info.product = 'PC Floppy Drive' (string)
  info.vendor = '' (string)
  storage.vendor = 'PC Floppy Drive' (string)
  storage.model = '' (string)
  storage.automount_enabled_hint = true (bool)
  storage.media_check_enabled = false (bool)
  storage.no_partitions_hint = true (bool)
  storage.bus = 'platform' (string)
  block.is_volume = false (bool)
  block.minor = 0 (0x0) (int)
  block.major = 2 (0x2) (int)
  block.device = '/dev/fd0' (string)
  linux.hotplug_type = 3 (0x3) (int)
  linux.sysfs_path_device = '/sys/block/fd0' (string)
  linux.sysfs_path = '/sys/block/fd0' (string)

udi = '/org/freedesktop/Hal/devices/pnp_PNP0700'
  info.udi = '/org/freedesktop/Hal/devices/pnp_PNP0700' (string)
  linux.subsystem = 'pnp' (string)
  linux.hotplug_type = 1 (0x1) (int)
  info.product = 'PC standard floppy disk controller' (string)
  pnp.description = 'PC standard floppy disk controller' (string)
  pnp.id = 'PNP0700' (string)
  info.parent = '/org/freedesktop/Hal/devices/computer' (string)
  info.bus = 'pnp' (string)
  linux.sysfs_path_device = '/sys/devices/pnp0/00:06' (string)
  linux.sysfs_path = '/sys/devices/pnp0/00:06' (string)

Hope that helps
Cheers,
Danson

Revision history for this message
Martin Pitt (pitti) wrote :

I think I'll just fix this in pmount-hal. It should just mount a device that is mentioned in fstab.

Changed in hal:
status: Needs Info → Confirmed
Martin Pitt (pitti)
Changed in pmount:
status: Confirmed → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

 pmount (0.9.10-1) unstable; urgency=low
 .
   * New upstream bugfix release:
     - Fix processing of hal's mount options. (patch was already applied in
       previous version).
     - pmount-hal: Directly call mount for devices in /etc/fstab. This allows
       non-plugdev users to mount CD-ROMs and the like with GUIs like Gnome
       (which call pmount-hal). (https://launchpad.net/bugs/33232)
     - Document PMOUNT_DEBUG environment variable in pmount-hal manpage.
   * Remove debian/patches/02-pmount-hal-fix-mountoptions.patch, fixed
     upstream.

Changed in pmount:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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