cancel
Showing results for 
Search instead for 
Did you mean: 
Trevor
Starfighter Starfighter
Starfighter
  • 230 Views

Block size of filesystem

I have a disk (/dev/sda), that has two partitions (/dev/sda1 and /dev/sda2).
I was verifying the block size of 4096, of the first partition (/dev/sda1), using
the following commands:

# stat  -f  /dev/sda1

# fdisk  -l

Those commands provided that verification.  Are there any other commands
that I can use to provide me that same information (block size) for that 
first partition?

Thanks in advance for your contribution!

 

Trevor "Red Hat Evangelist" Chandler
1 Reply
Chetan_Tiwary_
Community Manager
Community Manager
  • 199 Views

@Trevor will wait for other learners to provide commands, meanwhile I will use another approach, see if it serves your purpose : I will create a minimal file in that filesystem, its size will be negligible but you can see the disk allocation for a file :

Chetan_Tiwary__0-1729082365909.png

or else if you have mounted the paritition somewhere, then you can check the bsize with xfs_info :

Chetan_Tiwary__0-1729084606416.png

 

0 Kudos
Join the discussion
You must log in to join this conversation.