Saturday 22 November 2003 4:01 am, John Richard Smith wrote:
Having burnt iso to CD I wish to check the result by remaking an iso file of the CD and running md5sum against on that iso file, but, I seem to have a problem with the mkisofs part of it,
You can check whether the ISO "burnt true" by just running
md5sum -c /mnt/cdrom
or a few other methods I'll list below.
The resulting md5sum is not the same as mandrake provide because Mandrake md5sum an iso, I'm not md5sum ing an iso , but the bootable CD by this method.
To get a comparable situation I too have to create a new iso file of the bootable cd and then md5sum that to compare with mandrakes published iso md5sums.
mount /mnt/cdrom
You use automount don't you? Or supermount? Try without this step, mounting a
CD twice will generally result in an error of some sort.
Yep, but I know I'm not mounting twice. andyhow you cannot.
cd /root/tmp ls mkisofs -r -J -v -o temp.iso /mnt/cdrom/* mkisofs 2.0 (i586-mandrake-linux-gnu) Scanning /mnt/cdrom/doc Scanning /mnt/cdrom/doc/install Scanning /mnt/cdrom/doc/install/af Scanning /mnt/cdrom/doc/install/ar
Methods to check md5sums, stolen from various sources over the last few years:
The "hard way:"
perl -e 'use lib qw(/usr/lib/libDrakX); use detect_devices; use Data::Dumper;
print Dumper([ &detect_devices::cdroms() ]), "\n";'
Charlie you beat me here , I don't understand this one at all.
It's some kind of perl script to enploy DrakX to cough up a something from the cd ?
I'll mess with that tomorrow when I've got more time.
The "easy way" for ISOs on hard drive or burned to CD:
mkcd --checkdisc <ISO mount point> <md5 file>
Ah, well, see, I deleted the iso I downloaded to make way for the next disc.
So I cannot work with the original iso image which incidentally checked out fine with the usual md5sum check.
An even easier way:
mkcd --checkmd5 <iso file>
This works both with an iso file downloaded on your filesystem
(mkcd --checkmd5 /path/to/iso/Mandrake.iso) and on a burnt CD (mkcd --checkmd5
/dev/thedevice).
I think you showed me this before but again it does not make an md5sum of the iso image which is the only md5sum I have , which I downloaded from mandrake.
and the ever popular
md5sum -c /pathtodevice/pathtoimage
again not iso image file left to work with
Actually, just as a matter of interest I have another method. Cribbed from the net. but you do have to have the original iso image file,
ce directory iso image file,
ls -ls < isofilename>.iso to find the filesize, in bytes, of the ISO image
Divide that by 2048 to find the number of sectors:(xxxxxx)
Put the CD into a drive but don't mount it.
dd if=/dev/(x) bs=2048 count=(xxxxxx) | md5sum - where (x) is your device(eg. hdc, or scd0), where (xxxxxx) is the number of sectors
That gives you two identicle numbers
So for the moment I need to remake an iso of the bootable CD, then md5sum it and compare it with mandrakes md5sums, as I do not now have the iso image file, and i cannot spend another week downloading it.
So the main question is how do I create an iso image file in exactly the same fashion as Mandrake did originally ?
John
-- John Richard Smith [EMAIL PROTECTED]
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com