we can print all disks by the following ( on our RHEL machine )
fdisk -lu | grep "Disk /dev"
Disk /dev/sda: 247.0 GB, 246960619520 bytes, 482344960 sectors
Disk /dev/sdb: 4294 MB, 4294967296 bytes, 8388608 sectors
Disk /dev/sdc: 4294 MB, 4294967296 bytes, 8388608 sectors
Disk /dev/sdd: 4294 MB, 4294967296 bytes, 8388608 sectors
Disk /dev/sde: 4294 MB, 4294967296 bytes, 8388608 sectors
as we can see above disks are in GB and not in GIB
note:
GB is the traditional, metric style of measurement with 1 GB equaling 1,000³ bytes.
GiB is the binary method; which is the way computers measure data at 1024³ bytes.
any option by using fdisk or sfdisk or maybe other manipulation in order to print the disks size with GIB ?