Configuration de HAL
Récuperation de l'identifiant du disque :
$ lshal | grep ntfs
volume.fstype = 'ntfs-3g' (string)
volume.policy.mount_filesystem = 'ntfs-3g' (string)
info.product = 'Volume (ntfs)' (string)
volume.fstype = 'ntfs' (string)
$ hal-find-by-property --key "volume.fstype" --string "ntfs-3g"
/org/freedesktop/Hal/devices/volume_uuid_EC28A19C28A16674
Liste des propriétés du disque :
$ hal-device volume_uuid_EC28A19C28A16674
udi = '/org/freedesktop/Hal/devices/volume_uuid_EC28A19C28A16674'
block.minor = 1 (0x1) (int)
volume.label = 'RACK' (string)
volume.ignore = false (bool)
org.freedesktop.Hal.Device.Volume.method_names = { 'Mount', 'Unmount', 'Eject' } (string list)
info.capabilities = { 'volume', 'block' } (string list)
volume.partition.flags = { 'boot' } (string list)
volume.is_partition = true (bool)
volume.mount_point = * (string)
info.category = 'volume' (string)
info.product = 'RACK' (string)
volume.is_disc = false (bool)
volume.is_mounted = false (bool)
volume.policy.mount_filesystem = 'ntfs-3g' (string)
volume.partition.type = '0x07' (string)
block.is_volume = true (bool)
volume.linux.is_device_mapper = false (bool)
block.storage_device = '/org/freedesktop/Hal/devices/storage_serial_USB_2_0_Storage_Device_0000100010000000AC25_0_0' (string)
info.parent = '/org/freedesktop/Hal/devices/storage_serial_USB_2_0_Storage_Device_0000100010000000AC25_0_0' (string)
volume.block_size = 512 (0x200) (int)
volume.partition.number = 1 (0x1) (int)
volume.num_blocks = 240107427 (0xe4fbfa3) (int)
volume.fsversion = '3.1' (string)
block.device = '/dev/sda1' (string)
volume.uuid = 'EC28A19C28A16674' (string)
volume.partition.label = * (string)
volume.partition.scheme = 'mbr' (string)
volume.partition.media_size = 122942324736 (0x1c9fef0000) (uint64)
volume.partition.uuid = * (string)
volume.fsusage = 'filesystem' (string)
volume.is_mounted_read_only = false (bool)
org.freedesktop.Hal.Device.Volume.method_argnames = { 'mount_point fstype extra_options', 'extra_options', 'extra_options' } (string list)
info.interfaces = { 'org.freedesktop.Hal.Device.Volume' } (string list)
storage.model = * (string)
volume.size = 122935002624 (0x1c9f7f4600) (uint64)
info.udi = '/org/freedesktop/Hal/devices/volume_uuid_EC28A19C28A16674' (string)
volume.mount.valid_options = { 'ro', 'sync', 'dirsync', 'noatime', 'nodiratime', 'noexec', 'quiet', 'remount', 'exec', 'uid=', 'gid=', 'umask=', 'locale=', 'utf8', 'locale=' } (string list)
org.freedesktop.Hal.Device.Volume.method_signatures = { 'ssas', 'as', 'as' } (string list)
block.major = 8 (0x8) (int)
volume.fstype = 'ntfs-3g' (string)
org.freedesktop.Hal.Device.Volume.method_execpaths = { 'hal-storage-mount', 'hal-storage-unmount', 'hal-storage-eject' } (string list)
volume.unmount.valid_options = { 'lazy' } (string list)
linux.hotplug_type = 3 (0x3) (int)
volume.partition.start = 32256 (0x7e00) (uint64)
linux.sysfs_path = '/sys/block/sda/sda1' (string)