[TUT] 2.2 firmware has cifs - Samsung Galaxy 5 I5500

Hi,
I was playing around with some kernel files and saw that cifs was mentioned.
So I tried to mount my NAS share and it worked I have stock samsung 2.2 firmware.
You don't need a rooted phone.
Use adb:
- adb shell
- mkdir /sdcard/nasmount
mount -o username=[your username],password=[your password] -t cifs //10.0.0.200/shared /sdcard/nasmount
Your NAS/PC has different ip and share name. Same as for username and password.
Now you can play music, pictures or movies directly from your NAS.
If your nas is not connected after the mount there will be a delay when browsing the sdcard.
Use umount /sdcard/nasmount command to unmount.
Cheers
ps: cifs manager also works fine now. It default mounts on /mnt/cifs

Related

[TIPS] Samba mount - cifs kernel module

Allows to mount a samba (windows) share, so you can e.g. play avi movies over wi-fi directly from a remote shared folder using e.g. RockPlayer.
Unlike the samba support in the ES Explorer, no downloading to a temp file on the SD card takes place and there's no waiting for the download to finish before the playback begins. When using this kernel module, from the applications' point of view, there's no difference between the network files and the local files on the SD card.
Usage:
Code:
mount -t cifs //<ip>/<share> /<mount point> -o username=<user>,password=<password>
Example: tested on CyanogenMod-6
Code:
insmod /system/lib/modules/2.6.34-cyanogenmod/kernel/fs/cifs/cifs.ko
busybox mount -t cifs //192.168.1.3/avi /sdcard/samba -o username=guest
Example: tested on CyanogenMod-6 with wildmonks kernel
Code:
insmod /system/lib/modules/2.6.35/kernel/fs/cifs/cifs.ko
busybox mount -t cifs //192.168.1.3/avi /sdcard/samba -o username=guest
then watch some movies... and later unmount it to save the battery:
Code:
busybox umount /sdcard/samba
I recommend to use the GScript application for the mount and umount scripts, then you can put them as GScript shortcuts somewhere on your screen...
For multi-language support use wildmonks latest kernel kernels dated 072410 that has unicode support.
(Recommend using this one for first time users 2.6.35-rc6_AVS-925mV_CFS_1113Mhz_072410.zip)
Example:
Code:
insmod /system/lib/modules/2.6.35/kernel/fs/cifs/cifs.ko
busybox mount -t cifs //192.168.1.3/avi /sdcard/samba -o username=guest,iocharset=utf8
I tested this and I can see the Cyrillic alphabet just fine.
Very cool! So in theory, I should be able to mount my music shares on my network and stream those while at home? Since we're talking about the kernel, perhaps the default music player might work?
There's no difference between the network files and the local files on the SD card.
Well, right, when you posted that that's what got me thinking about the music. So... I'm right? Well, I will try it later on tonight.
Does this have to be built into the kernel?
Set the path to an existing file cifs.ko. Just search the system using the Root Explorer (File Manager)
How do I show unicode filenames when mount?
I tried -o iocharset=utf8, but it requires nls_utf8.ko, which I don't know where can I get this library
Amazing! Works great on my Nexus One
This is a pretty nice and simple method to get media access over the network. Thanks for sharing this great tip!
@J.L.C.
Most if not all kernels have this either built in or compiled as a module.
Works great! Thx a lot! But how can I add russian language support? I meen when I mount source folder, the folders in russian shown with ??????? and I can`t enter to them.
d750 said:
Allows to mount a samba (windows) share, so you can e.g. play avi movies over wi-fi directly from a remote shared folder using e.g. RockPlayer.
Unlike the samba support in the ES Explorer, no downloading to a temp file on the SD card takes place and there's no waiting for the download to finish before the playback begins. When using this kernel module, from the applications' point of view, there's no difference between the network files and the local files on the SD card.
Usage:
Code:
mount -t cifs //<ip>/<share> /<mount point> -o username=<user>,password=<password>
Example: tested on CyanogenMod-6-RC1
Code:
insmod /system/lib/modules/2.6.34-cyanogenmod/kernel/fs/cifs/cifs.ko
busybox mount -t cifs //192.168.1.3/avi /sdcard/samba -o username=guest
Example: tested on CyanogenMod-6-RC1 with wildmonks kernel
Code:
insmod /system/lib/modules/2.6.35/kernel/fs/cifs/cifs.ko
busybox mount -t cifs //192.168.1.3/avi /sdcard/samba -o username=guest
then watch some movies... and later unmount it to save the battery:
Code:
busybox umount /sdcard/samba
I recommend to use the GScript application for the mount and umount scripts, then you can put them as GScript shortcuts somewhere on your screen...
Click to expand...
Click to collapse
I just wanted to say, i was referred to this thread from another topic i posted, basically inquiring about an app, that would do exactly this.
I already had shared folders setup on my computer (and know how to see what they are REALLY called, how samba sees them) for streaming to my Wii, so with the instructions above, this was REALLY easy.
My setup is in my sig, and i basically just copy/pasted the first example (substituting my ISP and shared directory name), and it worked, without flaw...
I would like to simply say, Thank you.
would love to see this as an actual app with a gui! any takers?
Thanks heaps man
I initially had tried getting this to work with my phone after the release of Rock Player, I was trying to run cifs.ko directly without the pathname and eventually gave up and placebo streamed via ftp (dumping file to sdcard while playing it)
Thanks again!!!
Wow! I've been looking for this feature for a last week.
Is there any chance to get it working on stock FRF91?
When I try it gives me "no such device" stderr
Aquila said:
Wow! I've been looking for this feature for a last week.
Is there any chance to get it working on stock FRF91?
When I try it gives me "no such device" stderr
Click to expand...
Click to collapse
Same happens here...
And that would be afeature I would love to have working...
Simpson84 said:
Works great! Thx a lot! But how can I add russian language support? I meen when I mount source folder, the folders in russian shown with ??????? and I can`t enter to them.
Click to expand...
Click to collapse
subscribe to the issue of displaying Cyrillic
how fix it?
sorry for my English
AllanJacques said:
Same happens here...
And that would be afeature I would love to have working...
Click to expand...
Click to collapse
I've just upgraded to the recent Cyanogen 6.0-RC2 and it works like a charm.
I am using the second command (just set up a proper path to cifs.ko).
Amazing ! Thanks a lot ! Just lots of thanks Great !
dimon1983 said:
subscribe to the issue of displaying Cyrillic
how fix it?
sorry for my English
Click to expand...
Click to collapse
I afraid the only fix is to rename your folders and files to be using Latin characters.
Update: it works but unmount is not found.
applet not found
please help to unmount this all
please help me making it work at all...
My notebook is on the same wireless network than my N1, my second hd is named Swap, I want to share the whole hd with N1 and when doing this:
insmod /system/lib/modules/2.6.34-cyanogenmod/kernel/fs/cifs/cifs.ko
busybox mount -t cifs //192.168.2.3/swap /sdcard/samba -o
username=myusername,password=mypassword
it doesnt work, and using guest as username gives me no device found!
Please, help me?

[HELP] CIFS VEGAn-GE-7.1.0

[HELP] CIFS VEGAn-GE-7.1.0
i installed CIFSmanager, but i am having hard time to get it connected, but with Astro i can connect, with file expert i can connect,...
i need it to be mounted so i can use to stream videos...
in CIFSManager:
Share Path = 10.0.1.11/d or 10.0.1.11/d$
mount Point = /sdcard2/d or /sdcard2/d$
Username = Allen Pan
Password = ************
Options =
....why it does not work?
Hi, try this:
192.168.1.103/Media (or whatever the shared folder that your media is located is called)
/sdcard/cifs/Media
****** (whatever the username is for the computer you are trying to access)
password
Good luck.
strange...the same....
See if the manual method works first. Then, you can troubleshoot CIFS manager. There are a couple of threads for the first:
CIFS Manager on CM 7
[Q] loading cifs module
I don't have vegan anymore but I did get cifs mounted so it could talk to my nas. One trick I used is to run terminal and su to root. Then run the command below. If it works, then ls should get a list of files (as root).
mount -t cifs -o username=server_user,password=secret //192.168.44.100/share /path_to/mount

[Q] (Q) Mount sdcard-ext as NTFS

Well, i have a problem to mount my external sdcard, i download the ntfsmodule from kholk's archives and then execute this command on terminal emulator to load the module
insmod /mnt/sdcard/ntfs.ko
but then how can i mount my sdcard
i tried this
mount -o rw -t ntfs-3g (or ntfs) /dev/block/yourdrive /mnt/whereveryouwant
but which dev/block is the sdcard-ext????? or this is only for usb drives?
Thanks in advanced....

[Q] Problem with cifs & umount scripts;Same commands work fine through adb

So here's the deal. I'll start from the beginning.
I've been trying to mount my Windows drives as cifs shares on my phone. I've done this in the past with CifsManager and it's worked great. Now each time I try to use CifsManager I get either invalid argument or it shows that the share is connected, but upon closing and reopening the app it says disconnected. Same thing happens with Mount Manager.(Mount manager runs it's commands fine, with no errors, according to SuperSU, but they don't work)
I know the kernel i'm using has cifs support and I double checked to make sure that the cifs module was loaded correctly.
Upon running:
Code:
mount -o username='user',password='pass' -t cifs '//192.168.1.76/c' '/sdcard/cifs/c'
I kept getting invalid argument. I did a little research, and it appears other people on CM10/10.1 based roms have had the same issue and have had to run this instead
Code:
/system/xbin/mount -o username='user',password='pass' -t cifs '//192.168.1.76/c' '/sdcard/cifs/c'
When I do that it goes through without any errors, and the shares mount like normal.
Code:
busybox mount
Also works.
Now, after i'm finished with the drives I like to unmount them, so I use
Code:
umount /whatever/path/mounted
and everything is fine and dandy.
Which leads me to my main issue, I don't want to have to type these up on my phone every time I want to mount my shares, and I don't want to hook up to adb to mount them either, so I figured i'd just make some scripts and use SManager to add shortcuts or widgets for them.
Whenever I try and run my scripts with SManager I get invalid argument, which leads me to believe i'm making some sort of mistake in the way i'm making the scripts because the same exact commands work over adb.
I made the three following scripts:
Code:
insmod /system/lib/modules/cifs.ko
Code:
busybox mount -o username='*****',password='*****' -t cifs '//192.168.1.76/c' '/sdcard/cifs/c'
Code:
umount /sdcard/cifs/c
All three get invalid argument returned in SManager for all three.
Running this works though.
Code:
sh script.sh
tl;dr
I'm trying to make some scripts to mount my Windows drives because none of the apps on the Play Store work. When I run the commands or the scripts through adb everything works great, but using any app to execute the scripts doesn't work.
Any help or anything that would help shine some light on my issues would be greatly appreciated.
Thanks in advance!

[Q] Mounting CIFS - Empty Directories

Hi all,
So I've spent hours trying to solve this, using everything I have found on the Internet. (This problem isn't exclusive to CIFS mounts by the way, it's all FS types. CIFS mount is what I require)
Basically I have an android box that's running 4.4.2. I need to mount a NAS box onto the file system. I can do this no problem using Terminal as SU. As soon as I use another App to navigate to the location, the mounted location isn't visible. I know that it is a known bug/security restriction after 4.2, and is due to multiusers or something. People have suggested including the mount command into /system/bin/debuggerd because the start command is a system command that has higher privileges or something. Anyway, I've tried this by just removing the contents of debuggerd and typing the following:
#!/bin/sh
mount -o username=JOELB,password=password -t cifs //192.168.1.252/PUBLIC /data/media/0/NAS
However, this doesn't work on boot, or if i run 'start debuggerd'
Apparently /data/media/0 is the location I should be mounting to, due to the bug/security flaw. Apps like mount manager are useless because they only work for that app.
Can anyone help me on this... It's killing me!!
Many thanks
Joel

Categories

Resources