[gutsy] kio_media_mounthelper cannot mount devices from /etc/fstab

Bug #138484 reported by Stefan Fleiter on 2007-09-09
4
Affects Status Importance Assigned to Milestone
hal (Ubuntu)
Medium
Unassigned
Declined for Gutsy by Henrik Nilsen Omma
kdebase (Ubuntu)
Undecided
Unassigned
Declined for Gutsy by Henrik Nilsen Omma

Bug Description

Binary package hint: kdebase

choosing mount for my external usb drive in dolphin or executing
/usr/bin/kio_media_mounthelper -m media:/sda1
I get the following in ~/.xsession-errors:

kded: ERROR: mount failed for /org/freedesktop/Hal/devices/volume_uuid_b4a55d59_873b_42e8_9e01_9e86bab503fe: org.freedesktop.Hal.Device.Volume.PermissionDenied - Device /dev/sda1 is listed in /etc/fstab. Refusing to mount.
kded: ERROR: mounting /org/freedesktop/Hal/devices/volume_uuid_b4a55d59_873b_42e8_9e01_9e86bab503fe returned Berechtigungen verweigert

This is my /etc/fstab entry:
UUID=b4a55d59-873b-42e8-9e01-9e86bab503fe /media/backup ext3 defaults,user,rw,user_xattr,noatime,noauto 0 0

If I change the fstab from UUID to /dev/ entry everything is ok and the drive gets mounted:
/dev/sda1 /media/backup ext3 defaults,user,rw,user_xattr,noatime,noauto 0 0

Output from lshal for this drive:
udi = '/org/freedesktop/Hal/devices/volume_uuid_b4a55d59_873b_42e8_9e01_9e86bab503fe'
  block.device = '/dev/sda1' (string)
  block.is_volume = true (bool)
  block.major = 8 (0x8) (int)
  block.minor = 1 (0x1) (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_WDC_WD25_00JB_55REA0_DEF10C579163_0_0' (string)
  info.capabilities = {'volume', 'block'} (string list)
  info.category = 'volume' (string)
  info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  info.parent = '/org/freedesktop/Hal/devices/storage_serial_WDC_WD25_00JB_55REA0_DEF10C579163_0_0' (string)
  info.product = 'backup' (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_uuid_b4a55d59_873b_42e8_9e01_9e86bab503fe' (string)
  linux.fstab.mountpoint = '/media/backup' (string)
  linux.fstab.options = 'defaults,user,rw,user_xattr,noatime,noauto' (string)
  linux.hotplug_type = 3 (0x3) (int)
  linux.sysfs_path = '/sys/block/sda/sda1' (string)
  org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point fstype extra_options', 'extra_options', 'extra_options'} (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list)
  org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'} (string list)
  storage.model = '' (string)
  volume.block_size = 512 (0x200) (int)
  volume.fstype = 'ext3' (string)
  volume.fsusage = 'filesystem' (string)
  volume.fsversion = '1.0' (string)
  volume.ignore = false (bool)
  volume.is_disc = false (bool)
  volume.is_mounted = false (bool)
  volume.is_mounted_read_only = false (bool)
  volume.is_partition = true (bool)
  volume.label = 'backup' (string)
  volume.linux.is_device_mapper = false (bool)
  volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'acl', 'user_xattr', 'data='} (string list)
  volume.mount_point = '' (string)
  volume.num_blocks = 488392002 (0x1d1c4542) (int)
  volume.partition.flags = {} (string list)
  volume.partition.label = '' (string)
  volume.partition.media_size = 250059350016 (0x3a38b2e000) (uint64)
  volume.partition.number = 1 (0x1) (int)
  volume.partition.scheme = 'mbr' (string)
  volume.partition.start = 32256 (0x7e00) (uint64)
  volume.partition.type = '0x83' (string)
  volume.partition.uuid = '' (string)
  volume.size = 250056705024 (0x3a388a8400) (uint64)
  volume.unmount.valid_options = {'lazy'} (string list)
  volume.uuid = 'b4a55d59-873b-42e8-9e01-9e86bab503fe' (string)

Stefan Fleiter (stefan-fleiter) wrote :

pmount does mount the drive with no problem.
So there is a difference between desktops regarding mounting an configuring drives.
That's bad because this is too basic to be affected by the desktop.

You need support for configuring external drives in /etc/fstab to set mount options, which
can not be forced in any other way for every user.

Stefan Fleiter (stefan-fleiter) wrote :

The error message seems to come from hal:

# strings /usr/lib/hal/hal-storage-mount |grep "listed in"
Device %s is listed in /etc/fstab. Refusing to mount.

Possibly a hal bug then...

Henrik Nilsen Omma (henrik) wrote :

Thanks for reporting and providing debugging output.

This bug was nominated for Gutsy but does currently not qualify for a 7.10 stable release update (SRU) and the nomination is therefore declined.

According the the SRU policy, the fix should already be deployed and tested in the current development version before an update to the stable releases will be considered. With 7.10 now released, that policy applies to this bug. See: https://wiki.ubuntu.com/StableReleaseUpdates

Changed in hal:
importance: Undecided → Medium
Marcus (marcus-liljedahl) wrote :

I have the same problem.

As I understand kio_media_mounthelper should first look in fstab to see if it can mount a device with the normal mount method. If it fails it should use hald to mount instead.

It looks like kio_media_mounthelper can't mount devices which have an UUID entry in fstab, while those devices can be mounted with the "mount"-command.

If I change UUID to /dev/disk/by-uuid-xxx kio_media_mounthelper finds the entry.

So I don't think this is a hald problem, instead directly related to kio_media_mounthelper.

Jonathan Thomas (echidnaman) wrote :

kio_media_mounthelper doesn't exist in Intrepid, but is this still a general problem for mounting devices in Intrepid?

Changed in hal:
status: New → Invalid
Changed in kdebase:
status: New → Incomplete
Jonathan Thomas (echidnaman) 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 kdebase:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers