maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   OS2008 / Maemo 4 / Chinook - Diablo (https://talk.maemo.org/forumdisplay.php?f=29)
-   -   SMB/CIFS share support (https://talk.maemo.org/showthread.php?t=11836)

qole 2008-11-21 03:33

Re: SMB/CIFS share support
 
1 Attachment(s)
Ok, here are the files you'll need. Just tested with Diablo, they work great.
  1. Download the attached file to your tablet (let's just say /media/mmc2/install/diablo-cifs.tar.gz for the sake of the how-to)
  2. Gain root (I'd post a link to the maemo wiki but it is offline at the moment),
  3. Enter the following:
    Code:

    cd /
    tar xzvf /media/mmc2/install/diablo-cifs.tar.gz .


That should give you the files you need to use the mount.cifs command:

Gain root then:
Code:

insmod /lib/modules/2.6.21-omap1/cifs.ko
mount.cifs //SERVER/share /home/user/MyDocs/lan/share -o user=SERVER\\myname,pass=passwd1


sunmercury 2008-11-21 06:21

Re: SMB/CIFS share support
 
To answer your earlier question, qole, I do not see any of my unprotected share folder (read/write permission to everyone). I have a PC and an NSLU2, and they can see each other folders. The NSLU2 also runs a media sharing software (similar to Tversity). I only see a "Shared media" folder in my Diablo N800 file manager, in which only the share media folder can be seen, NOT any other public folder.

Thanks to your instruction, however, I can now mount any folder I want to, even those remotely connected vs VPN !!!

Thanks again :-)

CypherBit 2008-12-26 11:44

Re: SMB/CIFS share support
 
qole or anyone else, would you be so kind to help me out.

I downloaded, extracted the tar and completed insmod.

If I cd to /media/mmc2/install/sbin and execute:
Code:

mount.cifs //SERVER/share /home/user/MyDocs/lan/share -o user=SERVER\user,pass=password
I get:
Code:

/bin/sh: mount.cifs: not found.
So I included the entire path to mount.cifs like this:
Code:

/media/mmc2/install/sbin/mount.cifs //SERVER/share /home/user/MyDocs/lan/share -o user=SERVER\user,pass=password
I replaced SERVER with my machine name.
I replaced all instances of share with my share name.
I replaced all instances of user with my machine username.
I created the folder /home/user/MyDocs/lan/share.
I tried all variations of caps for my SERVER, user, share.
To be on the safe side I disabled my AV, FW.

And I still get:
Code:

/bin/sh: /media/mmc2/install/sbin/mount.cifs: Permission denied
Why is that? I have the correct password, username and machine name of that I'm certain since I connect to that machine with half a dozen other devices. I can also access my media through Media Player.

Any assistance would be greatly appreciated.

EDIT: I'm on a N810 with 5.2008.43-7.

qwerty12 2008-12-26 11:46

Re: SMB/CIFS share support
 
Quote:

Originally Posted by CypherBit (Post 252633)
qole or anyone else, would you be so kind to help me out.

I downloaded, extracted the tar and completed insmod.

If I cd to /media/mmc2/install/sbin and execute:
Code:

mount.cifs //SERVER/share /home/user/MyDocs/lan/share -o user=SERVER\user,pass=password
I get:
Code:

/bin/sh: mount.cifs: not found.
So I included the entire path to mount.cifs like this:
Code:

/media/mmc2/install/sbin/mount.cifs //SERVER/share /home/user/MyDocs/lan/share -o user=SERVER\user,pass=password
I replaced SERVER with my machine name.
I replaced all instances of share with my share name.
I replaced all instances of user with my machine username.
I created the folder /home/user/MyDocs/lan/share.
I tried all variations of caps for my SERVER, user, share.
To be on the safe side I disabled my AV, FW.

And I still get:
Code:

/bin/sh: /media/mmc2/install/sbin/mount.cifs: Permission denied
Why is that? I have the correct password, username and machine name of that I'm certain since I connect to that machine with half a dozen other devices. I can also access my media through Media Player.

Any assistance would be greatly appreciated.

Move it to somewhere like /home/user or /usr/bin and 'chmod +x' it. You cannot execute files of the memory card.

CypherBit 2008-12-26 12:03

Re: SMB/CIFS share support
 
qwerty12 that did it, thank you very much. I'm very new to NIT and Linux in general and had no idea I couldn't execute it from the memory card.

polossatik 2008-12-26 14:10

Re: SMB/CIFS share support
 
you have also http://maemo.org/downloads/product/O...izard-mounter/
dependency's: https://garage.maemo.org/frs/downloa...7/README_FIRST

not tested... just mentioning.


All times are GMT. The time now is 08:03.

vBulletin® Version 3.8.8