Rainer Stratmann wrote:
On Thursday 18 December 2014 22:49:08 you wrote:
On 12/18/14, Rainer Stratmann <rainerstratm...@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.
Better would be a syscall.
I think this is a question that doesn't have a straightforward answer.
For example, you refer to an "unmounted partition", but partitions
aren't mounted: filesystems are mounted, and without knowing the type of
filesystem you don't know how much overhead is associated.
The canonical program that looks at partition sizes is fdisk, and
painful experience has taught me that different fdisk implementations
can return different results. Sometimes the differences are subtle,
sometimes not.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal