On Wed, 21 May 2008, carti wrote:
> "df" command would give you the block size.( see the column header after

> So, I believe the block size is 1024 bytes. Correct me if I am wrong.

Sorry. You are wrong! :-(

If the file system block size is what you want then the command is

        dumpe2fs -h /dev/hda1 | grep "Block size:"

The answer is in bytes. This is for the ext2/3/4 file system on the
device /dev/hda1. 

If the block device block size is what you want then the command is

        blockdev --getsize64 /dev/hda1 

Here the answer is also in bytes for the device /dev/hda1. Note that
block-devices usually (always?) work with a sector size of 512-bytes.

Mutatis mutandi.

Regards,

Kapil.
--

_______________________________________________
To unsubscribe, email [EMAIL PROTECTED] with 
"unsubscribe <password> <address>"
in the subject or body of the message.  
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc

Reply via email to