Re: Blocks verses Bytes,Mbytes etc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"jdow" <jdow@xxxxxxxxxxxxx> writes:

> From: "Harry Putnam" <hgp@xxxxxxxxxxxxx>
>
>> But its often the case when one needs fdisk that not much else is
>> available so I wondered if there is a handy way to convert the Blocks
>> shown above into Bytes, or at least some rough approximation?
>  
> Divide the number of blocks by 2 to get the number of 1024 byte "kilo
> bytes" there are on the disk.

Thanks Jo,
I must be doing something wrong here:
fdisk: /dev/hda8             1433      1503    570276   83  Linux
df -h  /dev/hda8             548M   99M  422M  19% /var

In this picture 570276 blocks equals 548M.  I realize the 548M may
not be very accurate.  I've forgotten if df shows the MB after what
is reserved for emergency and etc.  But it is at least sort of close.

  570276 / 2 = 285138

Then am I right in thinking dividing 285138 by 1024 will give MB?

  285138 / 1024 = 278.455MB

Which is only about half.  Maybe just divide the Blocks by 1024 to
get MB? 

  570276 / 1024  = 556.91MB

Or did I get your reply confused?





[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux