* [gentoo-user] Patch file for cdrtools to allow --duplicates-once
@ 2008-09-30 2:32 Andrey Vul
2008-09-30 2:49 ` Dale
2008-09-30 10:25 ` Joerg Schilling
0 siblings, 2 replies; 8+ messages in thread
From: Andrey Vul @ 2008-09-30 2:32 UTC (permalink / raw
To: gentoo-user
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?
--
Andrey Vul
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Patch file for cdrtools to allow --duplicates-once
2008-09-30 2:32 [gentoo-user] Patch file for cdrtools to allow --duplicates-once Andrey Vul
@ 2008-09-30 2:49 ` Dale
2008-09-30 10:25 ` Joerg Schilling
1 sibling, 0 replies; 8+ messages in thread
From: Dale @ 2008-09-30 2:49 UTC (permalink / raw
To: gentoo-user
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
:-) :-)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Patch file for cdrtools to allow --duplicates-once
2008-09-30 2:32 [gentoo-user] Patch file for cdrtools to allow --duplicates-once Andrey Vul
2008-09-30 2:49 ` Dale
@ 2008-09-30 10:25 ` Joerg Schilling
2008-09-30 16:38 ` Andrey Vul
1 sibling, 1 reply; 8+ messages in thread
From: Joerg Schilling @ 2008-09-30 10:25 UTC (permalink / raw
To: gentoo-user
"Andrey Vul" <andrey.vul@gmail.com> 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:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni)
schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Patch file for cdrtools to allow --duplicates-once
2008-09-30 10:25 ` Joerg Schilling
@ 2008-09-30 16:38 ` Andrey Vul
2008-09-30 16:46 ` Joerg Schilling
` (2 more replies)
0 siblings, 3 replies; 8+ messages in thread
From: Andrey Vul @ 2008-09-30 16:38 UTC (permalink / raw
To: gentoo-user
On Tue, Sep 30, 2008 at 6:25 AM, Joerg Schilling
<Joerg.Schilling@fokus.fraunhofer.de> wrote:
> "Andrey Vul" <andrey.vul@gmail.com> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Patch file for cdrtools to allow --duplicates-once
2008-09-30 16:38 ` Andrey Vul
@ 2008-09-30 16:46 ` Joerg Schilling
2008-09-30 16:55 ` Sascha Hlusiak
2008-09-30 19:23 ` Neil Bothwick
2 siblings, 0 replies; 8+ messages in thread
From: Joerg Schilling @ 2008-09-30 16:46 UTC (permalink / raw
To: gentoo-user
"Andrey Vul" <andrey.vul@gmail.com> wrote:
> On Tue, Sep 30, 2008 at 6:25 AM, Joerg Schilling
> <Joerg.Schilling@fokus.fraunhofer.de> wrote:
> > "Andrey Vul" <andrey.vul@gmail.com> 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:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni)
schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Patch file for cdrtools to allow --duplicates-once
2008-09-30 16:38 ` Andrey Vul
2008-09-30 16:46 ` Joerg Schilling
@ 2008-09-30 16:55 ` Sascha Hlusiak
2008-09-30 19:23 ` Neil Bothwick
2 siblings, 0 replies; 8+ messages in thread
From: Sascha Hlusiak @ 2008-09-30 16:55 UTC (permalink / raw
To: gentoo-user; +Cc: Andrey Vul
> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Patch file for cdrtools to allow --duplicates-once
2008-09-30 16:38 ` Andrey Vul
2008-09-30 16:46 ` Joerg Schilling
2008-09-30 16:55 ` Sascha Hlusiak
@ 2008-09-30 19:23 ` Neil Bothwick
2008-09-30 22:11 ` Joerg Schilling
2 siblings, 1 reply; 8+ messages in thread
From: Neil Bothwick @ 2008-09-30 19:23 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 550 bytes --]
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.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [gentoo-user] Patch file for cdrtools to allow --duplicates-once
2008-09-30 19:23 ` Neil Bothwick
@ 2008-09-30 22:11 ` Joerg Schilling
0 siblings, 0 replies; 8+ messages in thread
From: Joerg Schilling @ 2008-09-30 22:11 UTC (permalink / raw
To: gentoo-user
Neil Bothwick <neil@digimed.co.uk> 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:joerg@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
js@cs.tu-berlin.de (uni)
schilling@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-09-30 22:11 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-30 2:32 [gentoo-user] Patch file for cdrtools to allow --duplicates-once Andrey Vul
2008-09-30 2:49 ` Dale
2008-09-30 10:25 ` Joerg Schilling
2008-09-30 16:38 ` Andrey Vul
2008-09-30 16:46 ` Joerg Schilling
2008-09-30 16:55 ` Sascha Hlusiak
2008-09-30 19:23 ` Neil Bothwick
2008-09-30 22:11 ` Joerg Schilling
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox