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.

moving files from disk to user share?

Featured Replies

I rebuilt my sever recently and realized that I had the split levels for my movies share setup wrong. is there any reason that I can't use the move command to move files from the physical disk to the user share?

 

something like

 

mv /mnt/disk1/videos /mnt/user/videos

 

I would use the copy command but I don't have enough space to have two copies of my videos folder.

 

It's the same location so you'd be trying to move the data from the disk back to the same place on the disk. Besides, if you move from a disk or user share to another user share that also uses that disk the share settings are ignored and the files stay on that disk.

 

You'd have to likely move to a new user share and also exclude the disk from that user share.

 

Peter

Do you have user shares turned on?  as /mnt/disk1/videos should show up as a user share automatically.  As lionelhutz said, what you listed is technically the same location.

 

if you wanted to move some files from disk1 to disk2 (and have them show in the same user share) then you could do a move from /mnt/disk1/videos/<file names>, to /mnt/disk2/videos

they would all still show up under /mnt/user/videos

 

  • Author

The problem is that I originally set the split up wrong so I have dvd rips spanned across multiple disks. I have since set the split level to the appropriate level and I was hoping that I could copy from disk to user share and step through all the disks to consolidate dvds onto single disks using the correct split level.

You did not give us your hardware setup. It is hard to guess of you have a cache drive or free drives or enough space to resort your data.

 

The way I did this when I had to do the same thing was...

 

I renamed the share from media to media2.

I then bounced the box to make sure everything was good.

I recreated the media share with correct settings. I then copied the data from \towermedia2 to \towermedia. Then delete media2.

If you are totally out of space, you might have to "move".

Walk away and forget about the transfer. It will be slowish.

Be aware there is a slight chance you might get disk full errors if you start trying to copy say a full Simpsons collection to a drive that's low on space if your split is set to keep the show with all seasons intact. You might have to move a few things one bit at a time in cases like that. It really depends on how full your drives are.

.

 

If you pick up a new drive then start migrating data, it might be easier and faster. The files would have more room to "spread out" and sort themselves.

 

While my solution is not the best or fastest. It worked for me.

 

A plugin to resort or condense data would be nice

 

 

 

 

 

Sent from my iPhone using Tapatalk

to \towermedia. Then delete media2.

If you are totally out of space, you might have to "move".

 

What you posted will work fine with a copy but, once again, using a move will not work. You have to copy. There is a quirk in SAMBA that causes a move to keep the files on the same drive regardless of the share settings. So, a move would not fix anything.

  • Author

I have 8 drives installed with them all having a couple hundred gigs free on them. Not enough free space to duplicate my entire collection. but I could prob. Slowly do each drive worth. There's no cache drive installed either.

 

I am debating on whether I should spend money on a hard drive or some DVD drives and mymovies points to just re rip everything. It's about 400 movies.

I don't understand the free space issue. Total free space is not what matters here. Moving files from disk1 to disk2 requires that there is enough space on disk2 to hold the files from disk1. If there is not enough space on disk2 to hold these files then the move is not possible. If there is enough space on disk2 then perform the copy and then delete the originals. The move command still requires the files to be present on the source disk and the destination disk because the originals are not deleted until after they are copied.

I don't understand the free space issue.

I think he said he did not have space to duplicate the entire media collection, but he could move the files one at a time.

I think the commands needed are:

 

cp -R /mnt/disk1/share/* /mnt/disk2/share
rm -r /mnt/disk1/share

 

 

I had no issue.

But I actually copied 1 drive at a time to my cache drive

 

Also I used copy so it hat to make a new file.

 

 

Sent from my iPhone using Tapatalk

Hmmm. How bad is the fragmentation? Did you use high water for the allocation method or most free?

 

Try this.

Go to disk1.

Create a new user share and put disk1 in for the include disk. Name doesn't really matter but I recommend the name of the existing share plus a 1 for disk1, eg Movies1. You must include disk1 only when creating but the rest of the share settings don't really matter.

Now, put 2 Windows Explorer windows on the screen, one for disk1 and one for the old user share. Make sure the disk1 window has the folder structure showing with both the new directory created above and the actual movies visible.

In the old user share window, use <ctrl> and start picking the movies that are stored on disk1.

Now, right click and drag the group of movies to the disk1 window and drop them onto the new folder you created. A menu will appear so pick Move and not copy.

Keep picking movies and moving them until disk1 is done if you didn't get them all the first time.

Now, repeat but this time with an eg Movies2 disk share that only includes disk2.

 

Once done the moving, go to each disk and delete any remaining directories and such from the old share. At the same time, remove the disk number you added to that new directory so it becomes the user share. Finally, go to the flash at config\shares and delete the cfg files for those disk specific shares. Then, stop and start the array or reboot the server and it should all be good.

 

What this should do is just move the movies on disk1 to a new directory. But, since you're going from the old share to this new directory only on disk1, it should also pull any other fragmented directories and files from the other disks and add them to the disk1 content. If you used high water for the allocation method then the fragmentation should be low enough that a couple of hundred gig free is enough to accomodate the extra files.

 

If you run out of space on disk1 then this method won't work either and the simplest is to just stick a cache drive in but disable the mover. Move a group of movies from the user share to the cache so the cache is full. Then, manually run the mover which will put them back in the user share but with the right split level they won't be fragmented any more. I would suggest going in alphabetical order and keeping track of the last one moved in each round so you know where to start next time.

 

Peter

 

  • Author

I had no issue.

But I actually copied 1 drive at a time to my cache drive

 

Also I used copy so it hat to make a new file.

 

 

Sent from my iPhone using Tapatalk

 

I have a new 2 TB drive pre clearing now. If I am reading this correctly I can add it as a cache drive and then copy files from my movies folder on each disk to the cache drive and it will copy them back to the array with the correct split?

 

once done can I just reassign the drive to the array?

 

I had no issue.

But I actually copied 1 drive at a time to my cache drive

 

Also I used copy so it hat to make a new file.

 

 

Sent from my iPhone using Tapatalk

 

I have a new 2 TB drive pre clearing now. If I am reading this correctly I can add it as a cache drive and then copy files from my movies folder on each disk to the cache drive and it will copy them back to the array with the correct split?

 

once done can I just reassign the drive to the array?

If you "just" re-assign it to the array unRAID will zero it for you while it keeps the array off-line for about 6 to 8 hours.

 

If you want to avoid the down-time, after using it to re-allocate your split level files, un-assign it as the cache drive, pre-clear it once more, then assign it as a data disk.

I had no issue.

But I actually copied 1 drive at a time to my cache drive

 

Also I used copy so it hat to make a new file.

 

 

Sent from my iPhone using Tapatalk

 

I have a new 2 TB drive pre clearing now. If I am reading this correctly I can add it as a cache drive and then copy files from my movies folder on each disk to the cache drive and it will copy them back to the array with the correct split?

 

once done can I just reassign the drive to the array?

 

Yes and no. But mostly yes.

 

Lionel's alphabetical method might be better  If you are really low on free drive space. Do a-d or something first. Then again e-i etc.

 

It should correct your errors for you if there is room and the split is correct.

 

The more you move at a time, the less physical drive fragmentation you should see. Just be prepared that this might take a long time.

 

I would personally use copy to the cache drive with beyond compare or terra copy. Then delete the source if it verifies ok. Takes longer, but your data is secure.

 

 

Sent from my iPhone using Tapatalk

I had no issue.

But I actually copied 1 drive at a time to my cache drive

 

Also I used copy so it hat to make a new file.

 

 

Sent from my iPhone using Tapatalk

 

I have a new 2 TB drive pre clearing now. If I am reading this correctly I can add it as a cache drive and then copy files from my movies folder on each disk to the cache drive and it will copy them back to the array with the correct split?

 

once done can I just reassign the drive to the array?

 

 

No. The files in each directory are fragmented over more than one disk. If you move from each disk, you'll be trying to put the files back into the other disks where there might not be enough space. For example, the main movie files are all on disk1 but the metadata is on disk2. If you move the movie off disk1 then it will have to go to disk2 which might not have enough space.

 

So, you should move from the user share to the cache disk. That way, you put all the files back together on the cache and then they are free to go to the drive with enough space.

 

Peter

 

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.