HAL, floppy drive, volume isn't present.

Andrey Borzenkov arvidjaar at mail.ru
Sun Jul 9 19:23:03 PDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Monday 10 July 2006 02:34, nuser wrote:
>  I'm using Debian Etch, hal 0.5.7-2, dbus 0.62-4.
>  I was told on the Thunar mailing list (file manager based on gtk2) that it
> can automatically mount devices which HAL tells the volume for that device.
> Of course it doesn't find a volume there, there is no floppy disk, the same
> happens with the cdrom drive, usb port. But, when I plug a pendrive or
> insert a cdrom, a object for each volume inside the device is created,
> right? When I insert a disk on the cdrom drive:
>
> DeviceAdded, udi=/org/freedesktop/Hal/devices/volume_label_MYFILES
>
>  How can I solve this? Where sits the "problem" for no being able to have
> hal to tell when I insert a disk on the floppy drive? Not even when I
> mounted the disk, restarted hald, the volume was not listed.
>

There is no feasble way to probe for media on standard PC floppy drive, so HAL 
adds mount methods to storage device itself, not volumes. Your volume manager 
should present you with a representation of unmounted floppy and let you 
manually mount and unmount it. This is the same way other OS work too.

- -andrey

>  thanks
>
> it's a legacy floppy drive, i guess
> ---------------------------------------------------
> udi = '/org/freedesktop/Hal/devices/platform_floppy_0'
>   info.udi = '/org/freedesktop/Hal/devices/platform_floppy_0'  (string)
>   linux.subsystem = 'platform'  (string)
>   linux.hotplug_type = 1  (0x1)  (int)
>   info.product = 'Platform Device (floppy.0)'  (string)
>   platform.id = 'floppy.0'  (string)
>   info.parent = '/org/freedesktop/Hal/devices/computer'  (string)
>   info.bus = 'platform'  (string)
>   linux.sysfs_path_device = '/sys/devices/platform/floppy.0'  (string)
>   linux.sysfs_path = '/sys/devices/platform/floppy.0'  (string)
> ---------------------------------------------------
> udi = '/org/freedesktop/Hal/devices/platform_floppy_0_storage'
>   volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime',
> 'nodiratime', 'noexec', 'quiet', 'utf8', 'shortname=', 'codepage=',
> 'iocharset=', 'umask=', 'uid='} (string list)
> org.freedesktop.Hal.Device.Volume.method_execpaths =
> {'hal-system-storage-mount', 'hal-system-storage-unmount',
> 'hal-system-storage-eject'} (string list)
> org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'}
> (string list) org.freedesktop.Hal.Device.Volume.method_names = {'Mount',
> 'Unmount', 'Eject'} (string list) info.interfaces =
> {'org.freedesktop.Hal.Device.Volume'} (string list) block.storage_device =
> '/org/freedesktop/Hal/devices/platform_floppy_0_storage'  (string) info.udi
> = '/org/freedesktop/Hal/devices/platform_floppy_0_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)
>   storage.physical_device =
> '/org/freedesktop/Hal/devices/platform_floppy_0'  (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)
>   info.parent = '/org/freedesktop/Hal/devices/platform_floppy_0'  (string)
>   linux.sysfs_path_device = '/sys/block/fd0'  (string)
>   linux.sysfs_path = '/sys/block/fd0'  (string)
> ---------------------------------------------------
>
> _______________________________________________
> hal mailing list
> hal at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/hal
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFEsboLR6LMutpd94wRApu2AKCzixUZqsikLZuAW5IT0Z0NAL32NQCfSuzp
VbmTg4Qyz96iDZWg6YvQu0s=
=s5uI
-----END PGP SIGNATURE-----


More information about the hal mailing list