FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 09-30-2008, 02:32 AM
"Andrey Vul"
 
Default Patch file for cdrtools to allow --duplicates-once

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
 
Old 09-30-2008, 02:49 AM
Dale
 
Default Patch file for cdrtools to allow --duplicates-once

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

:-) :-)
 
Old 09-30-2008, 10:25 AM
 
Default Patch file for cdrtools to allow --duplicates-once

"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
 
Old 09-30-2008, 04:38 PM
"Andrey Vul"
 
Default Patch file for cdrtools to allow --duplicates-once

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
 
Old 09-30-2008, 04:46 PM
 
Default Patch file for cdrtools to allow --duplicates-once

"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
 
Old 09-30-2008, 04:55 PM
Sascha Hlusiak
 
Default Patch file for cdrtools to allow --duplicates-once

> 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
 
Old 09-30-2008, 07:23 PM
Neil Bothwick
 
Default Patch file for cdrtools to allow --duplicates-once

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.
 
Old 09-30-2008, 10:11 PM
 
Default Patch file for cdrtools to allow --duplicates-once

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
 

Thread Tools




All times are GMT. The time now is 09:53 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org