cifs on nas

kallquk

Registered
Messages
43
Hello,


I have a ipbox9000+usb nightly 0.7.5 with internal hdd and an external NAS.
I am having no success on mounting shared folder of nas on /mnt/cifs. I found a file: /usr/lib/enigma2/python/Plugins/Extensions/EMUmanager/mountstarter.sh, inside this script is listed, as a kind of library, the file: /var/config/cifs.conf. Inside cifs.conf are parameters for a cifs mount like ip address, directory, login user and pass, which I filled with NAS ip etc. Later in mountstarter.sh is a kind of procedure:
=====================================
mount_cifs()
{
if [ -e /var/etc/active_cifs ]; then
mount -t cifs //$cifs_address/$cifs_directory /mnt/cifs -o user=$cifs_login,password=$cifs_pass
fi
=======================================
where the variables are the same inside cifs.conf. The mountstarter.sh is executable by emu manager->disk menu-hdd/cifs mount manager, in auto mode that means mount both hdd and cifs. HDD is always ok, but I do not find anything in /mnt/cifs. I forget to say that I created a 0 byte file: /var/etc/active_cifs.
After failing mounting, I tried directly from shell, the mount command above putting values instead of variables:

mount -t cifs //192.168.1.2/kot /mnt/cifs -o user=a,password=b

and system response is:
mount: mounting \\192.168.1.2\kot on /mnt/cifs failed: No such device
I also have a dreambox 500s in this network, and try th same command from dm500 shell:
*********************************************************
** **
*** Welcome on your dreambox! - Kernel 2.6.9 ***
** **
*** SifTeam Image for dreambox ***
** **
*********************************************************


Saturday, 09 January 2010 Time: 00:53:34

SifTeam Image for dreambox
dreambox login: root
Password:


BusyBox v1.01 (2009.08.25-07:06+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ > mount -t cifs //192.168.1.2/kot /hdd -o user=a,password=b
~ > cd hdd
/hdd > ls
BtDownload dm500 epg.dat.md5 lost+found movie
bt epg.dat films lp0.bin oz
/hdd > ls -l
drwxrwxrwx 1 root root 0 Nov 21 03:04 BtDownload
drwxrwxrwx 1 root root 0 Jan 1 1970 bt
drwxrwxrwx 1 root root 0 Nov 19 00:34 dm500
-rwxrwSrwt 1 root root 826264 Nov 21 01:07 epg.dat
-rwxrwSrwt 1 root root 16 Nov 21 01:07 epg.dat.md5
drwxrwxrwx 1 root root 0 Nov 21 03:02 films
drwxrwxrwx 1 root root 0 Nov 18 22:04 lost+found
-rwxrwSrwt 1 root root 55077 Jan 7 11:45 lp0.bin
drwxrwxrwx 1 root root 0 Nov 24 17:59 movie
drwxrwxrwx 1 root root 0 Jan 1 1970 oz
/hdd >


the cifs mount is successfull on dreambox you can see nas folders.
The mount command is correct, something is wrong in ipbox9000

Can you help me? I have several days trying it

thanks in advance
 
Last edited:

arken

Registered
Messages
293
For some reason SIFTeam excluded cifs file system (samba shares support) from the latest E2 version.
To enable cifs support extract attached archive and copy cifs.ko to /lib/modules/
After this add this line to your /etc/rcS_user.sh file:
Code:
insmod /lib/modules/cifs.ko

Restart E2 (or execute /etc/rcS_user.sh).

Example of mounting windows share:
Code:
mkdir -p /mnt/cifs
mount -t cifs //192.168.1.2/movies /mnt/cifs/ -o username=Guest
 
Last edited:

kallquk

Registered
Messages
43
For some reason SIFTeam excluded cifs file system (samba shares support) from the latest E2 version.
To enable cifs support extract attached archive and copy cifs.ko to /lib/modules/
After this add this line to your /etc/rcS_user.sh file:
Code:
insmod /lib/modules/cifs.ko

Restart E2 (or execute /etc/rcS_user.sh).

Example of mounting windows share:
Code:
mkdir -p /mnt/cifs
mount -t cifs //192.168.1.2/movies /mnt/cifs/ -o username=Guest



thank you for the help but this did not resolved my problem. I put the cifs.ko in /lib/modules, then please see the execution as follows:

cuberevo login: root


BusyBox v1.11.2 (2009-12-14 11:21:51 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

cuberevo:~# cd /
cuberevo:/# mount -t cifs //192.168.1.2/kot /mnt/cifs -o user=a,password=b
mount: mounting \\192.168.1.2\kot on /mnt/cifs failed: No such device
cuberevo:/# insmod /lib/modules/cifs.ko
cuberevo:/# insmod /lib/modules/cifs.ko
insmod: cannot insert '/lib/modules/cifs.ko': File exists
cuberevo:/# mkdir -p /mnt/cifs
cuberevo:/# mount -t cifs //192.168.1.2/kot /mnt/cifs -o user=a,password=b
mount: mounting \\192.168.1.2\kot on /mnt/cifs failed: No such device or address
cuberevo:/#


As you can see, I executed the command, initially, and resposne is: no such device. then executed the insmod, that was successfully, but cannot be executed more than once as you can see. the directory /mnt/cifs exists in the filesystem, anyway executed mkdir as you told me. at last I gave again the mount commant which again failed with the quite same message: "no such device" is more "or address" !? the same command executed successfully in my dreambox 500.
 
Last edited:

arken

Registered
Messages
293
The syntax of the command is OK. If u can mount the NAS share from the dreambox the NAS config is OK. Check if u have network connectivity at all: - ping 192.168.1.2
 

kallquk

Registered
Messages
43
The syntax of the command is OK. If u can mount the NAS share from the dreambox the NAS config is OK. Check if u have network connectivity at all: - ping 192.168.1.2

I ping from ipboxshel the nas and the ping was ok, no loss. About the mount from dm500 in the same network, see by yourselves:

************************************************** *******
** **
*** Welcome on your dreambox! - Kernel 2.6.9 ***
** **
*** SifTeam Image for dreambox ***
** **
************************************************** *******


Sunday, 10 January 2010 Time: 14:44:32

SifTeam Image for dreambox
dreambox login: oot
Password:


BusyBox v1.01 (2009.08.25-07:06+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ > mount -t cifs //192.168.1.2/kot /hdd -o username=a,password=b
~ >


The same is not possible from ipbox(I only change mount foldeof dipbox, because /hdd is busy, there is internal harddisk in ipbox, so I use /mnt/cifs.

where may be the problem ?
 

kallquk

Registered
Messages
43
There are news about my cifs mounting! Or better saying there are complications
Ipbox can easily mount cifs a winxp shared folder in my pc, but not the nas shared folder While the dreambox 500 can mount both winxp folder on pc and the same shared nas folder.

Dreambox can, Ipbox not.
Can this be fixed ?
 

arken

Registered
Messages
293
Obviously the problem is in your NAS. Beyond the subject of sat-universe forums. You can try to update your NAS firmware to the latest version (check manufacturer page)
 

kallquk

Registered
Messages
43
Obviously the problem is in your NAS. Beyond the subject of sat-universe forums. You can try to update your NAS firmware to the latest version (check manufacturer page)

yes may be your one sentence answer is true. The nas and windows xp pc have differences, hardware difereces too. All in favor of windows xp.

I tried to mount nas from enigma1 sifteam version r9580, that stands in flash of ipbox9000:

************************************************** *******
** **
*** Welcome on your - Cuberevo ***
** **
*** SifTeam Image ***
** **
************************************************** *******


Monday, 11 January 2010 Time: 20:40:47

SifTeam Image for Cuberevo
cuberevo login: root
Password:
System bootup in progress - please wait
[Disconnect bypassed -- root login allowed.]
Linux 61.36.12.117 2.6.17.14_stm22_0038cuberevo #4 PREEMPT Sat May 19 01:37:49 KST 2007 sh4 unknown
-sh-3.00# mount -t cifs //192.168.1.2/kot /mnt/cf -o user=a,password=b
mount: //192.168.1.2/kot is not a valid block device
-sh-3.00#


it does not work neither here! It is an additional error message: //192.168.1.2/kot is not a valid block device

But the NAS can be mounted as cifs by my dreambox 500 in the same network as I wrote in my previous threads, and by debian lenny that is in my pc.

It does not work in any image of ipbox, may that the cifs is not fully implemented. I would like to know if anyone use nas with ipbox
 

kallquk

Registered
Messages
43
It is high probable, I could not use my NAS with my ipbox for some time and I am unhappy for that. Anyway, I am asking for a conclusive answer from an expert of sifteam and linux too, rather than users like me, which I thank them again for sharing their experinces with me.

I am not allowing easily the fact, why all my linux devices like dreambox, debian in pc mount cifs the nas and ipbox9000 with all images enigma1 & enigma2 including latest, cannot mount cifs my nas(but can mount cifs a shared folder in my PC with winxp).

I had in my hands a dreambox 800, for installing and configuring purpose, and I am very angry with myself that I did not try with it to mount cifs this nas. So I cannot say if it possible with dreambox 800.
 
Last edited:
Top