Re: Compare iso to burned CD\DVD? Fedora 10

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

 



| From: "Frank Murphy (Frankly3D)" <frankly3d@xxxxxxxxx>

| The one thing I can't find is how to compare
| the downloaded iso to the Burned media.
| Google on compare iso to cd(dvd)
| just brings up proprietry efforts.
| 
| Can someone supply the cli for this?
| I think:
| diff /path to iso -o loop  /path to/dvd ?

The simple command would be cmp:
	cmp file.iso /dev/cdrom
Of course you need to adjust those paths according to your system.

One problem with this is that the raw cd read may not yield EOF at the
exact end of what was burned.  So you need to limit the cmp to the
correct length.

What is that length?
	isosize file.iso
will tell you the number of bytes.

Then you can tell cmp:
	cmp --bytes=`isosize file.iso` file.iso /dev/cdrom

There is still a problem with some drives combined with some kernels
generating spurious I/O errors because they read ahead beyond the
burned part of the medium.  I'll leave that issue alone this time.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux