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.

Can't seem to mount a network share

Featured Replies

I've wanting to copy files to one of my unRAID drives from a network share according to the instructions in the wiki (http://lime-technology.com/wiki/index.php?title=Transferring_Files_from_a_Network_Share_to_unRAID), but I don't want to create a new directory on the server like it shows.  I just want to copy the files to the root of disk2 on my unraid Tower.  My network share is on the same workgroup (MSHOME) as my unRAID machine, on a computer named "Movie-server", on it's D drive, and in a folder called "Movies".  What do I need to enter into a telnet session?

  • Author

I think I was misunderstanding how the lines in the instructions worked, but I think I get it now.  Anyhow, I am still having a problem. 

 

root@Tower1:~# smbmount //Movie-server/D/Movies /work

Password:

Anonymous login successful

1749: tree connect failed: ERRDOS - ERRnosuchshare

SMB connection failed

 

I get that it's telling me that it can't find my share, but I don't get why.  There are no typos in the share path and all my other systems can see the share fine (along with playing movies off it).  What could be the problem?

perhaps your actual share on your windows box is //Movie-server/D    or  //Movie-server/Movies

 

as far as I know, my  shared drives are visible on the lan as //windows_server/shared_folder  and this is the shared path regardless of  the true full path to shared_folder on the windows_server.  I've never seen a //server/drive_letter/share on my lan.

 

Example... on this PC I have a sharerd folder 'downloads'  it is actually on c:/downloads

 

I use the mount command to mount remote shares, it invokes the smbmount command for me

 

mount -t smbfs -o username=Administrator //dellcpx/downloads work

 

It then prompted me for the password as I connected as the administrator.  if you allow guest logins to your existing server you might be able to use

-o guest instead of  -o 'username=xxxxx'

 

 

Joe L.

  • Author

I've tried every variation:

 

//Movie-server

//Movie-server/D

//Movie-server/Movies

 

None of them work.  I would thin the drive letter would have to be there.  My server has 10 drives in it (lettered D-M) and each has movies stored in a folder named Movies.  Without designating the drive letter, how would it know which drive to mount.

 

One other thing... I've been assuming this would work through telnet.  Is thatr true or do you have to do it from the actual machine?

  • Author

I also tried the mount command with the different variations and it returns the same error.

do you know how your other windows machines connect to the shares ?, anon, user/password or login using hostname.

It seems as the windows"server" acknowledges the login as anonymous, but not the share that the mount commands ask for.

Could it be that the windowsserver allows a connection to a "my shared documents" directory, but not the directories that you try to mount.

To see the names on the shares, go to Network Places and browse the network, rightclick on a share and see the advertised URL.

 

/Rene

From your comments about drive letters, I'm wondering if you have actually created any network shares.  Drive letters are local to a computer, not visible on the network.  I noticed that the Wiki instructions you referred to don't actually mention having to create the network shares first.

 

//Movie-server/D/Movies will work as the network path if: 'Movie-server' is the ComputerName visible on the network, 'D' is the share name you create and assign to 'D:\', and 'Movies' is your folder to share, at 'D:\Movies'.  You could also use '//Movie-server/MoviesD' if you map a share named 'MoviesD' and assign it to 'D:\Movies', and then you could repeat this for each of your drives, MoviesF==F:\Movies, etc.

 

Once you've created the share(s), then check them from another Windows machine as Parsec suggested, then follow Joe's instructions for the smbmount and copy.

 

  • Author

I found my problem was that I was sharing at the drive level and not the actual folder.  I shared the actual folder and now it seems to mount, but now the copy command doesn't seem to work. I typed:

 

root@Tower1:~# cp /work/.. /mnt/disk2/...

 

Which returns"

 

cp: omitting directory `/work/..'

 

The trailing periods in the command seemed odd to me so I also tried:

 

root@Tower1:~# cp /work/* /mnt/disk2/

 

Which returned:

 

cp: omitting directory `/work/Armageddon'
cp: omitting directory `/work/Behind Enemy Lines'
cp: omitting directory `/work/Black Hawk Down'
cp: omitting directory `/work/Con Air'
cp: omitting directory `/work/Crimson Tide'
cp: omitting directory `/work/Deep Impact'
cp: omitting directory `/work/Disclosure'
cp: omitting directory `/work/Don\'t Be a Menace to South Central'
cp: omitting directory `/work/End of Days'
cp: omitting directory `/work/Fallen'
cp: omitting directory `/work/Finding Nemo'
cp: omitting directory `/work/Finding Neverland'
cp: omitting directory `/work/Gladiator'
cp: omitting directory `/work/Groundhog Day'
cp: omitting directory `/work/Hamburger Hill'
cp: omitting directory `/work/Hannibal'
cp: omitting directory `/work/Hoosiers'
cp: omitting directory `/work/Hostage'
cp: omitting directory `/work/Independence Day'
cp: omitting directory `/work/It\'s a Wonderful Life'
cp: omitting directory `/work/Just Cause'
cp: omitting directory `/work/K-19 The Widowmaker'
cp: omitting directory `/work/Last Action Hero'
cp: omitting directory `/work/Little Nicky'
cp: omitting directory `/work/Men in Black II'
cp: omitting directory `/work/Men of Honor'
cp: omitting directory `/work/Miss Congeniality'
cp: omitting directory `/work/Mission to Mars'
cp: omitting directory `/work/Monsters, Inc'
cp: omitting directory `/work/Narrow Margin'
cp: omitting directory `/work/Next of Kin'
cp: omitting directory `/work/Pearl Harbor'
cp: omitting directory `/work/Ransom'
cp: omitting directory `/work/The Exorcism of Emily Rose'
cp: omitting directory `/work/The Fugitive'
cp: omitting directory `/work/The Great Santini'
cp: omitting directory `/work/The Hurricane'

 

What am i doing wrong now?

I found my problem was that I was sharing at the drive level and not the actual folder.  I shared the actual folder and now it seems to mount, but now the copy command doesn't seem to work. I typed:

 

root@Tower1:~# cp /work/.. /mnt/disk2/...

 

Which returns"

 

cp: omitting directory `/work/..'

 

The trailing periods in the command seemed odd to me so I also tried:

 

root@Tower1:~# cp /work/* /mnt/disk2/

 

Which returned:

 

cp: omitting directory `/work/Armageddon'
cp: omitting directory `/work/Behind Enemy Lines'
cp: omitting directory `/work/Black Hawk Down'
cp: omitting directory `/work/Con Air'
cp: omitting directory `/work/Crimson Tide'
cp: omitting directory `/work/Deep Impact'
cp: omitting directory `/work/Disclosure'
cp: omitting directory `/work/Don\'t Be a Menace to South Central'
cp: omitting directory `/work/End of Days'
cp: omitting directory `/work/Fallen'
cp: omitting directory `/work/Finding Nemo'
cp: omitting directory `/work/Finding Neverland'
cp: omitting directory `/work/Gladiator'
cp: omitting directory `/work/Groundhog Day'
cp: omitting directory `/work/Hamburger Hill'
cp: omitting directory `/work/Hannibal'
cp: omitting directory `/work/Hoosiers'
cp: omitting directory `/work/Hostage'
cp: omitting directory `/work/Independence Day'
cp: omitting directory `/work/It\'s a Wonderful Life'
cp: omitting directory `/work/Just Cause'
cp: omitting directory `/work/K-19 The Widowmaker'
cp: omitting directory `/work/Last Action Hero'
cp: omitting directory `/work/Little Nicky'
cp: omitting directory `/work/Men in Black II'
cp: omitting directory `/work/Men of Honor'
cp: omitting directory `/work/Miss Congeniality'
cp: omitting directory `/work/Mission to Mars'
cp: omitting directory `/work/Monsters, Inc'
cp: omitting directory `/work/Narrow Margin'
cp: omitting directory `/work/Next of Kin'
cp: omitting directory `/work/Pearl Harbor'
cp: omitting directory `/work/Ransom'
cp: omitting directory `/work/The Exorcism of Emily Rose'
cp: omitting directory `/work/The Fugitive'
cp: omitting directory `/work/The Great Santini'
cp: omitting directory `/work/The Hurricane'

 

What am i doing wrong now?

 

try

cd /work

cp -r * /mnt/disk2

 

First comand will change directory the the directory where your movie folders will be visible.

Second will copy all the folders and files from there to /mnt/disk2

 

You want the -r option to the cp command because you want to copy the directories that hold your movies and the files in those  directories.

 

Joe L.

  • Author

Thanks Joe that did the trick.  Any idea why the

cp /work/.. /mnt/disk2/...

command didn't work?

 

because /work/.. means the same as the current directory and is not a valid path.

 

if you use smbmount, you might need to use -o lfs if you are copying files > 2gb (lfs = large file system)

 

If you have any funny file names (accents or anything like that), you also need to be careful, since I had issues with those files failing.

 

There is also a -g option on cp (I think, do a cp --help) that will display a little deal when a long transfer is occurring so you can monitor it to see the speed and such.

  • Author

I wasn't in the work directory when I ran the first command.  Notice my paste:

 

root@Tower1:~# cp /work/.. /mnt/disk2/...

 

Joe had me cd into the work directory and then copy the files over.  I was wondering why Tomm's command didn't work for me.

 

 

Anyways, thanks for the tips on the switches.  Espeically the -g option.  That will come in really handy.  It's weird working from the command line in unRAID since it rarely gives any response info to entered commands.  Eventually I learned that if it takes you back to a prompt then it must have performed the command.

".." means the "directory above". So when you put /work/.. it cancels out /work and it means the root directory (/). You can also do /work/out/../.. to mean the root directory.

 

Other than the error of using "..", you were also missing the -r flag (recursive).

  • Author

I have a potentially big problem.  I copied over close to 400GB of movies via Joe's method and it appeared as though everything was fine. I have my movies saved like:

 

Gladiator\VIDEO_TS\files

Twister\VIDEO_TS\files

etc.

 

So my root directory contains nothing but folders with movie names.  I checked that all the folders had copied over, but never actually checked the contents of all the folders.  Tonight, I was browsing around disk2 (the one I copied all the movies to) and noticed that all the VIDEO_TS folders appear empty. Obviously, the VIDEO_TS folder is supposed to contain all of the actual movie files.  The weird part is that if I right click on any of the VIDEO_TS folders and select properties (while viewing the share on my XP machine), it says it contains files and consumes the correct amount of space.  Also, I use an Xbox running XBMC to play my movies and it seems to play all of these supposedly empty movie folders. 

 

It appears as though all my files are actually there, but I need to be able to view them.  What is the problem and how can I fix it?

 

  • Author

I forgot to mention that nothing is set to "hidden" and I have enabled "show hidden folders and files" so that's not it.

The ".." in the 'cp' command on the wiki page was just intended to mean "substitute what you want to copy here" :)  I fixed it so that the command is correct for copying the entire contents of a network share to an unRAID disk share.

 

Regarding the invisibility of your files - I tried to recreate that, but couldn't.  Are you using release 4.0?

 

Obviously the files are there, probably has to do with handling of the "hidden" attribute (even though you have it set to "show hidden files").  Please telnet into your server and execute a command sequence like this:

 

cd  /mnt/disk2/Armageddon
v  -R

This will produce a single-column listing of all the files and folders under 'Armageddon' along with permissions, etc.  Please select/copy/paste and post back here.

 

BTW, you probably should consider creating a top-level 'Movies' directory on disk2 and moving all your movie directories under it, i.e.,

instead of:

disk2/Armageddon

disk2/Behind Enemy Lines

...

do this:

disk2/Movies/Armageddon

disk2/Movies/Behind Enemy Lines

...

 

This is easily done in Windows explorer by simply creating the Movies folder and dragging all your other folders into it (and will be necessary if ever you want to use the 'user shares' feature).

  • Author

The ".." in the 'cp' command on the wiki page was just intended to mean "substitute what you want to copy here" :)  I fixed it so that the command is correct for copying the entire contents of a network share to an unRAID disk share.

 

Sorry for being so dense.  I should've picked up on that but the combination of being new to Linux and the one location having two periods and the other having three kind of threw me off.  The periods did seem odd to me so I did try it without them, but I put an asterisk after /work/.  Was the asterisk the reason why even that command failed?

 

Regarding the invisibility of your files - I tried to recreate that, but couldn't.  Are you using release 4.0?

 

Yes, I am running 4.0 final.

 

Obviously the files are there, probably has to do with handling of the "hidden" attribute (even though you have it set to "show hidden files").  Please telnet into your server and execute a command sequence like this:

 

cd  /mnt/disk2/Armageddon
v  -R

This will produce a single-column listing of all the files and folders under 'Armageddon' along with permissions, etc.  Please select/copy/paste and post back here.

 

I'll try that when I get home.

 

BTW, you probably should consider creating a top-level 'Movies' directory on disk2 and moving all your movie directories under it, i.e.,

instead of:

disk2/Armageddon

disk2/Behind Enemy Lines

...

do this:

disk2/Movies/Armageddon

disk2/Movies/Behind Enemy Lines

...

 

This is easily done in Windows explorer by simply creating the Movies folder and dragging all your other folders into it (and will be necessary if ever you want to use the 'user shares' feature).

 

Thanks for the tip.  I'l try that.

  • Author

Here are the results:

 

Tower1 login: root
Linux 2.6.20.
root@Tower1:~# cd /mnt/disk2/Armageddon/VIDEO_TS
root@Tower1:/mnt/disk2/Armageddon/VIDEO_TS# v -R
.:
total 6497263
-rwx------ 1 root root       6144 Feb 14  2005 VIDEO_TS.BUP*
-rwx------ 1 root root       6144 Feb 14  2005 VIDEO_TS.IFO*
-rwx------ 1 root root      72903 Feb 14  2005 VIDEO_TS.tbn*
-rwx------ 1 root root      88064 Feb 14  2005 VTS_01_0.BUP*
-rwx------ 1 root root      88064 Feb 14  2005 VTS_01_0.IFO*
-rwx------ 1 root root 1073739776 Feb 14  2005 VTS_01_1.VOB*
-rwx------ 1 root root 1073739776 Feb 14  2005 VTS_01_2.VOB*
-rwx------ 1 root root 1073739776 May 26 14:56 VTS_01_3.VOB*
-rwxr-xr-x 1 root root 1073739776 May 26 15:00 VTS_01_4.VOB*
-rwxr-xr-x 1 root root 1073739776 May 26 15:05 VTS_01_5.VOB*
-rwxr-xr-x 1 root root 1073739776 May 26 15:09 VTS_01_6.VOB*
-rwxr-xr-x 1 root root  203984896 May 26 15:10 VTS_01_7.VOB*
root@Tower1:/mnt/disk2/Armageddon/VIDEO_TS#

 

As you can see, I went one directory lower since the standard DVD file structure dictates the movie files to be in a VIDEO_TS folder.  Anyway, I assume that since files did show up that they are somehow being marked hidden?

Here are the results:

 

Tower1 login: root
Linux 2.6.20.
root@Tower1:~# cd /mnt/disk2/Armageddon/VIDEO_TS
root@Tower1:/mnt/disk2/Armageddon/VIDEO_TS# v -R
.:
total 6497263
-rwx------ 1 root root       6144 Feb 14  2005 VIDEO_TS.BUP*
-rwx------ 1 root root       6144 Feb 14  2005 VIDEO_TS.IFO*
-rwx------ 1 root root      72903 Feb 14  2005 VIDEO_TS.tbn*
-rwx------ 1 root root      88064 Feb 14  2005 VTS_01_0.BUP*
-rwx------ 1 root root      88064 Feb 14  2005 VTS_01_0.IFO*
-rwx------ 1 root root 1073739776 Feb 14  2005 VTS_01_1.VOB*
-rwx------ 1 root root 1073739776 Feb 14  2005 VTS_01_2.VOB*
-rwx------ 1 root root 1073739776 May 26 14:56 VTS_01_3.VOB*
-rwxr-xr-x 1 root root 1073739776 May 26 15:00 VTS_01_4.VOB*
-rwxr-xr-x 1 root root 1073739776 May 26 15:05 VTS_01_5.VOB*
-rwxr-xr-x 1 root root 1073739776 May 26 15:09 VTS_01_6.VOB*
-rwxr-xr-x 1 root root  203984896 May 26 15:10 VTS_01_7.VOB*
root@Tower1:/mnt/disk2/Armageddon/VIDEO_TS#

 

As you can see, I went one directory lower since the standard DVD file structure dictates the movie files to be in a VIDEO_TS folder.  Anyway, I assume that since files did show up that they are somehow being marked hidden?

It is your windows explorer that is hiding the files.  It is apparently set to hide "system" files and your files have permissions set that mark them as 'executible'

 

to change them, from within the telnet prompt, try this...

 

find /mnt/disk2 -type f -print | xargs chmod -x

 

that will turn off the execute bits on those files on disk2.  That will probably do it for you...

 

 

  • Author

I ran that command and it returned:

 

Tower1 login: root
Linux 2.6.20.
root@Tower1:~# find /mnt/disk2 -type f -print | xargs chmod -x
xargs: unmatched single quote; by default quotes are special to xargs unless you
use the -0 option
root@Tower1:~#

 

I then tried:

 

root@Tower1:~# find /mnt/disk2 -type f -print | xargs -0 chmod -x]

 

Which returned:

 

...TS/VIDEO_TS.IFO\n/mnt/disk2/Barbershop/VIDEO_TS/VIDEO_TS.tbn\n/mnt/disk2/Barbers
hop/VIDEO_TS.tbn\n/mnt/disk2/The Watcher/VIDEO_TS/VTS_01_0.BUP\n/mnt/disk2/The W
atcher/VIDEO_TS/VTS_01_0.IFO\n/mnt/disk2/The Watcher/VIDEO_TS/VTS_01_1.VOB\n/mnt
/disk2/The Watcher/VIDEO_TS/VTS_01_2.VOB\n/mnt/disk2/The Watcher/VIDEO_TS/VTS_01
_3.VOB\n/mnt/disk2/The Watcher/VIDEO_TS/VTS_01_4.VOB\n/mnt/disk2/The Watcher/VID
EO_TS/VIDEO_TS.BUP\n/mnt/disk2/The Watcher/VIDEO_TS/VIDEO_TS.IFO\n/mnt/disk2/The
Watcher/VIDEO_TS/VIDEO_TS.nfo\n/mnt/disk2/The Watcher/VIDEO_TS/VIDEO_TS.tbn\n':
File name too long

 

That is just a tiny snip of the end of it.  It was much longer listing seemingly every file path on the drive.  I checked a bunch and the files still don't show.

  • Author

I just tried a little test.  I tried to copy a folder containing movie files from my existing movie server to my unRAID server through windows explorer on another computer and everything went fine and I can see the files.  But if I try it using telnet and the mount and cp commands as instructed earlier in this thread, the copy seems to take place, but no files show.

I ran that command and it returned:

 

Tower1 login: root
Linux 2.6.20.
root@Tower1:~# find /mnt/disk2 -type f -print | xargs chmod -x
xargs: unmatched single quote; by default quotes are special to xargs unless you
use the -0 option
root@Tower1:~#

 

I then tried:

 

root@Tower1:~# find /mnt/disk2 -type f -print | xargs -0 chmod -x]

 

Which returned:

...

 

If there are spaces, quotes or other metacharacters in your file names use

 

-print0 with xargs -0

 

find /mnt/disk2 -type f -print0 | xargs -0 chmod -x

 

Actually, type the command exactly like this:

 

cd  /mnt/disk2/Armageddon
v  -R

 

This is because I need to see the permissions on the VIDEO_TS directory itself.

 

--

 

This problem is arising because the 'default' unix file permissions are not set up correctly for the 'root' login - I neglected to fiddle with this because we didn't actually anticipate too many people using shell commands to copy files between servers.  Why did you want to do it this way to begin with?  Anyway, I'll add this to the 'bug list'.  Rest assured though, your files are O.K.

 

Regarding the 'x' bits - Samba overloads these bits as follows:

- the 'Owner Execute' bit functions as the DOS 'Archive' bit

- the 'Group Execute' bit functions as the DOS 'System' bit

- the 'World Execute' bit functions as the DOS 'Hidden' bit

 

That is why the 'x' bits may be set for files when viewing them from a shell (ie, telnet).

 

The correct permissions for files would be '0700'.

  • Author

Sorry for assuming Tom.  Here's the results of the command entered exactly how you want:

 

root@Tower1:~# cd  /mnt/disk2/Armageddon
root@Tower1:/mnt/disk2/Armageddon# v  -R
.:
total 0
drwxr-xr-x 2 root root  48 May 26 12:54 AUDIO_TS/
drwx--x--x 2 root root 432 May 26 13:23 VIDEO_TS/

./AUDIO_TS:
total 0

./VIDEO_TS:
total 6497263
-rwx------ 1 root root       6144 Feb 14  2005 VIDEO_TS.BUP*
-rwx------ 1 root root       6144 Feb 14  2005 VIDEO_TS.IFO*
-rwx------ 1 root root      72903 Feb 14  2005 VIDEO_TS.tbn*
-rwx------ 1 root root      88064 Feb 14  2005 VTS_01_0.BUP*
-rwx------ 1 root root      88064 Feb 14  2005 VTS_01_0.IFO*
-rwx------ 1 root root 1073739776 Feb 14  2005 VTS_01_1.VOB*
-rwx------ 1 root root 1073739776 Feb 14  2005 VTS_01_2.VOB*
-rwx------ 1 root root 1073739776 May 26 14:56 VTS_01_3.VOB*
-rwxr-xr-x 1 root root 1073739776 May 26 15:00 VTS_01_4.VOB*
-rwxr-xr-x 1 root root 1073739776 May 26 15:05 VTS_01_5.VOB*
-rwxr-xr-x 1 root root 1073739776 May 26 15:09 VTS_01_6.VOB*
-rwxr-xr-x 1 root root  203984896 May 26 15:10 VTS_01_7.VOB*
root@Tower1:/mnt/disk2/Armageddon#

Is the /mnt/disk2/Armageddon/VIDEO_TS directory one of the ones that shows no files via Windows Explorer??

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.