ISO file size in bytes?

Tony Nelson tonynelson at georgeanelson.com
Thu Oct 25 18:13:46 UTC 2007


At 10:29 PM -0500 10/24/07, Matt Domsch wrote:
>On Wed, Oct 24, 2007 at 09:03:45PM -0600, Jerry Williams wrote:
>> Would it be possible to list the iso file size in bytes in the SHA1SUM file?
>>
>> The reason that I ask it is that I had a DVD with Fedora 7 on it and needed
>> a copy of the iso file.  So I did a dd on the DVD, but the file ended up
>> being bigger than the original iso file.  I had to know the size so I could
>> enter the number of blocks to copy.
>>
>> It is much quicker to do an ls -l than it is to run sha1sum on a file.
>> If the size is right then run the sha1sum.
>>
>> Or is the size listed on some web page some place?
>> Everywhere I have looked I end up with an estimate.
>
>When reading a the file itself with isoinfo, it'll tell you:
>
>$ isoinfo -d -i F-7-x86_64-DVD.iso
>...
>Logical block size is: 2048
>Volume size is: 1683582
>...

I find isosize less AWKward, as it puts out the size directly and will also
do the math:

    $ isosize Fedora-7.92-i386-DVD.iso
    3000535040
    $ isosize -d 2048 Fedora-7.92-i386-DVD.iso
    1465105
-- 
____________________________________________________________________
TonyN.:'                       <mailto:tonynelson at georgeanelson.com>
      '                              <http://www.georgeanelson.com/>




More information about the fedora-devel-list mailing list