Re: compare two directory trees



On 2010-12-14, Yuwen Dai <yuwend@xxxxxxxxx> wrote:
--20cf305644eb154f0904975a6ec6
Content-Type: text/plain; charset=ISO-8859-1

Dear all,

I burn DVD/CDs from ISO files. In order to verify the burning is correct,
I wrote a script working like this:
1. mount the DVD and ISO files onto two mount points
2. calculate every file's md5sum in each directory, and save and sort them
in two separate files
3. compare the above two files.

The above method does work, but too time consuming because of the md5sum
calculating. Do you have any suggestion to improve the efficiency?

Some installation CDs have a menu option which offers to verify the CD
prior to installation. It might be worth investigating what technique
they use and adapting it for your purpose.

Liam

--
Liam O'Toole
Cork, Ireland



--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
Archive: http://lists.debian.org/slrnigerea.qfe.liam.p.otoole@xxxxxxxxxxxxxx