[sisyphus] HAL KDE и ( авто ) монтирование дискет

Alexey Sidorov =?iso-8859-1?q?alex_=CE=C1_reutman=2Eru?=
Чт Мар 22 13:01:07 MSK 2007


Valery V. Inozemtsev пишет:
> В сообщении от 22 марта 2007 Alexey Sidorov написал(a):
>> Valery V. Inozemtsev пишет:
>>>>> а если сказать
>>>>> # dbus-send --system --print-reply --dest=org.freedesktop.Hal
>>>>> /org/freedesktop/Hal/devices/platform_floppy_0_storage
>>>>> org.freedesktop.Hal.Device.Volume.Mount string:floppy string:
>>>>> array:string:
>>>> alex:alexlin ~$ dbus-send --system --print-reply
>>>> --dest=org.freedesktop.Hal
>>>> /org/freedesktop/Hal/devices/platform_floppy_0_storage
>>>> org.freedesktop.Hal.Device.Volume.Mount string:floppy string:
>>>> array:string: Error org.freedesktop.Hal.Device.Volume.UnknownFailure:
>>>> mount: you must specify the filesystem type
>>> а руками она вообще монтируется?
>> Всмысле mount -tvfat /dev/fd0 /mnt/floppy ?
>> конечно.
> 
> и так со всеми дискетами?
> 

да не в дискетах дело. а в том, что hal не провайдит volume.fstype, как впрочем и сам volume
естественно никто не знает, что вообще с эти делать и как монтировать.
если я конечно правильно понимаю

просто для флэшек/сидюков hal отдаёт не только storage но ещё и volume:
udi = '/org/freedesktop/Hal/devices/pci_10b9_5229_ide_0_1'
  ide.channel = 1  (0x1)  (int)
  ide.host = 0  (0x0)  (int)
  info.bus = 'ide'  (string)
  info.linux.driver = 'ide-cdrom'  (string)
  info.parent = '/org/freedesktop/Hal/devices/pci_10b9_5229'  (string)
  info.product = 'IDE device (slave)'  (string)
  info.subsystem = 'ide'  (string)
  info.udi = '/org/freedesktop/Hal/devices/pci_10b9_5229_ide_0_1'  (string)
  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'ide'  (string)
  linux.sysfs_path = '/sys/devices/pci0000:00/0000:00:1f.0/ide0/0.1'  (string)

udi = '/org/freedesktop/Hal/devices/storage_model__NEC_DVD_RW_ND_3540A'
  access_control.file = '/dev/hdb'  (string)
  access_control.grant_local_session = true  (bool)
  block.device = '/dev/hdb'  (string)
  block.is_volume = false  (bool)
  block.major = 3  (0x3)  (int)
  block.minor = 64  (0x40)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_model__NEC_DVD_RW_ND_3540A'  (string)
  info.addons = {'hald-addon-storage'} (string list)
  info.callouts.add = {'hal-acl-tool --add-device'} (string list)
  info.callouts.remove = {'hal-acl-tool --remove-device'} (string list)
  info.capabilities = {'storage', 'block', 'storage.cdrom', 'access_control'} (string list)
  info.category = 'storage'  (string)
  info.interfaces = {'org.freedesktop.Hal.Device.Storage', 'org.freedesktop.Hal.Device.Storage'}
(string list)
  info.parent = '/org/freedesktop/Hal/devices/pci_10b9_5229_ide_0_1'  (string)
  info.product = '_NEC DVD_RW ND-3540A'  (string)
  info.udi = '/org/freedesktop/Hal/devices/storage_model__NEC_DVD_RW_ND_3540A'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/block/hdb'  (string)
  org.freedesktop.Hal.Device.Storage.method_argnames = {'extra_options', 'extra_options'} (string list)
  org.freedesktop.Hal.Device.Storage.method_execpaths = {'hal-storage-eject',
'hal-storage-closetray'} (string list)
  org.freedesktop.Hal.Device.Storage.method_names = {'Eject', 'CloseTray'} (string list)
  org.freedesktop.Hal.Device.Storage.method_signatures = {'as', 'as'} (string list)
  storage.automount_enabled_hint = true  (bool)
  storage.bus = 'ide'  (string)
  storage.cdrom.bd = false  (bool)
  storage.cdrom.bdr = false  (bool)
  storage.cdrom.bdre = false  (bool)
  storage.cdrom.cdr = true  (bool)
  storage.cdrom.cdrw = true  (bool)
  storage.cdrom.dvd = true  (bool)
  storage.cdrom.dvdplusr = true  (bool)
  storage.cdrom.dvdplusrdl = true  (bool)
  storage.cdrom.dvdplusrw = true  (bool)
  storage.cdrom.dvdplusrwdl = false  (bool)
  storage.cdrom.dvdr = true  (bool)
  storage.cdrom.dvdram = false  (bool)
  storage.cdrom.dvdrw = true  (bool)
  storage.cdrom.hddvd = false  (bool)
  storage.cdrom.hddvdr = false  (bool)
  storage.cdrom.hddvdrw = false  (bool)
  storage.cdrom.read_speed = 8467  (0x2113)  (int)
  storage.cdrom.support_media_changed = true  (bool)
  storage.cdrom.write_speed = 8467  (0x2113)  (int)
  storage.cdrom.write_speeds = {'8467', '7056', '5645', '4234', '2822', '1411'} (string list)
  storage.drive_type = 'cdrom'  (string)
  storage.firmware_version = '1.01'  (string)
  storage.hotpluggable = false  (bool)
  storage.media_check_enabled = true  (bool)
  storage.model = '_NEC DVD_RW ND-3540A'  (string)
  storage.no_partitions_hint = true  (bool)
  storage.originating_device = '/org/freedesktop/Hal/devices/pci_10b9_5229_ide_0_1'  (string)
  storage.physical_device = '/org/freedesktop/Hal/devices/pci_10b9_5229_ide_0_1'  (string)
  storage.removable = true  (bool)
  storage.removable.media_available = true  (bool)
  storage.removable.media_size = 4259348480  (0xfde08000)  (uint64)
  storage.requires_eject = true  (bool)
  storage.size = 0  (0x0)  (uint64)
  storage.vendor = ''  (string)

udi = '/org/freedesktop/Hal/devices/volume_label_____________'
  block.device = '/dev/hdb'  (string)
  block.is_volume = true  (bool)
  block.major = 3  (0x3)  (int)
  block.minor = 64  (0x40)  (int)
  block.storage_device = '/org/freedesktop/Hal/devices/storage_model__NEC_DVD_RW_ND_3540A'  (string)
  info.capabilities = {'volume.disc', 'volume', 'block'} (string list)
  info.category = 'volume'  (string)
  info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  info.parent = '/org/freedesktop/Hal/devices/storage_model__NEC_DVD_RW_ND_3540A'  (string)
  info.product = 'Фильмы'  (string)
  info.udi = '/org/freedesktop/Hal/devices/volume_label_____________'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  linux.sysfs_path = '/sys/block/hdb/fakevolume'  (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_signatures = {'ssas', 'as', 'as'} (string list)
  storage.model = ''  (string)
  volume.block_size = 2048  (0x800)  (int)
  volume.disc.capacity = 4259348480  (0xfde08000)  (uint64)
  volume.disc.has_audio = false  (bool)
  volume.disc.has_data = true  (bool)
  volume.disc.is_appendable = false  (bool)
  volume.disc.is_blank = false  (bool)
  volume.disc.is_rewritable = false  (bool)
  volume.disc.is_svcd = false  (bool)
  volume.disc.is_vcd = false  (bool)
  volume.disc.is_videodvd = false  (bool)
  volume.disc.type = 'dvd_plus_r'  (string)
  volume.fstype = 'iso9660'  (string)
  volume.fsusage = 'filesystem'  (string)
  volume.fsversion = 'Joliet Extension'  (string)
  volume.ignore = false  (bool)
  volume.is_disc = true  (bool)
  volume.is_mounted = true  (bool)
  volume.is_mounted_read_only = true  (bool)
  volume.is_partition = false  (bool)
  volume.label = 'Фильмы'  (string)
  volume.linux.is_device_mapper = false  (bool)
  volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet',
'remount', 'exec', 'utf8', 'uid=', 'mode=', 'iocharset='} (string list)
  volume.mount_point = '/media/cdrom'  (string)
  volume.num_blocks = 8319040  (0x7ef040)  (int)
  volume.policy.desired_mount_point = 'cdrom'  (string)
  volume.policy.mount_option.iocharset = 'cp-1251'  (string)
  volume.policy.mount_option.utf8 = false  (bool)
  volume.size = 4259348480  (0xfde08000)  (uint64)
  volume.unmount.valid_options = {'lazy'} (string list)
  volume.uuid = ''  (string)

-- 
Alexey Sidorov
	mailto:alex на reutman.ru
	JID: alex на reutman.ru
	ICQ: 5052225



Подробная информация о списке рассылки Sisyphus