Install bcal by entering the following commands in the terminal:
sudo apt update sudo apt install bcal
Description:
Command-line utility for storage conversions and calculations
Feature . - convert to IEC/SI standard data storage units - show the address in bytes - show address as LBA:OFFSET - convert CHS to LBA and vice versa - show binary, decimal and hex representation of a number - custom sector size, max heads/cylinder and max sectors/track - minimal dependencies
Homepage: https://github.com/jarun/bcal
Version: 1.7-1
Section: universe/misc