[fpc-pascal] Size of a partition

Rainer Stratmann rainerstratmann at t-online.de
Sat Dec 20 00:00:35 CET 2014


Hi Dave!

that's exactly what I was searching for.
Thanks a lot.

One question is left:

Where can I read the blocksize. Normally it is 512 bytes. But there are 
(newer) devices where there is a different blocksize. Also a CD has a different 
blocksize as far I know.


 On Friday 19 December 2014 21:13:30 you wrote:
> 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-a
> >> bou
> 
> 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. 



More information about the fpc-pascal mailing list