LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-15-2006, 08:43 AM   #1
cnm
Member
 
Registered: Nov 2006
Distribution: RHEL 4
Posts: 34

Rep: Reputation: 15
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
 
Old 11-15-2006, 08:53 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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.
 
Old 11-15-2006, 09:01 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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)
 
Old 11-15-2006, 09:54 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
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...
 
Old 11-15-2006, 11:53 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by acid_kewpie
yeah nice one doofus, wrong type of block size...
Trouble when one moderator calls another a doofus.
?? when moderator calls himself a doofus.
OP is gone and we are now talking to ourselves.........
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
block size for photorec fakie_flip Linux - Software 0 08-12-2006 12:01 PM
size of block devices primo Solaris / OpenSolaris 1 12-20-2005 01:17 PM
block size ust Linux - Software 1 11-25-2005 12:45 AM
block size in ext2 ramu_ak Linux - General 2 03-30-2004 02:20 AM
Is there an optimum block size for the dd command? tgardner Linux - Newbie 1 08-25-2003 09:43 PM


All times are GMT -5. The time now is 08:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration