HAL reports disk size as zero

Sreejith K sreejithemk at gmail.com
Tue Oct 27 00:18:06 PDT 2009


Hi all,

Running `lshal` reports the Harddsik size as where the output of fdisk -l is

======================================================
Disk /dev/sda: 79.8 GB, 79891005440 bytes
255 heads, 63 sectors/track, 9712 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          32      257008+  83  Linux
/dev/sda2              33        1076     8385930   82  Linux swap / Solaris
/dev/sda3            1077        9712    69368670   83  Linux

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk
doesn't support GPT. Use GNU Parted.


WARNING: The size of this disk is 15.0 TB (14978677473280 bytes).
DOS partition table format can not be used on drives for volumes
larger than 2.2 TB (2199023255040 bytes). Use parted(1) and GUID
partition table format (GPT).


Disk /dev/sdb: 14978.6 GB, 14978677473280 bytes
255 heads, 63 sectors/track, 1821053 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      267350  2147483647+  ee  EFI GPT
=======================================================

The output of lshal for /dev/sda and /dev/sdb are

========================================================
udi = '/org/freedesktop/Hal/devices/storage_serial_SAdaptec_OS_0E3AE217'
  info.addons = {'hald-addon-storage'} (string list)
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_serial_SAdaptec_OS_0E3AE217'  (string)
  info.udi =
'/org/freedesktop/Hal/devices/storage_serial_SAdaptec_OS_0E3AE217'  (string)
  storage.partitioning_scheme = 'mbr'  (string)
  storage.removable.media_size = 79891005440  (0x1299e00000)  (uint64)
  storage.requires_eject = false  (bool)
  storage.hotpluggable = false  (bool)
  info.capabilities = {'storage', 'block'} (string list)
  info.category = 'storage'  (string)
  info.product = 'OS'  (string)
  info.vendor = 'Adaptec'  (string)
  *storage.size = 0  (0x0)  (uint64)*
  storage.removable = true  (bool)
  storage.removable.media_available = true  (bool)
  storage.physical_device = '/org/freedesktop/Hal/devices/pci_8086_340e'
(string)
  storage.lun = 0  (0x0)  (int)
  storage.firmware_version = 'V1.0'  (string)
  storage.serial = 'SAdaptec_OS_0E3AE217'  (string)
  storage.vendor = 'Adaptec'  (string)
  storage.model = 'OS'  (string)
  storage.drive_type = 'disk'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.media_check_enabled = true  (bool)
  storage.no_partitions_hint = false  (bool)
  storage.bus = 'pci'  (string)
  block.is_volume = false  (bool)
  block.minor = 0  (0x0)  (int)
  block.major = 8  (0x8)  (int)
  block.device = '/dev/sda'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent =
'/org/freedesktop/Hal/devices/pci_9005_285_scsi_host_scsi_device_lun0_17'
(string)
  linux.sysfs_path_device = '/sys/block/sda'  (string)
  linux.sysfs_path = '/sys/block/sda'  (string)

udi = '/org/freedesktop/Hal/devices/storage_serial_SAdaptec_VPS_C9573217'
  info.addons = {'hald-addon-storage'} (string list)
  block.storage_device =
'/org/freedesktop/Hal/devices/storage_serial_SAdaptec_VPS_C9573217'
(string)
  info.udi =
'/org/freedesktop/Hal/devices/storage_serial_SAdaptec_VPS_C9573217'
(string)
  storage.partitioning_scheme = 'gpt'  (string)
  storage.removable.media_size = 14978677473280  (0xd9f7ec00000)  (uint64)
  storage.requires_eject = false  (bool)
  storage.hotpluggable = false  (bool)
  info.capabilities = {'storage', 'block'} (string list)
  info.category = 'storage'  (string)
  info.product = 'VPS'  (string)
  info.vendor = 'Adaptec'  (string)
  *storage.size = 0  (0x0)  (uint64)*
  storage.removable = true  (bool)
  storage.removable.media_available = true  (bool)
  storage.physical_device = '/org/freedesktop/Hal/devices/pci_8086_340e'
(string)
  storage.lun = 0  (0x0)  (int)
  storage.firmware_version = 'V1.0'  (string)
  storage.serial = 'SAdaptec_VPS_C9573217'  (string)
  storage.vendor = 'Adaptec'  (string)
  storage.model = 'VPS'  (string)
  storage.drive_type = 'disk'  (string)
  storage.automount_enabled_hint = true  (bool)
  storage.media_check_enabled = true  (bool)
  storage.no_partitions_hint = false  (bool)
  storage.bus = 'pci'  (string)
  block.is_volume = false  (bool)
  block.minor = 16  (0x10)  (int)
  block.major = 8  (0x8)  (int)
  block.device = '/dev/sdb'  (string)
  linux.hotplug_type = 3  (0x3)  (int)
  info.parent =
'/org/freedesktop/Hal/devices/pci_9005_285_scsi_host_scsi_device_lun0_16'
(string)
  linux.sysfs_path_device = '/sys/block/sdb'  (string)
  linux.sysfs_path = '/sys/block/sdb'  (string)
========================================================

Why is it reporting the disk size as zero ? Please help me here..

Regards,

Sreejith K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/hal/attachments/20091027/c3d547ac/attachment.html 


More information about the hal mailing list