Share Pastebin
Guest
Public paste!

Untitled

By: a guest | Feb 9th, 2010 | Syntax: None | Size: 11.36 KB | Hits: 8 | Expires: Never
Copy text to clipboard
  1. $ 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
  2. > lshal -u $x
  3. > done
  4. udi = '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078C11A4001C_0_0'
  5.   block.device = '/dev/sda'  (string)
  6.   block.is_volume = false  (bool)
  7.   block.major = 8  (0x8)  (int)
  8.   block.minor = 0  (0x0)  (int)
  9.   block.storage_device = '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078C11A4001C_0_0'  (string)
  10.   info.addons = {'hald-addon-storage'} (string list)
  11.   info.capabilities = {'storage', 'block'} (string list)
  12.   info.category = 'storage'  (string)
  13.   info.interfaces = {'org.freedesktop.Hal.Device.Storage.Removable'} (string list)
  14.   info.parent = '/org/freedesktop/Hal/devices/usb_device_13fe_1e00_078C11A4001C_if0_scsi_host_scsi_device_lun0'  (string)
  15.   info.product = 'USB DISK 2.0'  (string)
  16.   info.udi = '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078C11A4001C_0_0'  (string)
  17.   info.vendor = ''  (string)
  18.   linux.hotplug_type = 3  (0x3)  (int)
  19.   linux.sysfs_path = '/sys/block/sda'  (string)
  20.   storage.automount_enabled_hint = true  (bool)
  21.   storage.bus = 'usb'  (string)
  22.   storage.drive_type = 'disk'  (string)
  23.   storage.firmware_version = 'PMAP'  (string)
  24.   storage.hotpluggable = true  (bool)
  25.   storage.lun = 0  (0x0)  (int)
  26.   storage.media_check_enabled = true  (bool)
  27.   storage.model = 'USB DISK 2.0'  (string)
  28.   storage.no_partitions_hint = false  (bool)
  29.   storage.originating_device = '/org/freedesktop/Hal/devices/usb_device_13fe_1e00_078C11A4001C_if0'  (string)
  30.   storage.partitioning_scheme = 'mbr'  (string)
  31.   storage.removable = false  (bool)
  32.   storage.removable.media_available = true  (bool)
  33.   storage.removable.media_size = 16013852672  (0x3ba800000)  (uint64)
  34.   storage.removable.support_async_notification = false  (bool)
  35.   storage.requires_eject = false  (bool)
  36.   storage.serial = '_USB_DISK_2.0_078C11A4001C-0:0'  (string)
  37.   storage.size = 0  (0x0)  (uint64)
  38.   storage.vendor = ''  (string)
  39.  
  40. udi = '/org/freedesktop/Hal/devices/volume_uuid_fb1e8551_250c_44fd_96e0_f1a73dd168da'
  41.   block.device = '/dev/sda1'  (string)
  42.   block.is_volume = true  (bool)
  43.   block.major = 8  (0x8)  (int)
  44.   block.minor = 1  (0x1)  (int)
  45.   block.storage_device = '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078C11A4001C_0_0'  (string)
  46.   info.capabilities = {'volume', 'block'} (string list)
  47.   info.category = 'volume'  (string)
  48.   info.parent = '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078C11A4001C_0_0'  (string)
  49.   info.product = 'Volume (swap)'  (string)
  50.   info.udi = '/org/freedesktop/Hal/devices/volume_uuid_fb1e8551_250c_44fd_96e0_f1a73dd168da'  (string)
  51.   linux.hotplug_type = 3  (0x3)  (int)
  52.   linux.sysfs_path = '/sys/block/sda/sda1'  (string)
  53.   storage.model = ''  (string)
  54.   volume.block_size = 512  (0x200)  (int)
  55.   volume.fstype = 'swap'  (string)
  56.   volume.fsusage = 'other'  (string)
  57.   volume.fsversion = '2'  (string)
  58.   volume.is_disc = false  (bool)
  59.   volume.is_mounted = false  (bool)
  60.   volume.is_mounted_read_only = false  (bool)
  61.   volume.is_partition = true  (bool)
  62.   volume.label = ''  (string)
  63.   volume.linux.is_device_mapper = false  (bool)
  64.   volume.mount_point = ''  (string)
  65.   volume.num_blocks = 1007937  (0xf6141)  (int)
  66.   volume.partition.flags = {} (string list)
  67.   volume.partition.label = ''  (string)
  68.   volume.partition.media_size = 16013852672  (0x3ba800000)  (uint64)
  69.   volume.partition.number = 1  (0x1)  (int)
  70.   volume.partition.scheme = 'mbr'  (string)
  71.   volume.partition.start = 32256  (0x7e00)  (uint64)
  72.   volume.partition.type = '0x82'  (string)
  73.   volume.partition.uuid = ''  (string)
  74.   volume.size = 516063744  (0x1ec28200)  (uint64)
  75.   volume.uuid = 'fb1e8551-250c-44fd-96e0-f1a73dd168da'  (string)
  76.  
  77. udi = '/org/freedesktop/Hal/devices/volume_uuid_79e48ea7_28ad_424b_9818_6f8a5cdc92bc'
  78.   block.device = '/dev/sda2'  (string)
  79.   block.is_volume = true  (bool)
  80.   block.major = 8  (0x8)  (int)
  81.   block.minor = 2  (0x2)  (int)
  82.   block.storage_device = '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078C11A4001C_0_0'  (string)
  83.   info.capabilities = {'volume', 'block'} (string list)
  84.   info.category = 'volume'  (string)
  85.   info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  86.   info.parent = '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078C11A4001C_0_0'  (string)
  87.   info.product = 'mips'  (string)
  88.   info.udi = '/org/freedesktop/Hal/devices/volume_uuid_79e48ea7_28ad_424b_9818_6f8a5cdc92bc'  (string)
  89.   linux.hotplug_type = 3  (0x3)  (int)
  90.   linux.sysfs_path = '/sys/block/sda/sda2'  (string)
  91.   org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point fstype extra_options', 'extra_options', 'extra_options'} (string list)
  92.   org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject'} (string list)
  93.   org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list)
  94.   org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'} (string list)
  95.   storage.model = ''  (string)
  96.   volume.block_size = 512  (0x200)  (int)
  97.   volume.fstype = 'ext2'  (string)
  98.   volume.fsusage = 'filesystem'  (string)
  99.   volume.fsversion = '1.0'  (string)
  100.   volume.ignore = false  (bool)
  101.   volume.is_disc = false  (bool)
  102.   volume.is_mounted = true  (bool)
  103.   volume.is_mounted_read_only = false  (bool)
  104.   volume.is_partition = true  (bool)
  105.   volume.label = 'mips'  (string)
  106.   volume.linux.is_device_mapper = false  (bool)
  107.   volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'acl', 'user_xattr'} (string list)
  108.   volume.mount_point = '/'  (string)
  109.   volume.num_blocks = 8389584  (0x8003d0)  (int)
  110.   volume.partition.flags = {} (string list)
  111.   volume.partition.label = ''  (string)
  112.   volume.partition.media_size = 16013852672  (0x3ba800000)  (uint64)
  113.   volume.partition.number = 2  (0x2)  (int)
  114.   volume.partition.scheme = 'mbr'  (string)
  115.   volume.partition.start = 516096000  (0x1ec30000)  (uint64)
  116.   volume.partition.type = '0x83'  (string)
  117.   volume.partition.uuid = ''  (string)
  118.   volume.size = 4295467008  (0x10007a000)  (uint64)
  119.   volume.unmount.valid_options = {'lazy'} (string list)
  120.   volume.uuid = '79e48ea7-28ad-424b-9818-6f8a5cdc92bc'  (string)
  121.  
  122. udi = '/org/freedesktop/Hal/devices/volume_uuid_e2ae8138_0614_4193_920c_12a80ec142e6'
  123.   block.device = '/dev/sda3'  (string)
  124.   block.is_volume = true  (bool)
  125.   block.major = 8  (0x8)  (int)
  126.   block.minor = 3  (0x3)  (int)
  127.   block.storage_device = '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078C11A4001C_0_0'  (string)
  128.   info.capabilities = {'volume', 'block'} (string list)
  129.   info.category = 'volume'  (string)
  130.   info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  131.   info.parent = '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078C11A4001C_0_0'  (string)
  132.   info.product = 'gdiumhome'  (string)
  133.   info.udi = '/org/freedesktop/Hal/devices/volume_uuid_e2ae8138_0614_4193_920c_12a80ec142e6'  (string)
  134.   linux.hotplug_type = 3  (0x3)  (int)
  135.   linux.sysfs_path = '/sys/block/sda/sda3'  (string)
  136.   org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point fstype extra_options', 'extra_options', 'extra_options'} (string list)
  137.   org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject'} (string list)
  138.   org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list)
  139.   org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'} (string list)
  140.   storage.model = ''  (string)
  141.   volume.block_size = 512  (0x200)  (int)
  142.   volume.fstype = 'ext2'  (string)
  143.   volume.fsusage = 'filesystem'  (string)
  144.   volume.fsversion = '1.0'  (string)
  145.   volume.ignore = false  (bool)
  146.   volume.is_disc = false  (bool)
  147.   volume.is_mounted = true  (bool)
  148.   volume.is_mounted_read_only = false  (bool)
  149.   volume.is_partition = true  (bool)
  150.   volume.label = 'gdiumhome'  (string)
  151.   volume.linux.is_device_mapper = false  (bool)
  152.   volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'acl', 'user_xattr'} (string list)
  153.   volume.mount_point = '/home'  (string)
  154.   volume.num_blocks = 8389584  (0x8003d0)  (int)
  155.   volume.partition.flags = {} (string list)
  156.   volume.partition.label = ''  (string)
  157.   volume.partition.media_size = 16013852672  (0x3ba800000)  (uint64)
  158.   volume.partition.number = 3  (0x3)  (int)
  159.   volume.partition.scheme = 'mbr'  (string)
  160.   volume.partition.start = 4811563008  (0x11ecaa000)  (uint64)
  161.   volume.partition.type = '0x83'  (string)
  162.   volume.partition.uuid = ''  (string)
  163.   volume.size = 4295467008  (0x10007a000)  (uint64)
  164.   volume.unmount.valid_options = {'lazy'} (string list)
  165.   volume.uuid = 'e2ae8138-0614-4193-920c-12a80ec142e6'  (string)
  166.  
  167. udi = '/org/freedesktop/Hal/devices/volume_uuid_760D_B179'
  168.   block.device = '/dev/sda4'  (string)
  169.   block.is_volume = true  (bool)
  170.   block.major = 8  (0x8)  (int)
  171.   block.minor = 4  (0x4)  (int)
  172.   block.storage_device = '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078C11A4001C_0_0'  (string)
  173.   info.capabilities = {'volume', 'block'} (string list)
  174.   info.category = 'volume'  (string)
  175.   info.interfaces = {'org.freedesktop.Hal.Device.Volume'} (string list)
  176.   info.parent = '/org/freedesktop/Hal/devices/storage_serial__USB_DISK_2_0_078C11A4001C_0_0'  (string)
  177.   info.product = 'GKEY'  (string)
  178.   info.udi = '/org/freedesktop/Hal/devices/volume_uuid_760D_B179'  (string)
  179.   linux.hotplug_type = 3  (0x3)  (int)
  180.   linux.sysfs_path = '/sys/block/sda/sda4'  (string)
  181.   org.freedesktop.Hal.Device.Volume.method_argnames = {'mount_point fstype extra_options', 'extra_options', 'extra_options'} (string list)
  182.   org.freedesktop.Hal.Device.Volume.method_execpaths = {'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject'} (string list)
  183.   org.freedesktop.Hal.Device.Volume.method_names = {'Mount', 'Unmount', 'Eject'} (string list)
  184.   org.freedesktop.Hal.Device.Volume.method_signatures = {'ssas', 'as', 'as'} (string list)
  185.   storage.model = ''  (string)
  186.   volume.block_size = 512  (0x200)  (int)
  187.   volume.fstype = 'vfat'  (string)
  188.   volume.fsusage = 'filesystem'  (string)
  189.   volume.fsversion = 'FAT32'  (string)
  190.   volume.ignore = false  (bool)
  191.   volume.is_disc = false  (bool)
  192.   volume.is_mounted = true  (bool)
  193.   volume.is_mounted_read_only = false  (bool)
  194.   volume.is_partition = true  (bool)
  195.   volume.label = 'GKEY'  (string)
  196.   volume.linux.is_device_mapper = false  (bool)
  197.   volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'utf8', 'shortname=', 'codepage=', 'iocharset=', 'umask=', 'dmask=', 'fmask=', 'uid=', 'flush'} (string list)
  198.   volume.mount_point = '/srv/gkey'  (string)
  199.   volume.num_blocks = 13489056  (0xcdd3a0)  (int)
  200.   volume.partition.flags = {'boot'} (string list)
  201.   volume.partition.label = ''  (string)
  202.   volume.partition.media_size = 16013852672  (0x3ba800000)  (uint64)
  203.   volume.partition.number = 4  (0x4)  (int)
  204.   volume.partition.scheme = 'mbr'  (string)
  205.   volume.partition.start = 9107030016  (0x21ed24000)  (uint64)
  206.   volume.partition.type = '0x0c'  (string)
  207.   volume.partition.uuid = ''  (string)
  208.   volume.size = 6906396672  (0x19ba74000)  (uint64)
  209.   volume.unmount.valid_options = {'lazy'} (string list)
  210.   volume.uuid = '760D-B179'  (string)