[Lancaster] how big are my blocks? using quota

Andy Smith andy at lug.org.uk
Thu Jul 13 14:48:20 BST 2006


On Thu, Jul 13, 2006 at 02:27:25PM +0100, max* wrote:
> using quota to set the amount of space on the hard-drive that each user can 
> have on a filesystem. But edquota measures this size in blocks. How can I 
> tell how big my blocks are, in order to work out how blocks to set a quota 
> on? (Obviously I'm thinking in terms of MB, GB etc)

Assuming ext2/ext3:

$ sudo tune2fs -l /dev/sda1 | grep "^Block size"
Block size:               4096

(bytes)

-- 
http://strugglers.net/wiki/Xen_hosting -- A Xen VPS hosting hobby
Encrypted mail welcome - keyid 0x604DE5DB
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mailman.lug.org.uk/pipermail/lancaster/attachments/20060713/fc3a3279/attachment.bin


More information about the Lancaster mailing list