• [^] # Re: information sur HDD (Linux)

    Posté par . En réponse au message information sur HDD (Linux). Évalué à 0.

    Ooops, j'ai oublié un exemple d'utilisation de hal.
    $ lshal --tree
    [...]
    storage_serial_Y28G0SEE
    volume_uuid_4d8be246_0959_4760_93da_7340446b2baa
    volume_uuid_72abcf17_7925_2b28_77d9_d218c8b8e4eb_0
    volume_part3_size_537255936_0
    [...]

    $ lshal --long --show storage_serial_Y28G0SEE
    udi = '/org/freedesktop/Hal/devices/storage_serial_Y28G0SEE'
    volume.ignore = true (bool)
    block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_Y28G0SEE' (string)
    info.udi = '/org/freedesktop/Hal/devices/storage_serial_Y28G0SEE' (string)
    storage.partitioning_scheme = 'mbr' (string)
    storage.removable.media_size = 81964302336 (0x1315740000) (uint64)
    storage.requires_eject = false (bool)
    storage.hotpluggable = false (bool)
    info.capabilities = {'storage', 'block'} (string list)
    info.category = 'storage' (string)
    info.product = 'Maxtor 6Y080L0' (string)
    storage.size = 81964302336 (0x1315740000) (uint64)
    storage.removable = false (bool)
    storage.removable.media_available = true (bool)
    storage.physical_device = '/org/freedesktop/Hal/devices/pci_1106_571_ide_0_0' (string)
    storage.firmware_version = 'YAR41BW0' (string)
    storage.serial = 'Y28G0SEE' (string)
    storage.vendor = '' (string)
    storage.model = 'Maxtor 6Y080L0' (string)
    storage.drive_type = 'disk' (string)
    storage.automount_enabled_hint = true (bool)
    storage.media_check_enabled = false (bool)
    storage.no_partitions_hint = false (bool)
    storage.bus = 'ide' (string)
    block.is_volume = false (bool)
    block.minor = 0 (0x0) (int)
    block.major = 3 (0x3) (int)
    block.device = '/dev/hda' (string)
    linux.hotplug_type = 3 (0x3) (int)
    info.parent = '/org/freedesktop/Hal/devices/pci_1106_571_ide_0_0' (string)
    linux.sysfs_path_device = '/sys/block/hda' (string)
    linux.sysfs_path = '/sys/block/hda' (string)

    $ lshal --long --show volume_uuid_4d8be246_0959_4760_93da_7340446b2baa
    udi = '/org/freedesktop/Hal/devices/volume_uuid_4d8be246_0959_4760_93da_7340446b2baa'
    volume.unmount.valid_options = {'lazy'} (string list)
    volume.mount.valid_options = {'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'data='} (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_argnames = {'mount_point fstype extra_options', 'extra_options', 'extra_options'} (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)
    volume.ignore = true (bool)
    info.udi = '/org/freedesktop/Hal/devices/volume_uuid_4d8be246_0959_4760_93da_7340446b2baa' (string)
    volume.partition.flags = {} (string list)
    volume.partition.uuid = '' (string)
    volume.partition.label = '' (string)
    volume.partition.type = '0x83' (string)
    volume.partition.scheme = 'mbr' (string)
    info.product = 'big_b1' (string)
    volume.partition.media_size = 81964302336 (0x1315740000) (uint64)
    volume.partition.start = 32256 (0x7e00) (uint64)
    volume.size = 100606464 (0x5ff2200) (uint64)
    volume.num_blocks = 196497 (0x2ff91) (int)
    volume.block_size = 512 (0x200) (int)
    volume.partition.number = 1 (0x1) (int)
    info.capabilities = {'volume', 'block'} (string list)
    info.category = 'volume' (string)
    volume.is_partition = true (bool)
    volume.is_disc = false (bool)
    volume.linux.is_device_mapper = false (bool)
    volume.is_mounted_read_only = false (bool)
    volume.is_mounted = true (bool)
    volume.mount_point = '/boot' (string)
    volume.label = 'big_b1' (string)
    volume.uuid = '4d8be246-0959-4760-93da-7340446b2baa' (string)
    volume.fsversion = '1.0' (string)
    volume.fsusage = 'filesystem' (string)
    volume.fstype = 'ext3' (string)
    storage.model = '' (string)
    block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_Y28G0SEE' (string)
    block.is_volume = true (bool)
    block.minor = 1 (0x1) (int)
    block.major = 3 (0x3) (int)
    block.device = '/dev/hda1' (string)
    linux.hotplug_type = 3 (0x3) (int)
    info.parent = '/org/freedesktop/Hal/devices/storage_serial_Y28G0SEE' (string)
    linux.sysfs_path_device = '/sys/block/hda/hda1' (string)
    linux.sysfs_path = '/sys/block/hda/hda1' (string)