Что характерно, HAL все же распознает DVD диски
Сокращенный вывод lshal:
Код:
udi = '/org/freedesktop/Hal/devices/volume_part_1_size_1709867008'
volume.policy.desired_mount_point = 'dvd' (string)
volume.policy.should_mount = true (bool)
info.udi = '/org/freedesktop/Hal/devices/volume_part_1_size_1709867008' (string)
info.product = 'Volume' (string)
volume.disc.is_svcd = false (bool)
volume.disc.is_vcd = false (bool)
volume.disc.is_videodvd = false (bool)
volume.disc.is_rewritable = false (bool)
volume.disc.is_appendable = false (bool)
volume.disc.is_blank = false (bool)
volume.disc.has_data = true (bool)
volume.disc.has_audio = false (bool)
volume.disc.type = 'dvd_rom' (string)
volume.size = 1709867008 (0x65ea8000) (uint64)
volume.num_blocks = 3339584 (0x32f540) (int)
volume.block_size = 2048 (0x800) (int)
info.capabilities = {'volume', 'block'} (string list)
info.category = 'volume' (string)
volume.is_partition = true (bool)
volume.is_disc = true (bool)
volume.is_mounted = false (bool)
volume.mount_point = '' (string)
volume.label = '' (string)
volume.uuid = '' (string)
volume.fsversion = '' (string)
volume.fsusage = '' (string)
volume.fstype = '' (string)
block.storage_device = '/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_E616A' (string)
block.is_volume = true (bool)
block.minor = 64 (0x40) (int)
block.major = 22 (0x16) (int)
block.device = '/dev/hdd' (string)
linux.hotplug_type = 3 (0x3) (int)
info.parent = '/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_E616A' (string)
linux.sysfs_path_device = '/sys/block/hdd/fakevolume' (string)
linux.sysfs_path = '/sys/block/hdd/fakevolume' (string)
Т.е.
распознает, что это DVD, столько то блоков, диск с данными (если вставить видео диск, то распознает что это диск с видео (volume.disc.is_videodvd = true )) и т.д.
но не монтирует. Если сравнить c выводом lshal для CD диска:
Код:
udi = '/org/freedesktop/Hal/devices/volume_label_001'
info.callouts.remove = {'hald-subfs-mount'} (string list)
info.callouts.add = {'hald-add-selinux-mount-option', 'hald-subfs-mount'} (string list)
volume.policy.desired_mount_point = 'dvd' (string)
volume.policy.mount_filesystem = 'iso9660' (string)
volume.policy.should_mount = true (bool)
info.udi = '/org/freedesktop/Hal/devices/volume_label_001' (string)
info.product = '001' (string)
volume.disc.is_svcd = false (bool)
volume.disc.is_vcd = false (bool)
volume.disc.is_videodvd = false (bool)
volume.disc.is_rewritable = false (bool)
volume.disc.is_appendable = false (bool)
volume.disc.is_blank = false (bool)
volume.disc.has_data = true (bool)
volume.disc.has_audio = false (bool)
volume.disc.type = 'cd_rom' (string)
volume.size = 553347072 (0x20fb6800) (uint64)
volume.num_blocks = 1080756 (0x107db4) (int)
volume.block_size = 2048 (0x800) (int)
info.capabilities = {'volume', 'block'} (string list)
info.category = 'volume' (string)
volume.is_partition = true (bool)
volume.is_disc = true (bool)
volume.is_mounted = true (bool)
volume.mount_point = '/media/dvd' (string)
volume.label = '001' (string)
volume.uuid = '' (string)
volume.fsversion = 'Joliet Extension' (string)
volume.fsusage = 'filesystem' (string)
volume.fstype = 'iso9660' (string)
block.storage_device = '/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_E616A' (string)
block.is_volume = true (bool)
block.minor = 64 (0x40) (int)
block.major = 22 (0x16) (int)
block.device = '/dev/hdd' (string)
linux.hotplug_type = 3 (0x3) (int)
info.parent = '/org/freedesktop/Hal/devices/storage_model_ASUS_DVD_E616A' (string)
linux.sysfs_path_device = '/sys/block/hdd/fakevolume' (string)
linux.sysfs_path = '/sys/block/hdd/fakevolume' (string)
Сразу бросаются в глаза строчки с информацией о вызове hald-subfs-mount, чего нет при вставке DVD. В чем дело то?