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)

Moonshine 2008-01-12 06:44

Re: SMB/CIFS share support
 
Penguinbait's KDE package has fully functional SMB support included. If you're desperate you could look at extracting it from the tarball.

qole 2008-01-13 23:05

Re: SMB/CIFS share support
 
Good news, everyone.

I managed to get my passworded CIFS shares to mount under OS2008! They are visible in File Manager and other apps, too!

The solution is pretty straightforward. I needed to get two files.

The first one is the cifs.ko from fanoush's module archive, getting it out of the archive and onto your tablet requires some know-how (ie ask someone else ;) ) I recommend making the proper module directory and putting the cifs.ko into that dir. The correct module dir name for OS2008 is:

/lib/modules/2.6.21-omap1/


The second one is mount.cifs from the Debian Sid armel smbfs package. Download it into a directory on your tablet, then, as root, use
Quote:

dpkg-deb -x smbfs_3.2.4-1_armel.deb smbfs
to extract the contents to a folder, then do:
Quote:

cp smbfs/sbin/mount.cifs /sbin/mount.cifs
chmod a+x mount.cifs
So, to get my share to mount, I did the following as root (this can be put in a script):
Quote:

insmod /lib/modules/2.6.21-omap1/cifs.ko
(Note that this may fail with a "file exists" error, that's OK, it means your system already has it loaded)
Quote:

mount.cifs //SERVER/share /home/user/MyDocs/lan/share -o user=SERVER\\myname,pass=passwd1
...replacing the proper things in the proper places, of course...

It just works. To see if I was doing this for nothing, I unmounted the share and tried
Quote:

mount -t cifs //SERVER/share /home/user/MyDocs/lan/share -o user=SERVER\\myname,pass=passwd1
only to get the familiar "Mount: .... failed" error.

Hopefully that helps someone else who is having the same problems.

PS: I first tried to install the whole Samba package from the Debian Sid armel repository. It depended on all sorts of stuff, and by the time I was done, I had replaced libc6 and other core system libraries. That totally toasted my system, and I had to reflash. Thankfully, I backed up before I began that adventure, so I was back up and ready to try again the next day.

turan 2008-01-15 10:09

Re: SMB/CIFS share support
 
Quote:

Originally Posted by qole (Post 127004)
Good news, everyone.
I managed to get my passworded CIFS shares to mount under OS2008! They are visible in File Manager and other apps, too!

Thanks for the instructions! I got this working, but after I was done I noticed my File manager doesn't find the shared folder anymore. Did I screw up something? Any idea why this could be?

BTW I myself am new with Linux, but luckily my friend helped me to get the files needed for this. There's probably more people like me so here's the files I used if someone needs them:

http://www.tehas.org/n800/cifs.ko
http://www.tehas.org/n800/mount.cifs
http://www.tehas.org/n800/umount.cifs

qole 2008-01-15 18:04

Re: SMB/CIFS share support
 
If you want File Manager to show your mounted directory, you have to mount it to a folder under /home/user/MyDocs/ (or mount it as a dir on one of the SD cards), so for me, I have a folder called /home/user/MyDocs/lan that has a subfolder for each of my SMB mounts.

If you could get to the shared folder via the file manager before, you probably don't need my instructions. They are only for people who couldn't access the share before due to a password or other problems.

I also found that the standard umount works fine, I didn't need umount.cifs.

FGol 2008-01-15 21:28

Re: SMB/CIFS share support
 
I like using EmelFM2 as a file manager. It or maybe GPE Filemanager ought to be able to see anything outside of /home/user.
Frank

turan 2008-01-15 21:47

Re: SMB/CIFS share support
 
Quote:

Originally Posted by qole (Post 128189)
If you could get to the shared folder via the file manager before, you probably don't need my instructions. They are only for people who couldn't access the share before due to a password or other problems.

Yes I could get to the shared folders via File manager, but I couldn't get to them from xmms file manager so that I could've added music to the playlist. Maybe there would have been an easier way to achieve this?

Now everything works as intended! Today the File manager can also access the shared folders even though I did nothing about it.

qole 2008-01-15 23:49

Re: SMB/CIFS share support
 
Quote:

Originally Posted by turan (Post 128352)
Now everything works as intended! Today the File manager can also access the shared folders even though I did nothing about it.

Did you reboot in the meantime? Sometimes a reboot fixes things ;)

turan 2008-01-16 09:34

Re: SMB/CIFS share support
 
Quote:

Originally Posted by qole (Post 128412)
Did you reboot in the meantime? Sometimes a reboot fixes things ;)

Sure I tried that a number of times. :)

frasej 2008-01-17 15:45

Re: SMB/CIFS share support
 
Thanks all. I haven't tried it yet, but that should work for my original question.

shenson 2008-01-23 17:34

Re: SMB/CIFS share support
 
I got this working by just insmodding cifs.ko and using the standard mount command. The -o option should come first before the "device" and mount point for example:

Quote:

mount -t cifs -o user=SERVER\\myname,pass=passwd1 //SERVER/share /home/user/MyDocs/lan/share


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

vBulletin® Version 3.8.8