1

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.

1 Answer 1

1

You could try :

hdparm -I /dev/sda

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

5
  • 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, 2012 at 17:06
  • 1
    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. Dec 18, 2012 at 17:13
  • 1
    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, 2012 at 18:00
  • It's probably /dev/sdb5 or 6 (well it is on my machine anyway) Dec 18, 2012 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, 2013 at 21:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .