blocks to megabytes calculation in unix

  • ramjimh
  • Newbie
  • Newbie
  • ramjimh
  • Posts: 6
  • Loc: madurai

Post 3+ Months Ago

how to calculate the blocks to megabytes in unix.white partitioning the hard disk in unix it shows in blocks numbers.how can i calculate it into megabytes. for example
1mb=?blocks.

with rgds,

ramji
  • roca
  • Newbie
  • Newbie
  • roca
  • Posts: 5

Post 3+ Months Ago

Generally a linux hard drive blocks are 1Kbytes blocks.
But those depends of system architecture, filesystem, how was made filesystem and unix like system you are using...

Generally:
1MB = 1KB*1024 => 1MB = 1024 blocks.

but take a look of "man mke2fs" if you are using linux with ext2 or ext3 filesystem.

Regards, roca.

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 60 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.