OpenWrt Forum Archive

Topic: Mount smb share

The content of this topic has been archived on 8 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello everybody!

I consider to buy a WRT54GS, but first need to know if it's possible to mount Windows smb shares in OpenWRT? If yes, how can I do this? Do I need to install any packages?

Thank you!

YOu may need the kmod-smbfs package that can be found here :

http://openwrt.alphacore.net/kmod-smbfs … mipsel.ipk

Then the usual :

mount -t smbfs \<IP Address><shared directory> /destination

should work. If it does not work, then try to see if the mount command supports smbfs, and if not, then ask the busybox's developpers to implement it.

I installed the package, but receive the following error now:

root@OpenWrt:~# mount -t smbfs \192.168.0.5allgemein /mnt/allgemein
mount: Mounting 192.168.0.5allgemein on /mnt/allgemein failed: No such file or
directory

This means, the mount command doesn't support SMBFS?

Ditto, I had the same problem

use / instead of .

like //192.168.1.4/sharename

btw, that smbfs module on experimental:

root@linksys:~# insmod smbfs
Using /lib/modules/2.4.20/smbfs.o
insmod: unresolved symbol __up
insmod: unresolved symbol __down
insmod: unresolved symbol get_empty_inode

smbfs needs the smbmount utility, which for some reason is very big and uses libsmbclient.
So I decided to build the CIFS module with mount.cifs - you can find it here: http://nbd.vd-s.ath.cx/openwrt/packages/

I installed the cifsmount package, but how do I use it? When I try to run mount.cifs, I receive this:

root@OpenWrt:~# mount.cifs
/sbin/mount.cifs: 1: Syntax error: "(" unexpected

Hmm... My fault.. I must have had an older binary on my WRT when i tested it. I have uploaded a new version.

Thank you. mount.cifs runs now, but cannot mount the share, because the cifs-kernel-module seems not to be installed:

root@OpenWrt:~# mount.cifs //192.168.0.5/allgemein /mnt/server -o user=administr
ator
Password:
mount error: cifs filesystem not supported by the system
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

Anyway I have the kmod-cifs package installed. When I try to run insmod cifs, I see some unresolved symbols:

root@OpenWrt:~# insmod cifs
Using /lib/modules/2.4.29/cifs.o
insmod: unresolved symbol load_nls
insmod: unresolved symbol unlock_new_inode
insmod: unresolved symbol new_inode
insmod: unresolved symbol __up_wakeup
insmod: unresolved symbol load_nls_default
insmod: unresolved symbol unload_nls
insmod: unresolved symbol flush_dcache_page
insmod: unresolved symbol iget4_locked
insmod: unresolved symbol __down_failed

On my box runs the latest stable release of OpenWRT.

You need experimental for that module to work. Use it - it's quite stable...

Okay, I already thought about to use the experimental build.
Thanks for information and help!

The discussion might have continued from here.