[SOLVED] Cannot mount remote Samba share

[SOLVED] Cannot mount remote Samba share

Postby mdi » Sun Jul 15, 2012 5:11 pm

Hi Guys,
very good job. After many problems with the Lacie standard firmware, I'm stably running yours! :)

I just updated to firmware v12.1, but still I have an issue (also with previous versions).

I have a router (Netgear DGN2200v3) with an attached USB disk (Trekstore Sungoo) which I'd like to use as a backup area for my Lacie NS2.
So I went to the File-Share|Backup menu and selected ADD REMOTE SHARE.

From the menu, the share was already available, and I could easily just select it. It was called server="USB" and share="nasusb".
I entered the correct credentials for user and PW but I received this error:
Failed, Cannot mount the remote share : /mnt/remote_share_mount_dir/192.168.0.1-smb-nasusb

My NS2 is 192.168.0.149.
I can successfully mount the //USB/nasusb share from windows and also I could enter the SSH terminal in the NS2, and:
Code: Select all
root@nas:/mnt/remote_share_mount_dir # ls -l
total 4
drwxrwxrwx  2 root root 4096 2012-07-15 17:56 192.168.0.1-smb-nasusb
root@nas:/mnt/remote_share_mount_dir # smbclient -L USB
Password:
Domain=[USB] OS=[Unix] Server=[Samba 3.0.22]

        Sharename       Type      Comment
        ---------       ----      -------
        ADMIN$          IPC       IPC Service (USB)
        IPC$            IPC       IPC Service (USB)
        nasusb          Disk
Domain=[USB] OS=[Unix] Server=[Samba 3.0.22]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
        DRIVELINE            FIRNB250
        MSHOME               USB


But mount doesn't work:
Code: Select all
mount -t smbfs //192.168.0.1/nasusb /mnt/
remote_share_mount_dir/192.168.0.1-smb-nasusb/ -o user=admin,password=XXXXXXX
[color=#BF0000]mount: mounting //192.168.0.1/nasusb on /mnt/remote_share_mount_dir/192.168.0.1-smb-nasusb/ failed: No such device[/color]


I tried with IP, with logical name (USB), with smbfs and cifs types.... I don't know what else to try.
Is this ok?
Code: Select all
 modprobe smbfs
modprobe: module 'smbfs' not found


Guys thanks in advance for your work and your help!

Kind regards,
Marco
mdi
Donator VIP
Donator VIP
 
Posts: 193
Joined: Tue Oct 11, 2011 1:20 pm

Re: Cannot mount remote Samba share

Postby fvdw » Sun Jul 15, 2012 5:28 pm

connected via SSH

what does the command "mount" gives as output ? if the share is mounted it should be visible in the output

If you enter the directory /mnt/remote_share_mount_dir/192.168.0.1-smb-nasusb/ and give a ls do you get a directory listing ? (if so then the device is mounted)
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Cannot mount remote Samba share

Postby mdi » Sun Jul 15, 2012 5:36 pm

Hi, the share is NOT mounted, I cannot mount it via SSH, nor via the web interface. This is a complete SSH session:

Code: Select all
login as: root
root@192.168.0.149's password:
root@nas:/ # cd /mnt
root@nas:/mnt # ls
remote_share_mount_dir
root@nas:/mnt # cd remote_share_mount_dir/
root@nas:/mnt/remote_share_mount_dir # ls 192.168.0.1-smb-nasusb/
root@nas:/mnt/remote_share_mount_dir # mount //192.168.0.1/nasusb /mnt/remote_sh
are_mount_dir/192.168.0.1-smb-nasusb/ -o user=admin,password=XXXXXXX
mount: mounting //192.168.0.1/nasusb on /mnt/remote_share_mount_dir/192.168.0.1-smb-nasusb/ failed: No such device
root@nas:/mnt/remote_share_mount_dir # ls -ld 192.168.0.1-smb-nasusb/
drwxrwxrwx  2 root root 4096 2012-07-15 17:56 192.168.0.1-smb-nasusb/


So, mount always answer with No such device, even if smbclient can see the device //USB/nasusb and can even connect to it properly.

Thank you for your reply.
Marco
mdi
Donator VIP
Donator VIP
 
Posts: 193
Joined: Tue Oct 11, 2011 1:20 pm

Re: Cannot mount remote Samba share

Postby fvdw » Sun Jul 15, 2012 5:42 pm

the command we use to mount the external samba share is
Code: Select all
mount -t cifs //ip-server/sharename /mnt/mountpoint -o rw,iocharset=utf8,username=xxxxx,password=yyyyy


of course replace ip-server, sharename, mounpoint, xxxx, yyyyy by the actually values
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Cannot mount remote Samba share

Postby fvdw » Sun Jul 15, 2012 5:45 pm

when connected with ssh what does the command
Code: Select all
ping 192.168.0.1
gives as output ? (you can stop it with ctrl+z)

if this gives no response or timeout then it means the ip address is wrong
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Cannot mount remote Samba share

Postby mdi » Sun Jul 15, 2012 5:50 pm

Thanks a lot fvdw for posting the actual command.
I tried it, but still I receive the error "No such device" from mount.

It is curious because the share is visible on the network as a normal samba share, and also the nas can see it via smbclient.
Is there any other test I could try?

I'm not that expert with Linux in general, so I have no ideas over mount and Samba. Just found on the internet that the right packages should be available, that's why I also tried a
Code: Select all
modprobe smbfs

and it sayd that the module could not be found. Don't know if it matters....

Thanks again,
Marco
mdi
Donator VIP
Donator VIP
 
Posts: 193
Joined: Tue Oct 11, 2011 1:20 pm

Re: Cannot mount remote Samba share

Postby mdi » Sun Jul 15, 2012 5:54 pm

The ping output:

Code: Select all
root@nas:/mnt/remote_share_mount_dir # ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: seq=0 ttl=64 time=0.640 ms
64 bytes from 192.168.0.1: seq=1 ttl=64 time=0.466 ms
64 bytes from 192.168.0.1: seq=2 ttl=64 time=0.526 ms
mdi
Donator VIP
Donator VIP
 
Posts: 193
Joined: Tue Oct 11, 2011 1:20 pm

Re: Cannot mount remote Samba share

Postby mdi » Sun Jul 15, 2012 5:56 pm

But still the share can be seen by the NS2. Look at this:

Code: Select all
root@nas:/mnt/remote_share_mount_dir # smbclient -L 192.168.0.1
Password:
Domain=[USB] OS=[Unix] Server=[Samba 3.0.22]

        Sharename       Type      Comment
        ---------       ----      -------
        ADMIN$          IPC       IPC Service (USB)
        IPC$            IPC       IPC Service (USB)
        nasusb          Disk
Domain=[USB] OS=[Unix] Server=[Samba 3.0.22]

        Server               Comment
        ---------            -------

        Workgroup            Master
        ---------            -------
        DRIVELINE            FIRNB250
        MSHOME               USB
root@nas:/mnt/remote_share_mount_dir #


The nasusb is recognized.
In addition, in the Backup menu, selecting ADD REMOTE SHARE, I can see that the pre-selected server is USB (which is the logical name for 192.168.0.1) and the suggested available samba share of USB is only "nasusb", as smbclient confirms.

So the share is ok and the NAS can reach it, but only with smbclient, not with mount :...(

Thanks,
Marco
mdi
Donator VIP
Donator VIP
 
Posts: 193
Joined: Tue Oct 11, 2011 1:20 pm

Re: Cannot mount remote Samba share

Postby fvdw » Sun Jul 15, 2012 6:31 pm

and it sayd that the module could not be found. Don't know if it matters....


no it doesn't matter its build in the kernel and not as a separate module.

The NAS use smbclient to make the list. The fact that it can not mount it can also have to do with the linux version running on your router.

ps what kind of file system is used on the USB disk ? (FAT, FAT32, ntfs..), not that this should make a difference as the samba server of your router should take care of this

ps2 you could try to connect the USB disk directly to you NS2 and see if is accessible. It will become visible as a shared folder with name equal to the name used as label for the USB disk (probably USB)
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: Cannot mount remote Samba share

Postby fvdw » Sun Jul 15, 2012 6:34 pm

furthermore
I see that you use as workgroup "MSHOME" on the router, does the NS2 uses the same workgroup name ? sometimes this also causes problems
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Next

Return to Lacie Network Space vs2 and max version

Who is online

Users browsing this forum: No registered users and 2 guests