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.

Telnet Commands: Moving data from NAS to unRAID

Featured Replies

Greetings,

 

I have finally set up my 2tb unRAID system and need a little help.  I have a NAS device that has about 1tb of movies and i would like to copy them to the unRAID.  I have set up a user share called \\tower\movies---my NAS has a shared folder also called movies - \\server\movies.  So, what is the best way to move these files over.  Can someone give me the step by step instructions for mounting the NAS folder and then copying from NAS to the user share using telnet/putty?  It would be greatly appreciated and i am sure good for others to know as well. 

 

Thanks in advance.

 

 

Ruby

  • Author

Thanks a bunch!!!

  • Author

is there a way to do this without creating hidden or system file attributes when doing the copy in telnet? 

 

When trying to copy files in explorer, i lose the network after about 20GB. 

if you're using windows to copy, try using robocopy instead of windows explorer

is there a way to do this without creating hidden or system file attributes when doing the copy in telnet? 

 

When trying to copy files in explorer, i lose the network after about 20GB. 

I would think you can simply set the "umask" to 000 and then do the copy using the "cp" command in a telnet window.

 

The reason the extra bits are set when using telnet to do a copy is that the "umask" value is currently set to 0022. That causes two of the bits on the newly copied files to be set.  Those are the bits being used by samba to mark it as hidden and a system file.

 

Log in via telnet

Type

umask 000

 

Then type

cp /mnt/disk1/file-you-want-to-copy /mnt/disk4/    to copy a single file fromo disk1 to disk4

 

or to recursively copy an entire drive... from disk1 to disk4

 

cp -R /mnt/disk1/*  /mnt/disk4

 

 

The new umask value will only last until you log off in that telnet window, but you can re-type it if you log in again to copy more files.

 

Joe L.

 

Joe L.

  • Author

is there a way to do this without creating hidden or system file attributes when doing the copy in telnet? 

 

When trying to copy files in explorer, i lose the network after about 20GB. 

I would think you can simply set the "umask" to 000 and then do the copy using the "cp" command in a telnet window.

 

The reason the extra bits are set when using telnet to do a copy is that the "umask" value is currently set to 0022. That causes two of the bits on the newly copied files to be set.  Those are the bits being used by samba to mark it as hidden and a system file.

 

Log in via telnet

Type

umask 000

 

Then type

cp /mnt/disk1/file-you-want-to-copy /mnt/disk4/    to copy a single file fromo disk1 to disk4

 

or to recursively copy an entire drive... from disk1 to disk4

 

cp -R /mnt/disk1/*  /mnt/disk4

 

 

The new umask value will only last until you log off in that telnet window, but you can re-type it if you log in again to copy more files.

 

Joe L.

 

Joe L.

 

 

 

Joe, would the same hold true then for moving from NAS to unraid?  That is, would i still start with unmask 000?  Then do:

 

smbmount //workstation/share /

 

cp -r /share/* /mnt/disk1

is there a way to do this without creating hidden or system file attributes when doing the copy in telnet? 

 

When trying to copy files in explorer, i lose the network after about 20GB. 

I would think you can simply set the "umask" to 000 and then do the copy using the "cp" command in a telnet window.

 

The reason the extra bits are set when using telnet to do a copy is that the "umask" value is currently set to 0022. That causes two of the bits on the newly copied files to be set.  Those are the bits being used by samba to mark it as hidden and a system file.

 

Log in via telnet

Type

umask 000

 

Then type

cp /mnt/disk1/file-you-want-to-copy /mnt/disk4/    to copy a single file fromo disk1 to disk4

 

or to recursively copy an entire drive... from disk1 to disk4

 

cp -R /mnt/disk1/*  /mnt/disk4

 

 

The new umask value will only last until you log off in that telnet window, but you can re-type it if you log in again to copy more files.

 

Joe L.

 

Joe L.

 

 

 

Joe, would the same hold true then for moving from NAS to unraid?  That is, would i still start with unmask 000?  Then do:

 

smbmount //workstation/share /

 

cp -r /share/* /mnt/disk1

Try it with one file to test, but yes, it should work the same way.

 

In other words,

cp /share/one_file_name /mnt/disk1

 

Then, look at disk1 from windows explorer and the file should be visible.

 

Then, if it works as expected, use the "-r" option to the copy command as you described in your example.

 

Joe L.

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.