[fpc-pascal] Size of a partition
Rainer Stratmann
rainerstratmann at t-online.de
Sat Dec 20 00:13:19 CET 2014
On Saturday 20 December 2014 00:00:35 you wrote:
> Hi Dave!
>
> that's exactly what I was searching for.
> Thanks a lot.
>
> One question is left:
>
> Where can I read the blocksize.
/sys/block/sda/queue/hw_sector_size
logical_block_size
physical_block_size
and so on
> 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.
>
> _______________________________________________
> fpc-pascal maillist - fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
More information about the fpc-pascal
mailing list