Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Rod on March 05, 2001, 05:29:44 AM

Title: iso image creation
Post by: Rod on March 05, 2001, 05:29:44 AM
I currently have a CD copy of e-smith-4.1 I am trying to 'rsync' update this image to e-smith-4.1.1
Problem is my CD writer is on a win NT machine and the iso image I try and create as the 'seed' image for rsync is of a vastly different size than the original image on the various ftp sites.
Trying to rsync the image indicates that it is going to download the entire new image ( based on % complete and on the --dry-run results ).
Previously I have been able to create CD's from a downloaded iso image using my existing cd writer combo on the NT box. It just doesn't seem to work in reverse.
Questions.
1/ Is it possible to create an iso image from a CD ( read only drive ) on a Linux box?
2/ If so, any pointers to possible s/w methods etc.
or
3/ Do I just reinstall my cd r/w drive into my Linux box?
Thanks
Rod
Title: Re: iso image creation
Post by: Paul Miller on April 16, 2001, 09:38:45 AM
Hi Rod,

Rod wrote:

> 1/ Is it possible to create an iso image from a CD ( read
> only drive ) on a Linux box?

Yes, I have not tried it but there may be a way. Use mkisofs.
mkisofs is not a part of the e-smith distribution but a RedHat 5.2 compatible binary is available. Install mkisofs as follows.

> 2/ If so, any pointers to possible s/w methods etc.

#rpm -Uvh ftp://ftp.rpmfind.net/linux/redhat/5.2/en/os/i386
/RedHat/RPMS//mkisofs-1.12b4-1.i386.rpm

See a technique to 'make' an iso filesystem at

http://plug.skylab.org/200007/msg00085.html  
 
Rather than copy the iso to the NT, you might access the iso file across the network using Samba.
---
Once you have the CD burned you can run md5sum against the CD device directly.  The reason I suggest this is that I have had trouble with my burner and had to find out how to test the end result.  This will give you an identical checksum compared to the .iso md5sum e-smith publishes.

For example:
# md5sum /dev/scd0 # will give a checksum for the CD currently in the first scsi CD-ROM (it doesn't need to be mounted for this to work)

If the checksum failed you could mount and compare the two iso contents. However, I don't know what added value it would be:-)

#: mkdir /mnt/loop0
#: mount /home/e-smith/files/primary/files/e-smith-4.1.1.iso /mnt/loop0 -t iso9660 -o loop=/dev/loop0
#: mount /mnt/cdrom

Here would be an example of a simple content check.

# ls -laR /mnt/loop0 > file1
# ls -laR /mnt/cdrom > file2
# cmp -l file1 file2 > differences

This will print the byte number (decimal) and the differing byte values (octal) for each difference.

Again, I have tested only parts of this sequence.  Let me know if it all works!

Good Luck,

Paul Miller
pmiller@innercite.com