[SOLVED] Cannot mount remote Samba share

Re: Cannot mount remote Samba share

Postby fvdw » Mon Jul 16, 2012 9:41 pm

mdi wrote:Is it possible to update the samba suite in the NS2?


yes it is possible, it is actually on the to do list.
I successfully compiled version 3.6 last year but it is too big. If I can find some time I will see if we can compile as addon to be installed separately.

However I think it will not solve your problem.

I tried several Linux PC and windows PC and all mount without a problem... :scratch
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Cannot mount remote Samba share

Postby fvdw » Mon Jul 16, 2012 10:40 pm

today I fired up my old spd8020, and it seems to have a problem to mount external samba shares when running 12-1, mentioning it can not mount the external share.

So indeed a possible bug, need to figure out why on the my nwsp2 no problem, that will be tomorrow
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Cannot mount remote Samba share

Postby mdi » Tue Jul 17, 2012 6:09 am

Ok, sorry to hear you have the same problem, but I'm glad you're investigating. Mounting external network share is a VERY nice feature, which I abandoned the Lacie firmware in favour of yours, because I'd like to have my NAS backupped on the network, automatically and periodically.

So I'm really looking forward for a solution and I thank you for your support! :)
mdi
Donator VIP
Donator VIP
 
Posts: 193
Joined: Tue Oct 11, 2011 1:20 pm

Re: Cannot mount remote Samba share

Postby fvdw » Tue Jul 17, 2012 9:17 am

today I fired up my old spd8020, and it seems to have a problem to mount external samba shares when running 12-1, mentioning it can not mount the external share.

So indeed a possible bug, need to figure out why on the my nwsp2 no problem, that will be tomorrow

false alarm, I was running a new experimental kernel on the spd8020 restoring the normal kernel and rebooting made it work normal again and it mounts external shares without a problem

This is the command used by the web interface
Code: Select all
COMMAND=/bin/mount -t cifs //192.168.1.197/public /mnt/remote_share_mount_dir/192.168.1.197-smb-public -o rw,iocharset=utf8,username=dummy,password=dummy


In this case 192.168.1.197 is my nwsp2, so I have mounted a samba share from the nwsp2 on the spd8020 (also the otherway around works or mounting a shared folder from windows 7 :dontknow

mount1.JPG
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Cannot mount remote Samba share

Postby fvdw » Tue Jul 17, 2012 12:30 pm

I tried two different kernels on the nwsp2 the one as present in 12-1 and a newer one but both have no problems to mount an external samba share from the spd8020 or windows 7 PC.
Must be something with the samba server in your router
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Cannot mount remote Samba share

Postby mdi » Tue Jul 17, 2012 7:16 pm

Ouch! :-((
Do you think I should check the port forwarding against samba ports?

I'm not sure, as from a normal Linux box (Mint 12) and also Win 7, I can mount the Router shares without any problem. Really don't know... :.(

Thanks anyway for your confirmation and your tests.
mdi
Donator VIP
Donator VIP
 
Posts: 193
Joined: Tue Oct 11, 2011 1:20 pm

Re: Cannot mount remote Samba share

Postby fvdw » Tue Jul 17, 2012 10:59 pm

mdi wrote:Ouch! :-((
Do you think I should check the port forwarding against samba ports?

I'm not sure, as from a normal Linux box (Mint 12) and also Win 7, I can mount the Router shares without any problem. Really don't know... :.(

Thanks anyway for your confirmation and your tests.


You could check that although its not very likely. Port forwarding is normally used to forward ports connected to the internet on the WAN side of the router to a PC in the LAN.

But you have some other PC's in your LAN

Can you mount on the ns2 shared folders from your windows PC or samba shares form this normal Linux box (Mint 12) ?

In other words is it only not possible to mount the samba share form your router and no problem to mount samba shares on the other PC's in your LAN

ps is it possible to read the smb.conf file on your router ?
(is it set up properly and has it limitations for users or ip's or subnet masks ?
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Cannot mount remote Samba share

Postby fvdw » Wed Jul 18, 2012 8:41 pm

Hi mdi

Maybe the problem is related to the mount command. Now it uses the integrated command in busybox
The version of busybox is much more recent then the samba version maybe it is a compatibility issue
So I compiled for you mount.cifs from the version installed on the ns2 (3.0.24)
Maybe this binary is able to mount the shares from your router

To use it, put it in /usr/bin (check/adjust permission that it is executable, chmod 755) and run it with the command like this (example)
Code: Select all
/usr/bin/mount.cifs //192.168.1.197/public /mnt/test -o rw,iocharset=utf8,username=dummy,password=dummy

so do not use -t cifs

I checked on my nwsp2 and it mounted external samba shares without a problem
You do not have the required permissions to view the files attached to this post.
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Cannot mount remote Samba share

Postby mdi » Wed Jul 18, 2012 9:43 pm

Hi, thanks a lot for this attempt! :)
Maybe we will be able to know more.

I tried it and this was the output:
Code: Select all
root@nas:/mnt # mount.cifs //USB/nasusb remote/ -o rw,iocharset=utf8,user=admin,
password=XXXXX
mount error: cifs filesystem not supported by the system
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

"USB" is mapped in /etc/hosts as 192.168.0.1. If I use //192.168.0.1/nasusb in the command, I get the same error.
"remote" is a local directory I created under /mnt, to test mounting.

To answer your question, in the Lan I have:
- the router (sharing a disk)
- the NWSP2 NAS (sharing folders)
- a Mint 12 Linux box
- my office Win 7 laptop

From Win and Mint I can mount both NAS's folders and router's disk. No problem.
From the NAS I cannot mount anything the other network units are sharing. I can share FROM the NAS, but I cannot mount ON it.

At least now we have a more specific error. I don't know exactly how the CIFS filesystem could not be supported...
Are there are specific packages that are needed for it? Maybe I can check if I miss something.
I can say I started the installation of the firmware from version 9, as suggested on plugout.net, then I upgraded till 12.1.
I never had problems with the NAS, but now I'm trying to setup the BACKUP and I noticed this issue with mount.

Thanks again for any help! :)
mdi
Donator VIP
Donator VIP
 
Posts: 193
Joined: Tue Oct 11, 2011 1:20 pm

Re: Cannot mount remote Samba share

Postby fvdw » Wed Jul 18, 2012 10:06 pm

edited after reading more on the internet on this error I must revise my conclusion It probably means that the kernel you are running on the NS2 doesn't has support for cifs filesystem see next post


On the ns2 you can see which files systems are supported by the kernel by giving the the command cat /proc/filesystems. As you can see it supports cifs
Code: Select all
# cat /proc/filesystems
nodev   sysfs
nodev   rootfs
nodev   bdev
nodev   proc
nodev   tmpfs
nodev   sockfs
nodev   pipefs
nodev   anon_inodefs
nodev   rpc_pipefs
nodev   devpts
   reiserfs
   ext3
   ext2
nodev   ramfs
   vfat
   msdos
   iso9660
nodev   nfs
nodev   nfsd
nodev   cifs
   ntfs
nodev   fuse
   fuseblk
nodev   fusectl
   udf
   jfs
   xfs
nodev   mtd_inodefs


the fact that windows 7 or the mint box can mount is probably because they still support smbfs file system. The newer kernels as used on the NS2 don't support this anymore. I can look if there is possible to enable it again, sometimes you can still choose an option when it is deprecated.

The odd thing is that you say that can not mount shared folder from your windows 7 PC on the NS2. That should work with the firmware, I do it all the time. Maybe your windows 7 firewall is preventing it (for instance if you have not enable sharing of printers and files or limited it to the home group)

below an example (192.168.1.44 is my windows 7 PC)
Code: Select all
root@fvdwsl-nwsp2:/mnt # /usr/bin/mount.cifs //192.168.1.44/Public /mnt/test -o rw,iocharset=utf8,username=xxx,password=yyy
root@fvdwsl-nwsp2:/mnt # cd test
root@fvdwsl-nwsp2:/mnt/test # ls
aida32pe_393  registratiesleutel avast4 of 5 18 oct 2010.pdf  WinRAR_v3[1].11_All_languages
foto2.jpg     Thumbs.db
root@fvdwsl-nwsp2:/mnt/test #
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

PreviousNext

Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 5 guests