OpenWrt Forum Archive

Topic: problem mounting samba/cifs partition

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

hi all,
im new of openwrt.
i flashed my new fonera, with openwrt kamikaze.
i installed samba-client in my new openwrt system because i want to share to my fonera a directory (//server/flowers) from my windows xp smb server.
i read this howto (http://wiki.openwrt.org/SambaHowto?high … 28samba%29) on the openwrt's wiki and the current situation is:

# smbclient //server/flowers -U smokescreen
Password:
smb: \>

it works correctly, but smbmount command does not exists, and if i try to mount with mount -t smbfs it fails again:

# mount -t smbfs //server/flowers /mnt/flowers/ -o username=smokescreen
mount: mounting //server/flowers on /mnt/flowers/ failed

then, i decide to try with cifs, and i installed cifsmount, but the result is the same:

# mount.cifs //server/flowers /mnt/flowers/ -o username=smokescreen
Password:
mount error: cifs filesystem not supported by the system
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
# insmod cifs
insmod: cifs.ko: no module by that name found

i dont know how i can solve this problem..
have you got ideas?
thanks
s.

Install kmod-fs-cifs package and try again...

sorry, i forgot to write about my kmod-fs-cifs experience sad

# ipkg install kmod-fs-cifs
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package kmod-fs-cifs.
Check the spelling or perhaps run 'ipkg update'

# ipkg update
Downloading http://downloads.openwrt.org/snapshots/atheros-2.6/packages/Packages
wget: server returned error: HTTP/1.1 404 Not Found
Downloading http://downloads.openwrt.org/kamikaze/packages/mips/Packages
Updated list of available packages in /usr/lib/ipkg/lists/packages
Downloading http://downloads.x-wrt.org/xwrt/kamikaze/snapshots/atheros-2.6/packages/Packages
Updated list of available packages in /usr/lib/ipkg/lists/X-Wrt
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 1: `wget --passive-ftp    -q -P /tmp/ipkg-fSgcgK http://downloads.openwrt.org/snapshots/atheros-2.6/packages/Packages'

# ipkg install kmod-fs-cifs
Nothing to be done
An error ocurred, return value: 4.
Collected errors:
Cannot find package kmod-fs-cifs.
Check the spelling or perhaps run 'ipkg update'

i dont know if the 'kmod-fs-cifs' package is on the following repository: http://downloads.openwrt.org/snapshots/ … /packages/ (which is not found...), but in its not on the other repository (http://..../mips/packages/).
i found it but its for 2.6.19.1 kernel version, my version is 2.6.22.4.
i cant find this package in another place...

If a package is not there you have to compile it by yourself. Btw. it's always the best to build Kamikaze by yourself from source. Then you can select the packages you need setup your own package repo and you are done.

yes, i tried first if there was another quick solution for this problem...
i think i rebuild kamikaze from source.
thank you smile
bye

The discussion might have continued from here.