- $ for x in sda sda/sda{1,2,3,4}; do hal-find-by-property --key linux.sysfs_path --string /sys/block/$x; done | while read x; do
- > lshal -u $x
- > done
- udi = '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078C11A4001C_0_0'
- block.device = '/dev/sda' (string)
- block.is_volume = false (bool)
- block.major = 8 (0x8) (int)
- block.minor = 0 (0x0) (int)
- block.storage_device = '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078C11A4001C_0_0' (string)
- info.addons = {'hald-addon-storage'} (string list)
- info.capabilities = {'storage', 'block'} (string list)
- info.category = 'storage' (string)
- info.interfaces = {'org.freedesktop.Hal.Device.Storage.Removable'} (string list)
- info.parent = '/org/freedesktop/Hal/devices/usb_device_13fe_1e00_078C11A4001C_if0_scsi_host_scsi_device_lun0' (string)
- info.product = 'USB DISK 2.0' (string)
- info.udi = '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078C11A4001C_0_0' (string)
- info.vendor = '' (string)
- linux.hotplug_type = 3 (0x3) (int)
- linux.sysfs_path = '/sys/block/sda' (string)
- storage.automount_enabled_hint = true (bool)
- storage.bus = 'usb' (string)
- storage.drive_type = 'disk' (string)
- storage.firmware_version = 'PMAP' (string)
- storage.hotpluggable = true (bool)
- storage.lun = 0 (0x0) (int)
- storage.media_check_enabled = true (bool)
- storage.model = 'USB DISK 2.0' (string)
- storage.no_partitions_hint = false (bool)
- storage.originating_device = '/org/freedesktop/Hal/devices/usb_device_13fe_1e00_078C11A4001C_if0' (string)
- storage.partitioning_scheme = 'mbr' (string)
- storage.removable = false (bool)
- storage.removable.media_available = true (bool)
- storage.removable.media_size = 16013852672 (0x3ba800000) (uint64)
- storage.removable.support_async_notification = false (bool)
- storage.requires_eject = false (bool)
- storage.serial = '_USB_DISK_2.0_078C11A4001C-0:0' (string)
- storage.size = 0 (0x0) (uint64)
- storage.vendor = '' (string)
- udi = '/org/freedesktop/Hal/devices/volume_uuid_fb1e8551_250c_44fd_96e0_f1a73dd168da'
- 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__USB_DISK_2_0_078C11A4001C_0_0' (string)
- info.capabilities = {'volume', 'block'} (string list)
- info.category = 'volume' (string)
- info.parent = '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078C11A4001C_0_0' (string)
- info.product = 'Volume (swap)' (string)
- info.udi = '/org/freedesktop/Hal/devices/volume_uuid_fb1e8551_250c_44fd_96e0_f1a73dd168da' (string)
- linux.hotplug_type = 3 (0x3) (int)
- linux.sysfs_path = '/sys/block/sda/sda1' (string)
- storage.model = '' (string)
- volume.block_size = 512 (0x200) (int)
- volume.fstype = 'swap' (string)
- volume.fsusage = 'other' (string)
- volume.fsversion = '2' (string)
- volume.is_disc = false (bool)
- volume.is_mounted = false (bool)
- volume.is_mounted_read_only = false (bool)
- volume.is_partition = true (bool)
- volume.label = '' (string)
- volume.linux.is_device_mapper = false (bool)
- volume.mount_point = '' (string)
- volume.num_blocks = 1007937 (0xf6141) (int)
- volume.partition.flags = {} (string list)
- volume.partition.label = '' (string)
- volume.partition.media_size = 16013852672 (0x3ba800000) (uint64)
- volume.partition.number = 1 (0x1) (int)
- volume.partition.scheme = 'mbr' (string)
- volume.partition.start = 32256 (0x7e00) (uint64)
- volume.partition.type = '0x82' (string)
- volume.partition.uuid = '' (string)
- volume.size = 516063744 (0x1ec28200) (uint64)
- volume.uuid = 'fb1e8551-250c-44fd-96e0-f1a73dd168da' (string)
- udi = '/org/freedesktop/Hal/devices/volume_uuid_79e48ea7_28ad_424b_9818_6f8a5cdc92bc'
- block.device = '/dev/sda2' (string)
- block.is_volume = true (bool)
- block.major = 8 (0x8) (int)
- block.minor = 2 (0x2) (int)
- block.storage_device = '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078C11A4001C_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__USB_DISK_2_0_078C11A4001C_0_0' (string)
- info.product = 'mips' (string)
- info.udi = '/org/freedesktop/Hal/devices/volume_uuid_79e48ea7_28ad_424b_9818_6f8a5cdc92bc' (string)
- linux.hotplug_type = 3 (0x3) (int)
- linux.sysfs_path = '/sys/block/sda/sda2' (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 = 512 (0x200) (int)
- volume.fstype = 'ext2' (string)
- volume.fsusage = 'filesystem' (string)
- volume.fsversion = '1.0' (string)
- volume.ignore = false (bool)
- volume.is_disc = false (bool)
- volume.is_mounted = true (bool)
- volume.is_mounted_read_only = false (bool)
- volume.is_partition = true (bool)
- volume.label = 'mips' (string)
- volume.linux.is_device_mapper = false (bool)
- volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'acl', 'user_xattr'} (string list)
- volume.mount_point = '/' (string)
- volume.num_blocks = 8389584 (0x8003d0) (int)
- volume.partition.flags = {} (string list)
- volume.partition.label = '' (string)
- volume.partition.media_size = 16013852672 (0x3ba800000) (uint64)
- volume.partition.number = 2 (0x2) (int)
- volume.partition.scheme = 'mbr' (string)
- volume.partition.start = 516096000 (0x1ec30000) (uint64)
- volume.partition.type = '0x83' (string)
- volume.partition.uuid = '' (string)
- volume.size = 4295467008 (0x10007a000) (uint64)
- volume.unmount.valid_options = {'lazy'} (string list)
- volume.uuid = '79e48ea7-28ad-424b-9818-6f8a5cdc92bc' (string)
- udi = '/org/freedesktop/Hal/devices/volume_uuid_e2ae8138_0614_4193_920c_12a80ec142e6'
- block.device = '/dev/sda3' (string)
- block.is_volume = true (bool)
- block.major = 8 (0x8) (int)
- block.minor = 3 (0x3) (int)
- block.storage_device = '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078C11A4001C_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__USB_DISK_2_0_078C11A4001C_0_0' (string)
- info.product = 'gdiumhome' (string)
- info.udi = '/org/freedesktop/Hal/devices/volume_uuid_e2ae8138_0614_4193_920c_12a80ec142e6' (string)
- linux.hotplug_type = 3 (0x3) (int)
- linux.sysfs_path = '/sys/block/sda/sda3' (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 = 512 (0x200) (int)
- volume.fstype = 'ext2' (string)
- volume.fsusage = 'filesystem' (string)
- volume.fsversion = '1.0' (string)
- volume.ignore = false (bool)
- volume.is_disc = false (bool)
- volume.is_mounted = true (bool)
- volume.is_mounted_read_only = false (bool)
- volume.is_partition = true (bool)
- volume.label = 'gdiumhome' (string)
- volume.linux.is_device_mapper = false (bool)
- volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'acl', 'user_xattr'} (string list)
- volume.mount_point = '/home' (string)
- volume.num_blocks = 8389584 (0x8003d0) (int)
- volume.partition.flags = {} (string list)
- volume.partition.label = '' (string)
- volume.partition.media_size = 16013852672 (0x3ba800000) (uint64)
- volume.partition.number = 3 (0x3) (int)
- volume.partition.scheme = 'mbr' (string)
- volume.partition.start = 4811563008 (0x11ecaa000) (uint64)
- volume.partition.type = '0x83' (string)
- volume.partition.uuid = '' (string)
- volume.size = 4295467008 (0x10007a000) (uint64)
- volume.unmount.valid_options = {'lazy'} (string list)
- volume.uuid = 'e2ae8138-0614-4193-920c-12a80ec142e6' (string)
- udi = '/org/freedesktop/Hal/devices/volume_uuid_760D_B179'
- block.device = '/dev/sda4' (string)
- block.is_volume = true (bool)
- block.major = 8 (0x8) (int)
- block.minor = 4 (0x4) (int)
- block.storage_device = '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078C11A4001C_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__USB_DISK_2_0_078C11A4001C_0_0' (string)
- info.product = 'GKEY' (string)
- info.udi = '/org/freedesktop/Hal/devices/volume_uuid_760D_B179' (string)
- linux.hotplug_type = 3 (0x3) (int)
- linux.sysfs_path = '/sys/block/sda/sda4' (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 = 512 (0x200) (int)
- volume.fstype = 'vfat' (string)
- volume.fsusage = 'filesystem' (string)
- volume.fsversion = 'FAT32' (string)
- volume.ignore = false (bool)
- volume.is_disc = false (bool)
- volume.is_mounted = true (bool)
- volume.is_mounted_read_only = false (bool)
- volume.is_partition = true (bool)
- volume.label = 'GKEY' (string)
- volume.linux.is_device_mapper = false (bool)
- volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'utf8', 'shortname=', 'codepage=', 'iocharset=', 'umask=', 'dmask=', 'fmask=', 'uid=', 'flush'} (string list)
- volume.mount_point = '/srv/gkey' (string)
- volume.num_blocks = 13489056 (0xcdd3a0) (int)
- volume.partition.flags = {'boot'} (string list)
- volume.partition.label = '' (string)
- volume.partition.media_size = 16013852672 (0x3ba800000) (uint64)
- volume.partition.number = 4 (0x4) (int)
- volume.partition.scheme = 'mbr' (string)
- volume.partition.start = 9107030016 (0x21ed24000) (uint64)
- volume.partition.type = '0x0c' (string)
- volume.partition.uuid = '' (string)
- volume.size = 6906396672 (0x19ba74000) (uint64)
- volume.unmount.valid_options = {'lazy'} (string list)
- volume.uuid = '760D-B179' (string)
