Related
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?
Hey guys i really need help trying to figure out how to use cifsmanager, could someone please help me? ....i tried following some guides on the web about pushing the cifs.ko under /system/lib/modules, but even after i tried that cifsmanager keeps saying the same exact freaking thing, it says: mounting 192.168.x.xx:/media/Data/My Music on /mnt/cifs/failed: no such device, and its just driving me crazy because i really want to get this to work....my rom version is cyano-6.1 rc1 and if someone could help me out i would greatly appreciate it thanks.
A couple of suggestions :
1) Did you go to the settings menu in CIFS Manager and check "Load via insmod" and enter the correct path in "Path to cifs.ko" ?
2) cifs.ko must also match the version of your installed kernel. You can test in Terminal. If insmod gives you a "exec format error" it is the wrong cifs.ko for your kernel.
More info on how to debug here :
http://androidcommunity.com/forums/f28/browse-your-computer-from-android-9292/
and here :
http://forum.sdx-developers.com/and...ifs-for-network-share-mounting-in-the-kernel/
ok yea I already did number 1, and two, i just did that now and here is what i came up with:
# cd /system/lib/modules
# ls
bcm4329.ko cifs.ko
# insmod cifs.ko
insmod: init_module cifs.ko' failed (File exists)
#
im not sure what that means, do you have any idea? Well i got the info placed in the program correctly and the drive mounts ok, just that i have to make the file viewer run as su before i can see any of the items....this is driving me crazy, oh and by the way thank you for replying
Try a "su" command before the insmod.
sometimes permissions are not correct.
I have also found the correct version of the module in an alternate directory on some of the overclock kernel mods. (i.e. /system/lib/2.6.29.6-cyanogenmod/kernel/fs/cifs).
I can't get it work too. Meanwhile, I am looking for a nls_utf8.ko for Aria. Does it even exist? I searched and got zero result.
alright, i tried using su before running insmod and i came up with the same thing :/ and about the /system/lib/2.6.29.6-cyanogenmod/kernel/fs/cifs.ko, i dont have the 2.6.29.6-cyanogenmod folder in my /system/lib, im not sure what to do....thanks again for your time to reply and help me
thefawns said:
alright, i tried using su before running insmod and i came up with the same thing :/ and about the /system/lib/2.6.29.6-cyanogenmod/kernel/fs/cifs.ko, i dont have the 2.6.29.6-cyanogenmod folder in my /system/lib, im not sure what to do....thanks again for your time to reply and help me
Click to expand...
Click to collapse
look in /system/lib/modules
are you using an oc kernel ? if so can you provide the link ?
and did you install cifs.ko from an alternate source ? if so , link please...
cm6.1-rc1 has its own /system/lib/modules/cifs.ko included in the rom.
insmod it for the first time will have no feedback at all meaning it's loaded, right?
If running it again then it will show
insmod: init_module '/system/lib/modules/cifs.ko' failed (File exists)
Yes , that's correct "Files exists" indicates the module is already loaded.
Then a mount in Terminal (i.e. mount -t cifs -o username=yourusername,password=yourpassword //192.168.1.20/sharename /sdcard/mnt/cifs/sharename) should work.
I still can not get an external usb ntfs drive to mount... I have tried Robeet's suggestion of:
NTFS mounting requires these commands, in terminal:
su
mount -t ntfs /dev/block/sda1 /mnt/usbdisk
Problem is that you are mounting as root, so you can't see the mounted files in the Android GUI. You could also do a chmod, but that's a bit of an extra burden. Anyone know how to mount this as a UID that it viewable in the GUI?
EDIT: This should work:
su
mount -o umask=000 -t ntfs /dev/block/sda1 /mnt/usbdisk
and this does not work... keeps saying no such device. I am running the ZPAD Clean 3.0 Rom and the latest kernel from Pershoot...
Anyone else having success getting a WD external usb hard drive to mount?
do a search this was solved required smaller partitions and reformat .
I make the NTFS USB external HDD with its own power supply work finnaly with the help of rajeevvp's article:
Thread: Mounting 2 storage usb devices View Single Post #8 20th May 2011, 05:01 PM
rajeevvp Senior Member Join Date: Aug 2010 Location: Bangalore Posts: 563
(I lost his link.)
The main rajeevvp's idea is to download the right version of ntfs.ko
"For this, you have to know which kernel you're running. There are 2 kernels that are commonly used on the gTablet: clemsyn's and pershoot's. I use pershoot's kernel so my instructions will be for that. The pershoot kernel supports NTFS filesystems, but, this support is not built into the kernel. Support is instead provided using kernel modules which you'll have to download first from the author's website and then load manually.
Download the correct kernel modules file for the running kernel. Find the kernel version first:
Code:
$ uname -a
Linux localhost 2.6.32.40-cyanogenmod #1 SMP PREEMPT Fri May 13 17:37:53 EDT 2011 armv7l GNU/LinuxThe kernel version is 2.6.32.40."
Go to http://droidbasement.com/db-blog/ and download the kernel modules file for that kernel version
Then
Load the kernel modules (I'm assuming now that they're on /mnt/sdcard), then mount the HDD:
Code:
$ su
# insmod /mnt/sdcard/nls_utf8.ko
# insmod /mnt/sdcard/ntfs.ko
# mount -o umask=000 -t ntfs /dev/block/sda1/mnt/usbdisk (from Roebeet)
To unmount it
Code:
$ su
# umount /mnt/usbdisk
I use GScript lite to do the work. I can play large video file from /mnt/usbdisk (NTFS USB HDD)
Thank you very much Rajeevvp for your guide.
Hope that help.
My GTab is running Brilliant Corners 1.3.1
GTablet said:
I still can not get an external usb ntfs drive to mount... I have tried Robeet's suggestion of:
NTFS mounting requires these commands, in terminal:
su
mount -t ntfs /dev/block/sda1 /mnt/usbdisk
Problem is that you are mounting as root, so you can't see the mounted files in the Android GUI. You could also do a chmod, but that's a bit of an extra burden. Anyone know how to mount this as a UID that it viewable in the GUI?
EDIT: This should work:
su
mount -o umask=000 -t ntfs /dev/block/sda1 /mnt/usbdisk
and this does not work... keeps saying no such device. I am running the ZPAD Clean 3.0 Rom and the latest kernel from Pershoot...
Anyone else having success getting a WD external usb hard drive to mount?
Click to expand...
Click to collapse
I'm having this issue also. I have run the following:
$ su
# insmod /mnt/sdcard/nls_utf8.ko
# insmod /mnt/sdcard/ntfs.ko
# mount -o umask=000 -t ntfs /dev/block/sda1/mnt/usbdisk
and I get
mount: can't read /etc/fstab: No such file or directory
Spazmodo said:
I'm having this issue also. I have run the following:
$ su
# insmod /mnt/sdcard/nls_utf8.ko
# insmod /mnt/sdcard/ntfs.ko
# mount -o umask=000 -t ntfs /dev/block/sda1/mnt/usbdisk
and I get
mount: can't read /etc/fstab: No such file or directory
Click to expand...
Click to collapse
Which ROM are you running?
Spazmodo said:
I'm having this issue also. I have run the following:
$ su
# insmod /mnt/sdcard/nls_utf8.ko
# insmod /mnt/sdcard/ntfs.ko
# mount -o umask=000 -t ntfs /dev/block/sda1/mnt/usbdisk
and I get
mount: can't read /etc/fstab: No such file or directory
Click to expand...
Click to collapse
There is a space missing between "/dev/block/sda1" and "/mnt/usbdisk".
See this post of mine for the original instructions.
Hi all,
This thread is to share the kernel module for rooted Sony Tablet S. I think it would be much useful to post all the zips in 1st post..
Requirement:
Condi's rooted solution on ur Tablet S. Instructions here
So now we have the below:
2.6.36.3 Kernel Modules :
- CIFS (and u can mount any LAN Network shared drives to your Tablet S and watch movies or listen musics.) Updated version has /proc/fs/cifs/Stats
- NTFS (mount a USB external drive using OTG cable; pretty obvious filesystem by the name )
- TUN (/dev/tun device for OpenVPN usage.)
- USB Serial ( cp210x, ftdi_sio and oti6858 ) --- NEW
Shell binaries :
- bash 4.1 (with bash configuration files. bash binary is changed to auto read from /data/local/bash for bashrc file ) [ Updated to version 4.2 ]
MD5SUM is as below:
5cd998c7d5f3d7b3e86fb1a46abec6e5 Sony_tablet_S-CIFS_module.zip
6e4b692028461d39fe9c2b291f6a9943 bash-4.1.zip
(OLD builds )
2ad1a2335b8cbd1f7d67b8686af67e48 Sony_tablet_S-CIFS_module_new.zip
fd461c462ca55982d60a274eb04565b5 Sony_tablet_S-NTFS-rw_module.zip
84b11ec49d21d62e1c90155f6b264cb0 bash-4.2.zip
d9859110c52e0a0e923f11564edf35b7 bash_cfg.zip
9b4e4e4505bc5916923b940a46b2e38a Sony_tablet_S-TUN_module.zip
3b97d4291cf7c213b5806b7c574a4475 Sony_tablet_S-USB_Serial_modules.zip
The steps are only manual way to insert the kernel module; automation is up to you. To automate this upon boot, i guess u can put it into init.d or somewhere im not sure.
If you need some kernel modules particular to 2.6.36.3 rooted, let me know.
have fun!
----------------------------------------------------------------
Kernel Module deploy instructions:
1) adb push <module_name>.ko /data/local/tmp
2) adb shell
$ su
# mount -o rw,remount -t ext4 /dev/block/mmcblk0p2 /system
# cp /data/local/tmp/<module_name>.ko /system/lib/modules/<module_name>.ko
# insmod /system/lib/modules/<module_name>.ko
To verify:
# lsmod
(You will see the module_name listed. )
-------------------------------------------------------------------------
bash shell deploy instructions:
1) adb push bash /data/local/tmp
2) adb push bash_cfg.zip /data/local/tmp
3) adb shell
$ su
# mkdir /data/local/bash
# chmod 775 /data/local/bash
# chgrp 2000 /data/local/bash
# cd /data/local/bash
# unzip /data/local/tmp/bash_cfg.zip
# chmod 755 /data/local/tmp/bash
# cp /data/local/tmp/bash /system/xbin/bash
Now, u can type bash at your prompt and you will see the below:
[localhost /data/local/tmp/new_bin]#
Overclock module possible?
zerod78 said:
attached is the kernel module cifs.ko for Sony Tablet S.
Click to expand...
Click to collapse
Thank you! Will check kernel modules things..
norberto_ said:
Overclock module possible?
Click to expand...
Click to collapse
The same I thought
I will check it, if everything will gonna work ok,
then it will be added to AiO as one-click solution.
br
condi
norberto_ said:
Overclock module possible?
Click to expand...
Click to collapse
Not in this current kernel as its compiled as built-in. However custom kernels in future should allow OC. Need time to look into.
NTFS Support for external drives?
---------- Post added at 06:00 PM ---------- Previous post was at 05:59 PM ----------
zerod78 said:
Not in this current kernel as its compiled as built-in. However custom kernels in future should allow OC. Need time to look into.
Click to expand...
Click to collapse
damn
I thought it is possible, because ia have seen this kind of modules for other devices.
norberto_ said:
NTFS Support for external drives?
---------- Post added at 06:00 PM ---------- Previous post was at 05:59 PM ----------
damn
I thought it is possible, because ia have seen this kind of modules for other devices.
Click to expand...
Click to collapse
Those are already having bootloader cracked. would need more info from Condi abt that on our tablet and the possibilities.
Btw, heres the NTFS rw kernel module.
<6>[96479.498359] NTFS driver 2.1.29 [Flags: R/W MODULE].
# lsmod
ntfs 194248 0 - Live 0xbf03e000
<refer to 1st post for files and deploy instructions>
zerod78 said:
Those are already having bootloader cracked. would need more info from Condi abt that on our tablet and the possibilities.
Btw, heres the NTFS rw kernel module.
<6>[96479.498359] NTFS driver 2.1.29 [Flags: R/W MODULE].
# lsmod
ntfs 194248 0 - Live 0xbf03e000
MD5SUM :
fd461c462ca55982d60a274eb04565b5 Sony_tablet_S-NTFS-rw_module.zip
Click to expand...
Click to collapse
NTFS module is live for me too but when i connect my NTFS formatted pendrive the tablet tells me blank USB device.
Is there any other commands to mount the ntfs drive?
norberto_ said:
NTFS module is live for me too but when i connect my NTFS formatted pendrive the tablet tells me blank USB device.
Is there any other commands to mount the ntfs drive?
Click to expand...
Click to collapse
Does it appear in the mount cmd output? Mounting it manually with '-t ntfs' would be required i feel...
adb shell
$su
# busybox mount
what does your screen show?
zerod78 said:
Does it appear in the mount cmd output? Mounting it manually with '-t ntfs' would be required i feel...
adb shell
$su
# busybox mount
what does your screen show?
Click to expand...
Click to collapse
Maybe you could achieve automount when inserted by changing vold/svold.fstab?
condi said:
Maybe you could achieve automount when inserted by changing vold/svold.fstab?
Click to expand...
Click to collapse
Yeah i was looking at that earlier and on further search it seems possible with patched vold here
Not 100% sure if its the same software but i guess it should be... I do not have a spare sdcard to format into ntfs and still awaiting for my OTG cable to arrived before i can test that.
new compiled versions available...
bash 4.2
cifs.ko
newly added:
tun.ko
10 chars....
zerod78 said:
new compiled versions available...
bash 4.2
cifs.ko
newly added:
tun.ko
Click to expand...
Click to collapse
Thanks for the Tun module. It worked perfectly!
New kernel modules update
Added USB Serial kernel modules :
- cp210x
- ftdi_sio
- oti6858
Requested by feith
Unfortunately, the modules don't work with the ICS kernel - 2.6.39.4
Code:
# insmod /system/lib/modules/tun.ko
insmod: init_module '/system/lib/modules/tun.ko' failed (Exec format error)
I assume updated versions of the modules are required? I only need TUN and NTFS, but I guess folks will need the other modules, too?
Also, this may be a silly question, but... would it be possible to also install more I/O schedulers in this way?
I need USB-Serial for rooted ICS Kernel 2.6.39.4
I hope someone can bring them to our Tablet. Thank you!
Are there no updated modules for ICS-Kernel? @all developers: it would be very helpful if you could release these updated ones
djlars said:
Are there no updated modules for ICS-Kernel? @all developers: it would be very helpful if you could release these updated ones
Click to expand...
Click to collapse
I would like to see that also.
I can't connect my ntfs hard drive. Only fat32 partition is recognized
Sent from my Sony Tablet S using xda app-developers app
Can anyone tell me how to get these kernel modules? I need them to get 3G Modem working..
djlars said:
Can anyone tell me how to get these kernel modules? I need them to get 3G Modem working..
Click to expand...
Click to collapse
Hey there,
I've compiled and posted kernel modules for kernel version 2.6.39.4
http://forum.xda-developers.com/showthread.php?t=1870077
Let me know if there are others that people could make use of.
A
Hello,
I enabled the mount option in BusyBox (it wasn't checked in the list of apps) in my rooted MK808 android TV and tried to mount a NFS share from my LAN using the following command in the terminal:
busybox mount -o ro,vers=3 -t nfs /192.168.0.10/storage /mnt/sdcard/cifs/storage
but I get the following message:
mount: permission denied (are you root?)
Does anyone here have any idea why this happens and how to enable the NFS mount?
Thanks a lot,
David
dstu69 said:
Hello,
I enabled the mount option in BusyBox (it wasn't checked in the list of apps) in my rooted MK808 android TV and tried to mount a NFS share from my LAN using the following command in the terminal:
busybox mount -o ro,vers=3 -t nfs /192.168.0.10/storage /mnt/sdcard/cifs/storage
but I get the following message:
mount: permission denied (are you root?)
Does anyone here have any idea why this happens and how to enable the NFS mount?
Thanks a lot,
David
Click to expand...
Click to collapse
Try
busybox mount -o ro,vers=3 -t nfs 192.168.0.10:/storage /mnt/sdcard/cifs/storage
Click to expand...
Click to collapse
kuisma said:
Try
busybox mount -o ro,vers=3 -t nfs 192.168.0.10:/storage /mnt/sdcard/cifs/storage
Click to expand...
Click to collapse
Click to expand...
Click to collapse
Thank you for your help. I think that you're right about the syntax (separate problem).
Unfortunately, I still get the same "permission denied" error message
Regards.
dstu69 said:
Thank you for your help. I think that you're right about the syntax (separate problem).
Unfortunately, I still get the same "permission denied" error message
Regards.
Click to expand...
Click to collapse
did you ever figure this out? i just got an mk808 and i'm having a different issue.
i solved the permission denied by typing 'su' at the command line to get root on the mk808, but trying to mount says that the share doesnt exist.
my ubuntu box sees the nfs shares without a problem.
I have a MK808 running finless 1.7 ROM.
the nfs mount command does not work.
When I checked
Code:
\proc\filesystems
nfs is not supported.
What ROMS are you using that supports NFS in MK808 ?
I am able to mount my nfs shares without issues in all my other unix devices [WDLXTV etc]