isosize

displays the size of ISO 9660 filesystem images by reading the volume descriptor

TLDR

Display the size of an ISO file
$ isosize [path/to/file.iso]
Display block count and block size
$ isosize -x [path/to/file.iso]
Display size divided by a specific number
$ isosize -d [number] [path/to/file.iso]

SYNOPSIS

isosize [options] file

DESCRIPTION

isosize displays the size of ISO 9660 filesystem images by reading the volume descriptor. Unlike tools that report file size, isosize reports the actual filesystem size stored in the ISO header.This can be useful when the ISO image file has been padded or when determining the exact size needed to write the image to media.

PARAMETERS

-x, --sectors

Show block count and block size instead of total bytes
-d, --divisor NUM
Divide size by specified number (incompatible with -x)

INSTALL

sudo apt install util-linux
sudo dnf install util-linux
sudo pacman -S util-linux
sudo apk add util-linux-misc
sudo zypper install util-linux
brew install util-linux
nix profile install nixpkgs#util-linux

CAVEATS

Only works with valid ISO 9660 images. Reports the size recorded in the volume descriptor, which may differ from file size if the image was truncated or padded.

HISTORY

isosize is part of the util-linux package, providing a simple utility for querying ISO image sizes. It reads the ISO 9660 Primary Volume Descriptor to determine size.

SEE ALSO

isoinfo(1), genisoimage(1), du(1)