Re: : Again on: How to check *CDROM* correctness?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, 8 Apr 2003 20:44:48 +0200, M. Fioretti wrote:

> > > > A good way to find the size of an ISO 9660 volume:
> > > >     isosize -x shrike-i386-disc1.iso
> > > 
> > > Thanks for providing the iso sizes, and for this useful general info.
> > > However, I started the whole thread exactly because I have no
> > > bandwidth to download the images. I was trying to find a way to look
> > > at the byte sizes given by an ftp client *without* downloading
> > > anything, and to go from them to the numbers that you provided. Is
> > > that possible?
> > > 
> > > 	thanks again for your time,
> > 
> > Have you not tried "ls -l" in an FTP client?
> > 
> > Not rocket science here.
> > 
> Of course I did. The question came from the fact that those number,
> didided by 2048, did not gave integer result, and the closest
> approximations didn't lead me to a matching checksum. The reason is
> probably that one should subtract some padding as explained recently
> on this list, but how should one know? That's why I asked.

Not true. "File size = ISO image size".

The MD5 checksum is created over the full length of the file. So, if
you calculate the checksum for the burnt disc, you must include
exactly as many bytes. Else the check doesn't make any sense. If you
don't know the original ISO image file size, you can look it up on
an FTP server. 

How you get "md5sum" to include the correct number of bytes is up to
you. Running md5sum on a file would process the file up to the end.
Whether you use "dd" to divide the byte count into a block size of
2048 or 1024 bytes (or something else that works ;) is up to you.

Padding is not included in the ISO image file and is added at the
end of an ISO image and must not be included in the checksum. It is
only used to avoid run-out sectors causing I/O errors at the end of
a burnt disc in TAO mode.

- -- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+k91N0iMVcrivHFQRAsw4AJ0c3aRHdxv9SKj/hYaZd9HasduZcgCbB6Vn
HRgYDAzgozN0xSr2DFaN9rs=
=3zRF
-----END PGP SIGNATURE-----





[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux