Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I check on Ubuntu 12.04 allocation unit size on my hard drives? Is there any simple way (as a terminal command), I've been searching for this info in Disk Utility, but couldn't find it.

share|improve this question

1 Answer 1

You could try :

hdparm -I /dev/sda

Assuming /dev/sda is the drive you're interested in.

share|improve this answer
    
thanks for the suggestion, but the allocation unit size (cluster size) information is not in the info displayed after executing hdparm -I /dev/sdb (in my case) –  venta7 Dec 18 '12 at 17:06
    
apologies, try : dumpe2fs /dev/sdbX where X is your partition number. If this works and contains the info you need, its the filesystem allocation size you were after and I'll update my original answer accordingly. Use "df" to see which devices are mapped to which filesystems. –  FreudianSlip Dec 18 '12 at 17:13
    
this is what I get when run the command dumpe2fs 1.42 (29-Nov-2011) dumpe2fs: Bad magic number in super-block while trying to open /dev/sdb1 Couldn't find valid filesystem superblock. –  venta7 Dec 18 '12 at 18:00
    
It's probably /dev/sdb5 or 6 (well it is on my machine anyway) –  FreudianSlip Dec 18 '12 at 18:10
    
dumpe2fs /dev/sdbX -> does this command will work for NTFS partitions also? Probably that's why I get this message: Bad magic number in super-block while... –  venta7 Jun 19 '13 at 21:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.