Re: [gentoo-user] Patch file for cdrtools to allow --duplicates-once

2008-09-30 Thread Joerg Schilling
Andrey Vul [EMAIL PROTECTED] wrote:

 Is there a patch file to patch mkisofs to use the --duplicates-once
 option during generation of iso9960/UDF images?

There is no such option.

Could you explain your desire?

Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
   [EMAIL PROTECTED](uni)  
   [EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Patch file for cdrtools to allow --duplicates-once

2008-09-30 Thread Andrey Vul
On Tue, Sep 30, 2008 at 6:25 AM, Joerg Schilling
[EMAIL PROTECTED] wrote:
 Andrey Vul [EMAIL PROTECTED] wrote:

 Is there a patch file to patch mkisofs to use the --duplicates-once
 option during generation of iso9960/UDF images?

 There is no such option.

 Could you explain your desire?

There is an unofficial version of mkisofs that implements
--duplicates-once. The website of the person who patched it (Alex
Kopylov) is permanently down. That version is commonly used in order
to fit 5 flavors of Window$ XP on one CD by hard-linking multiple
directory entries to the same sector(s).
Anyways, I am building a hybrid CD and there is a chance that there
are duplicate files.
However, I don't know how to use the output of find cd-root -type f
-or -type l | xargs sha1sum -b to find duplicate files. Maybe someone
can donate a perl/python script to find duplicate files and list them?

-- 
Andrey Vul



Re: [gentoo-user] Patch file for cdrtools to allow --duplicates-once

2008-09-30 Thread Joerg Schilling
Andrey Vul [EMAIL PROTECTED] wrote:

 On Tue, Sep 30, 2008 at 6:25 AM, Joerg Schilling
 [EMAIL PROTECTED] wrote:
  Andrey Vul [EMAIL PROTECTED] wrote:
 
  Is there a patch file to patch mkisofs to use the --duplicates-once
  option during generation of iso9960/UDF images?
 
  There is no such option.
 
  Could you explain your desire?
 
 There is an unofficial version of mkisofs that implements
 --duplicates-once. The website of the person who patched it (Alex
 Kopylov) is permanently down. That version is commonly used in order
 to fit 5 flavors of Window$ XP on one CD by hard-linking multiple
 directory entries to the same sector(s).
 Anyways, I am building a hybrid CD and there is a chance that there
 are duplicate files.

There is noneed for this option as the described behavior is the default 
behavior of mkisofs.



Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
   [EMAIL PROTECTED](uni)  
   [EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Patch file for cdrtools to allow --duplicates-once

2008-09-30 Thread Sascha Hlusiak
 However, I don't know how to use the output of find cd-root -type f
 -or -type l | xargs sha1sum -b to find duplicate files. Maybe someone
 can donate a perl/python script to find duplicate files and list them?
find . -type f -print0 | xargs -0 -L 1 md5sum | sort | uniq -w 20 -D

- Sascha





Re: [gentoo-user] Patch file for cdrtools to allow --duplicates-once

2008-09-30 Thread Neil Bothwick
On Tue, 30 Sep 2008 12:38:16 -0400, Andrey Vul wrote:

 However, I don't know how to use the output of find cd-root -type f
 -or -type l | xargs sha1sum -b to find duplicate files. Maybe someone
 can donate a perl/python script to find duplicate files and list them?

emerge -av app-misc/fdupes
fdupes -r cd-root


-- 
Neil Bothwick

WinErr 042: Virus error - A virus has been activated in a dos-box. The
virus, however, requires Windows. All tasks will automatically be closed
and the virus will be activated again.


signature.asc
Description: PGP signature


Re: [gentoo-user] Patch file for cdrtools to allow --duplicates-once

2008-09-30 Thread Joerg Schilling
Neil Bothwick [EMAIL PROTECTED] wrote:

 On Tue, 30 Sep 2008 12:38:16 -0400, Andrey Vul wrote:

  However, I don't know how to use the output of find cd-root -type f
  -or -type l | xargs sha1sum -b to find duplicate files. Maybe someone
  can donate a perl/python script to find duplicate files and list them?

 emerge -av app-misc/fdupes
 fdupes -r cd-root

This may help in case there are files that have the same content but are not
hardlinked together.

Mkisofs checks for pysically and virtually (e.g. via -graft-points) hard linked 
files. Files with the same inode number appear only once in the .iso image
created by mkisofs.

The patch with -duplicates-once is from before December 2001 in a time where 
POSIX did not allow 64 bit inode numbers. At that time, Cygwin did not work 
properly as it hashed 64 bit NTFS inode numbers to 32 bit numbers. Since a long 
time, Cygwin just uses 64 bit inode numbers for NTFS and mkisofs has no problem
to detect hard lionked files.

Jörg

-- 
 EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
   [EMAIL PROTECTED](uni)  
   [EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Patch file for cdrtools to allow --duplicates-once

2008-09-29 Thread Dale
Andrey Vul wrote:
 Is there a patch file to patch mkisofs to use the --duplicates-once
 option during generation of iso9960/UDF images?
 The problem is that the one that exists right now, the patch (against
 the official sources) cannot be found because the original site
 (bootcd.ru) is permanently down.
 Or do I need to make a table of SHA-1s to weed out the identical files?
   

I found this link:

http://www.911cd.net/forums/lofiversion/index.php/t15282-350.html

I'm not sure it will help but may be worth a look. 

Dale

:-)  :-)