Just found the same issue, here's some adjusted instructions:

iso_file=<path_to_iso>
persist_size_mb=5000
read iso_size_mb _ < <(du -bcm $iso_file |tail -1); echo $iso_size_mb
parted /dev/sdb...