Free/Used space on unmounted storage devices

Madison Kelly linux at
Mon Mar 3 08:47:22 PST 2008

Andy Shevchenko wrote:
> Hi Madison Kelly!
>  On Fri, Feb 29, 2008 at 09:13:49AM -0500, Madison Kelly wrote next:
>>  Here is a sample output from 'hal-device' for an unmounted partition. I can 
>>  see various size-type data like block size, number of blocks, total size and 
>>  such, but no information on used/free space. Perhaps I am missing something?
> Really, the free space is dependent to the FS. I guess the used/free
> information can't be catched without some initial (mount) procedure.

That makes sense, as the contents of a device is really stretching the 
idea of "information about a device". Oh well, was hoping to avoid 
having to mount a partition to collect that data.

Thanks for your help!


More information about the hal mailing list