Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Movies got split between multiple drives

Featured Replies

Looks like I did not fully understand the mover function and split level within a share.  As a result many of my DVD rips got spread over serveral drives, crap.  I only discovered this attempting to trouble shoot a freezing problem where movie playback would halt for about 20 seconds then resume like normal.  Well that was when the player was looking for the next VOB file and the drive it was on had spun down.  So now that I have it figured out I need to move a bunch of files around to get ALL the files for each movie in the same folder and on the same drive.

 

I have nearly 1000 movies so finding the movies that got split up like this is no easy task.  So is there a Unix command that I can enter that will scan all my drives and show me duplicate folders....?  That would sure make this faster...

I had that problem and I solve it by only ripping my DVD in  ISO file.

 

You can also make a share (let's name it "DVDrip") that will use only one disk for such purpose.

That way, all your files will be on the same disk.

  • Author

Well I solved the problem by setting the split level for the share called "Movies" to 2.  Now when the mover kicks in and pushes the filles into the array and off the cache drive they end up all in the same folder and on the same drive.

 

Any thoughts on an easy way to find duplicate folder names on 11 drives....?

Any thoughts on an easy way to find duplicate folder names on 11 drives....?

Try this  (cut and paste it to a telnet prompt):

 

find /mnt/disk* -type d -print | sed -e "s/\/mnt\/disk[0-9]\+//" | sort | uniq -c | grep -v "^      1"

 

The "find -type d" will print the names of all the directories on each of the /mnt/disk* disks.

 

The "sed" script will remove the leading /mnt/diskNN from each of the resulting directories, leaving the remainder of the directory path.

 

The "sort" will sort the resulting lines (at that point, if a folder exist on multiple disks, it will be listed twice or more in succession in the list.)

 

The "uniq -c" will print unique lines, but with a "count" of the occurrences in the first 7 character positions in the output.

 

The "grep -v "^      1" will print those lines that do not start with six spaces followed by the digit 1.  Those folders only occur on one disk.  What will print are those that exist on more than one.

 

Simple, yes?

 

Joe L.

  • Author

Holy crap Joe, you're not only one of the best UNIX guys on the planet but you're also so willing to share information and in such detail that it's beyond compare. You rock...

 

 

Very impressive, thanks for breaking out the specific functions of the command as well =)

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.