View Single Post
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#22
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
dpkg-deb -x smbfs_3.2.4-1_armel.deb smbfs
to extract the contents to a folder, then do:
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):
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)
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
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.

Last edited by qole; 2008-11-21 at 03:13. Reason: fanoush modules and debian smbfs version changes
 

The Following 12 Users Say Thank You to qole For This Useful Post: