LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Find Block size? (https://www.linuxquestions.org/questions/linux-newbie-8/find-block-size-501798/)

cnm 11-15-2006 07:43 AM

Find Block size?
 
Is there a command to find the block size? (when command fdisk -l is used we can see the number of blocks in each partition. But how to find the size of each block?) THANKS FOR YOU TIME & KNOWLEGE

acid_kewpie 11-15-2006 07:53 AM

this is part of a file system, not a partition, so it's down to file system specific tools, e.g. tune2fs for ext2 / ext3.

pixellany 11-15-2006 08:01 AM

Quote:

Originally Posted by cnm
Is there a command to find the block size? (when command fdisk -l is used we can see the number of blocks in each partition. But how to find the size of each block?) THANKS FOR YOU TIME & KNOWLEGE

fdisk reports partition sizes in blocks of 1024 bytes (2 sectors). The start and end point are--by default--cylinder numbers. With the u command, the start and end points will be sectors. This is less confusing. For example, the 1st partition will be shown starting in cylinder #1, which is ambiguous--it actually starts in sector #63 (counting from 0)

acid_kewpie 11-15-2006 08:54 AM

Quote:

Originally Posted by acid_kewpie
this is part of a file system, not a partition, so it's down to file system specific tools, e.g. tune2fs for ext2 / ext3.

yeah nice one doofus, wrong type of block size... :rolleyes:

pixellany 11-15-2006 10:53 AM

Quote:

Originally Posted by acid_kewpie
yeah nice one doofus, wrong type of block size... :rolleyes:

Trouble when one moderator calls another a doofus.
?? when moderator calls himself a doofus.
OP is gone and we are now talking to ourselves.........


All times are GMT -5. The time now is 09:23 AM.