Calculating block size

When adding additional space to a filesystem, is there a way to easily calculate the block size? It seems confusing to have to convert the number of free partitions into blocks of 512 bytes. Thanks


    Requires Free Membership to View

    When you register, my team of editors will also send you resources covering Linux administration and management; integration and interoperability between Linux, Windows and Unix; securing Linux and mixed-platform environments; and migrating to Linux.

    Margie Semilof, Editorial Director

    By submitting your registration information to SearchEnterpriseLinux.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchEnterpriseLinux.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

Not that I know of, though you may be able to script this one. Typically you'd do it this way, mkfs -G -M /current/mount /dev/rdsk/cXtYdZsA newsize. What has worked for me in the past, has been putting a table together on your own, with various block/mg/byte configs, that you can work with on the fly.


This was first published in December 2002