[fpc-pascal] Size of a partition

David W Noon david.w.noon at googlemail.com
Fri Dec 19 21:13:30 CET 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 19 Dec 2014 13:53:23 +0100, Rainer Stratmann
(rainerstratmann at t-online.de) wrote about "Re: [fpc-pascal] Size of a
partition" (in <201412191353.24007.rainerstratmann at t-online.de>):

> On Thursday 18 December 2014 22:49:08 you wrote:
>> On 12/18/14, Rainer Stratmann <rainerstratmann at t-online.de>
>> wrote:
>>> How to get the total size of an unmounted partition in Linux?
>> 
>> Can you use the info at 
>> http://serverfault.com/questions/190685/whats-the-best-way-to-get-info-abou
>>
>> 
t-currently-unmounted-drives ?
>> 
>> Just googled you question ;-)
> 
> Thanks, it is may interesting.

Probably not, actually. ... :-)

> Better would be a syscall.

This stuff is all in sysfs.  Attached is some code that can get you
started on a more sensible path.

HTH.
- -- 
Regards,

Dave  [RLU #314465]
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
david.w.noon at googlemail.com (David W Noon)
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlSUhuoACgkQogYgcI4W/5TVigCeO9dvGFzl9f555Gdami7BhFmn
G6AAn2JvBzYT2jHijewMohXpAW/mjXxH
=xRzJ
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: VolumeUtils.zip
Type: application/zip
Size: 1677 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20141219/64b98a15/attachment.zip>


More information about the fpc-pascal mailing list