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.

How to move a Share from spanning 2 disks to 1 disk only?

Featured Replies

 

I have a music Share (about 425GB) that is on disk1 (400GB) and disk2 (400GB). I *need/want to move it to a newly installed disk5 (750GB).  I have changed the settings (see below) but so far it's not moving the data.  What an I doing wrong or what do I need to do?

 

*When itunes has to access music on the drive that is not spun up it mutes the audio for some reason so I have to keep both drives spinning also I want to have just 1 HD spinning.

 

EDIT: Just thinking do I go the the actual disc Shares and physically drag/move or copy/delete the files from disc1 and disk2 to disk5?

 

screenshot_01_1.jpg

 

 

EDIT: Just thinking do I go the the actual disc Shares and physically drag/move or copy/delete the files from disc1 and disk2 to disk5?

 

 

Yes, you can do this at the command line or through a program called midnight commander (telnet/command line) or through disk shares in windows (the slowest of the three options i listed)

 

command-line:

 

cp /mnt/disk1/STUFF/* /mnt/disk5/STUFF

 

midnight commander:

 

type mc at the prompt to open the program.  move the files using the "graphical" interface.

 

Cheers,

Matt

  • Author

Thanks, Matt

 

I'm a complete newbie and have not touched the keyboard/Command screen on my unRAID (also I don't have a mouse attached).   So I can just drag the top folder(s) (named Music) in Windows or OS X from disk1 and disk2 to disk5. iTunes (and the unRAID) will keep working (while the files are moving) and not know or care that the physical location of the music is changing.  Also does my setup look correct (syntex) in the picture?

 

 

EDIT: Also at the command prompt looking at your example I would type the following?

 

cp /mnt/disk1/Music/* /mnt/disk5/Music

 

....and then wait for it move the files from disc1 and then type...

 

cp /mnt/disk2/Music/* /mnt/disk5/Music

  • Author

I'm really green. I can't even log into the console. :'(  It says Tower Logon: and then asks for a Password.  I don't know either (have not set a password or assigned a log on name). I went to the FAQ about Console but it doesn't say (or I don't see) how to log on.

Use "root" as the login

There is no password, unless you assigned one, if it prompts you at all, just press "enter"

 

On yes, Linux is case sensitive.  And almost everything is lower case.

 

Joe L

  • Author

Thanks Joe,

 

Failure/(apparent) Successes (though slooooow)

 

Was able to log on and typed cp /mnt/disk1/Music/* /mnt/disk5/Music.  It scrolled through all directories/folders saying cp: omitting directory '/mnt/disk1/Music/Artist Name' and it moved nothing.  Is there something wrong with my syntax?  Back in the day I used MS-DOS so I'm kind of familiar with the command line structure but Linux is much (or all) different.  Also it's been years since I called a folder a directory.  I guess when it's in command line it's a directory and when it's graphic it's a folder. ???

 

I decided to use Windows (my HTPC) since it was closest at the time to Cut/Paste and it is moving the files at a blistering 5Mbps. This is about the same speed (can you call that speed  ;D) I got moving iTunes from my Mac Pro to the unRAID so I guess it doesn't matter. I keep iTunes running 24/7 and it has already played at least 1 song that was moved. So it looks like the RAID is keeping the Share info updated through the move. It will probably be in the morning (for sure after I hit the hay) before it will finish with disk1.  If through I will start moving disk2 in the morning.

The problem is the spaces in the file and folder names.

 

Try this

cp -rv /mnt/disk1/Music /mnt/disk5

 

It will copy the folder and all the files and sub directories.

The -r makes it recursive.

The-v makes it tell you what it is doing as it is doing it (verbose mode)

 

Joe L.

  • Author

The problem is the spaces in the file and folder names.

 

Try this

cp -rv /mnt/disk1/Music /mnt/disk5

 

It will copy the folder and all the files and sub directories.

The -r makes it recursive.

The-v makes it tell you what it is doing as it is doing it (verbose mode)

 

Joe L.

Joe,

 

Here is a list of the 2 spaces I used cp{space}/mnt/disk1/Music/*{space}/mnt/disk5/Music in the syntax.  It looks like you have the same 2 spaces in yours (at least when I edit your post there are the same two spaces).  Am I seeing wrong? I will try your exact (except disc2) syntax (with 2 spaces) in the morning on disk2 and report back.

 

EDIT: One other concern/question: The Directory/Folder named Music is already on disc5 with files. Will the cp command safely merge with the music files that are already moved by Windows?  Don't want to take any chance of an overwrite or delete.

The problem is the spaces in the file and folder names.

 

Try this

cp -rv /mnt/disk1/Music /mnt/disk5

 

It will copy the folder and all the files and sub directories.

The -r makes it recursive.

The-v makes it tell you what it is doing as it is doing it (verbose mode)

 

Joe L.

 

It was not those spaces I was referring to, it was the spaces in the folder names under Music.

 

When you typed the command you did, the shell FIRST expanded the "*" and then executed the "cp" command.

Normally, the syntax is

cp source_file destination

 

When your folder name was expanded, it resulted in a command that looked like this:

cp /mnt/disk1/Music/Artist <space> Name <space> /mnt/disk1/Artist2 <space> Name <space> /mnt/Artist <space> Longer <space> Name <space> /mnt/disk5/Music

 

The problem was any folder on the source disk with any space within their file or folder name... That combined with the fact you did not ask it to copy recursively, so none of the contents of the folders under Music would have been copied.  You needed the -r option for that to work as desired, and you needed to NOT use the "*" (otherwise the shell would have interpreted and expanded the file names before handing the resulting set of arguments to the "cp" command.)

 

To see the command arguments that you attempted to hand to "cp" type

echo /mnt/disk1/Music/* /mnt/disk5/Music

 

Joe L.

  • Author

 

It was not those spaces I was referring to, it was the spaces in the folder names under Music.

 

When you typed the command you did, the shell FIRST expanded the "*" and then executed the "cp" command.

Normally, the syntax is

cp source_file destination

 

When your folder name was expanded, it resulted in a command that looked like this:

cp /mnt/disk1/Music/Artist <space> Name <space> /mnt/disk1/Artist2 <space> Name <space> /mnt/Artist <space> Longer <space> Name <space> /mnt/disk5/Music

 

The problem was any folder on the source disk with any space within their file or folder name... That combined with the fact you did not ask it to copy recursively, so none of the contents of the folders under Music would have been copied.  You needed the -r option for that to work as desired, and you needed to NOT use the "*" (otherwise the shell would have interpreted and expanded the file names before handing the resulting set of arguments to the "cp" command.)

 

To see the command arguments that you attempted to hand to "cp" type

echo /mnt/disk1/Music/* /mnt/disk5/Music

 

Joe L.

Joe I think I see what you are saying is that Linux has trouble seeing file/folder/directories with spaces in their name and the * makes linux look at each one.  All my music folder/files probably have spaces somewhere in the names like Dave Matthews and not Dave_Matthews.  So if I use your syntax with the "cp -r" and not use the "*" it will not see the spaces and move all the folders/files?

 

Also just to be sure it is safe to use cp -r to move from disk2 to disk5 with about 1/2 already moved by Windows?  I just don't want any possibility of it overwriting the Music directory and it's file contents already moved to disk5.

 

Thanks

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.