how to make parted to print size in MiB size instead of MB
Is there any way to ask
parted
to print partition sizes inMiB
unit instead ofMB
unit?
Yes:
parted <<<'unit MiB print all'
or
printf %s\\n 'unit MiB print list' | parted
or
parted <<\IN
unit MiB print list
IN
Same in interactive mode: launch parted
and then enter unit MiB print list