I think this info comes from

mort@chinook:~/tmp$ cat /sys/block/sda/size
625142448


mh

On Thu, Jan 19, 2012 at 3:34 PM, Raj <oc...@thukral.net> wrote:

> df -k will give you the size of a formatted filesystem, not the raw
> capacity of a device.
>
> fdisk -l will give you capacity information.
>
> On Thu, Jan 19, 2012 at 3:30 PM, Andrew Galloway
> <andrew.gallo...@rcmp-grc.gc.ca> wrote:
> > df -k will give you the blocksize in 1k blocks
> >
> >
> >>>> "Robert P. J. Day" <rpj...@crashcourse.ca> 2012-01-19 3:25 PM >>>
> > On Thu, 19 Jan 2012, John C Nash wrote:
> >
> >> Can we have an answer to RD's question as to how to get the capacity
> >> info easily?
> >
> >  someone emailed me and pointed out that "fdisk" seems to give the
> > precise usable size.
> >
> > rday
> >
> > --
> >
> > ========================================================================
> > Robert P. J. Day                                 Ottawa, Ontario, CANADA
> >                        http://crashcourse.ca
> >
> > Twitter:                                       http://twitter.com/rpjday
> > LinkedIn:                               http://ca.linkedin.com/in/rpjday
> > ========================================================================
> > _______________________________________________
> > Linux mailing list
> > Linux@lists.oclug.on.ca
> > http://oclug.on.ca/mailman/listinfo/linux
> > _______________________________________________
> > Linux mailing list
> > Linux@lists.oclug.on.ca
> > http://oclug.on.ca/mailman/listinfo/linux
> _______________________________________________
> Linux mailing list
> Linux@lists.oclug.on.ca
> http://oclug.on.ca/mailman/listinfo/linux
>



-- 
Martin Hicks P.Eng.      |         m...@bork.org
Bork Consulting Inc.     |   +1 (613) 266-2296
_______________________________________________
Linux mailing list
Linux@lists.oclug.on.ca
http://oclug.on.ca/mailman/listinfo/linux

Reply via email to