Removing duplicate files (e.g Music_track.mp3, Music_track 1.mp3)

Status
Not open for further replies.

ddogg777

Cadet
Joined
Sep 12, 2011
Messages
9
For some reason or another I have duplicate mp3 files of my entire music collection on my Freenas system. What would be the easiest way to get rid of all the music_track x.mp3 copies? Should I try to mount it as a scsi extent and use any of the freeware programs to do it?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Did you copy the duplicates on accident or something? If you did that's not a FreeNAS problem and you'd likely be better off asking that question in IRC(if you think the FreeNAS guys are smart and know the answer) or in a more general forum. If these duplicate files have must appeared out of thin air, then you probably have a serious problem with your FreeNAS implementation.
 

Mixel

Explorer
Joined
Jan 11, 2014
Messages
50
I am wondering exactly the same thing... Did you get this resolved?
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
I installed "duff" in a jail. It's great.
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
There's also rdfind and rmlint, among others. One of those I (rmlint?) couldn't get to compile though.

I like duff because all it does is find the files. You can the pipe the output to delete duplicates:
Code:
duff -re0 <path ...> | xargs -0 rm -v


Before I went through trying a bunch of these I was using my own perl script. And then it started deleting files that weren't dupes. I trust other's work more than my own. Plus, the performance went way up.
 

emk2203

Guru
Joined
Nov 11, 2012
Messages
573
rmlint (which I use on Linux often) is now officially in the ports of FreeBSD. According to the author's comparisons, it's orders of magnitude faster than fdupes, for example. What were the problems in compiling? If it's in the ports tree now, it should be simple, no?
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
This thread is 2 years old. Sorry but i'm gonna lock this thread.
 

fracai

Guru
Joined
Aug 22, 2012
Messages
1,212
I don't recall the specific errors that I saw with rmlint, but they should be resolved now that it's in the port tree. It's also nice in that rmlint supports colorized output, but I still prefer the simplicity and piping of duff.
 
Status
Not open for further replies.
Top