Thread: cifs.ko - samba mount
- 06-28-2010, 09:31 AM #1
cifs - samba mount (e.g. for direct playback of shared multimedia files over wi-fi)
Compiled from Motorola kernel sources.
Allows to mount a samba (windows) share, so you can e.g. play avi movies directly from a remote shared folder over wi-fi using e.g. RockPlayer.
Samba mount - cifs.ko for Milestone | android.doshaska.netLast edited by nadlabak; 06-28-2010 at 04:12 PM.
-
The Following User Says Thank You to nadlabak For This Useful Post:
biji (06-30-2010)
- 06-28-2010, 10:18 AM #2
So I Hear You Can Mod
- Join Date
- Feb 2007
- Posts
- 119
- Thanks
- 10
- Thanked 14 Times in 8 Posts
- Downloads
- 13
- Uploads
- 0
Little explanation required please , if I understand this right , this will mount a folder on your pc so it can be accessed via your phone or the therway around ? but then you say we need an application in order to stream the movie so I m a bit confused here . For Example Esexplorer will give me access to my (already existing ) samba share and once in them I can click on a file and it will play it
- 06-28-2010, 02:13 PM #3
When you click on a movie file located on a samba share in ES Explorer, it will be first downloaded to a temp folder on your SD card and only then played by the selected movie player. That means waiting...
The RockPLayer is only an example, it does not support streaming from samba share by itself. I mentioned it only because it's the first Xvid capable player with smooth fullscreen scaling that works very good on Milestone.
When you mount a samba share using this cifs kernel module then for any aplication there is no difference between the local files on the SD card and the files on the mounted samba share - all seem to be like local files and any player can play them directly.Last edited by nadlabak; 06-28-2010 at 02:15 PM.
-
The Following User Says Thank You to nadlabak For This Useful Post:
DAGr8 (06-28-2010)
- 06-28-2010, 05:28 PM #4
So I Hear You Can Mod
- Join Date
- Feb 2007
- Posts
- 119
- Thanks
- 10
- Thanked 14 Times in 8 Posts
- Downloads
- 13
- Uploads
- 0
# insmod /system/lib/modules/cifs.ko
insmod /system/lib/modules/cifs.ko
# mount -t cifs //192.168.0.101/MEDIA-PC/ /sdcard/samba
mount -t cifs //192.168.0.101/MEDIA-PC/ /sdcard/samba
mount: Invalid argument
# mount -t cifs //192.168.0.101/MEDIA-PC/ /sdcard/samba -o username=guest
mount -t cifs //192.168.0.101/MEDIA-PC/ /sdcard/samba -o username=guest
Usage: mount [-r] [-w] [-o options] [-t type] device directory
# mount -t cifs //192.168.0.101/MEDIA-PC/ /sdcard/samba -o username=guest passwo
rd=guest
mount -t cifs //192.168.0.101/MEDIA-PC/ /sdcard/samba -o username=guest password
=guest
Usage: mount [-r] [-w] [-o options] [-t type] device directory
#
....
- 06-28-2010, 05:36 PM #5
The folder /sdcard/samba must exist before mount - you have to create it first.
Try(not /MEDIA-PC/ but /MEDIA-PC)Code:mount -t cifs //192.168.0.101/MEDIA-PC /sdcard/samba -o username=guest
Last edited by nadlabak; 06-29-2010 at 11:15 AM.
- 06-30-2010, 12:30 AM #6
So I Hear You Can Mod
- Join Date
- Sep 2007
- Posts
- 206
- Thanks
- 38
- Thanked 12 Times in 10 Posts
- Downloads
- 28
- Uploads
- 0
fantastic!
is seeking supported while playing movie?i love my [ razr2 V8 ]
- 06-30-2010, 04:51 AM #7
Yes, of course, the seeking works as well as on local files on SD card.
- 07-12-2010, 03:12 AM #8
Please note - you need to use busybox mount.
- 09-13-2010, 07:35 AM #9
Developer
- Join Date
- Apr 2010
- Posts
- 407
- Thanks
- 20
- Thanked 236 Times in 59 Posts
- Downloads
- 7
- Uploads
- 0
i would say that "Files" from motorola is much cooler, if you're a newbie to this.. its part of MotoFrenzy/MotoBlur mods for now..
ill try to make it an external "update-nosign" so it can be added to 2.1 and other images too..
but for us nerds, a module is also nice to have, so you can work with in in the background..
- 09-16-2010, 04:14 AM #10
Of Mice and Modders
- Join Date
- May 2008
- Posts
- 54
- Thanks
- 21
- Thanked 5 Times in 5 Posts
- Downloads
- 23
- Uploads
- 0
Short Question: How do i install Busybox?

No, not over the OpenRecovery Menu, or?
# busybox mount -t cifs -o username=guest //192.168.220.100/Videos /sdcard/samba
mount: mounting //192.168.220.100/Videos on /sdcard/samba failed: Permission denied
#
why? oO
# id
uid=0(root) gid=0(root)
# chown root:root /system/bin/busybox
No such user 'root:root'
# chown 0:0 /system/bin/busybox
No such user '0:0'
# busybox
BusyBox v1.16.1 (2010-04-27 21:12:31 CEDT) multi-call binary.
Copyright (C) 1998-2009 Erik Andersen, Rob Landley, Denys Vlasenko
and others. Licensed under GPLv2.
See source distribution for full notice.
Usage: busybox [function] [arguments]...
or: function [arguments]...
BusyBox is a multi-call binary that combines many common Unix
utilities into a single executable. Most people will create a
link to busybox for each function they wish to use and BusyBox
will act like whatever it was invoked as.
Currently defined functions:
[, [[, acpid, addgroup, adduser, adjtimex, ar, arp, arping, ash, awk,
basename, beep, blkid, brctl, bunzip2, bzcat, bzip2, cal, cat, catv,
chat, chattr, chgrp, chmod, chown, chpasswd, chpst, chroot, chrt, chvt,
cksum, clear, cmp, comm, cp, cpio, crond, crontab, cryptpw, cttyhack,
cut, date, dc, dd, deallocvt, delgroup, deluser, depmod, devmem, df,
dhcprelay, diff, dirname, dmesg, dnsd, dnsdomainname, dos2unix, du,
dumpkmap, dumpleases, echo, ed, egrep, eject, env, envdir, envuidgid,
ether-wake, expand, expr, fakeidentd, false, fbset, fbsplash, fdflush,
fdformat, fdisk, fgrep, find, findfs, flash_eraseall, flash_lock,
flash_unlock, flashcp, fold, free, freeramdisk, fsck, fsck.minix,
fsync, ftpd, ftpget, ftpput, fuser, getopt, getty, grep, gunzip, gzip,
halt, hd, hdparm, head, hexdump, hostid, hostname, httpd, hush,
hwclock, id, ifconfig, ifdown, ifenslave, ifplugd, ifup, inetd, init,
inotifyd, insmod, install, ionice, ip, ipaddr, ipcalc, ipcrm, ipcs,
iplink, iproute, iprule, iptunnel, kbd_mode, kill, killall, killall5,
klogd, last, length, less, linux32, linux64, linuxrc, ln, loadfont,
loadkmap, logger, login, logname, logread, losetup, lpd, lpq, lpr, ls,
lsattr, lsmod, lspci, lsusb, lzmacat, lzop, lzopcat, makedevs,
makemime, md5sum, mdev, mesg, microcom, mkdir, mkdosfs, mke2fs, mkfifo,
mkfs.ext2, mkfs.minix, mkfs.vfat, mknod, mkpasswd, mkswap, mktemp,
modprobe, more, mount, mountpoint, msh, mt, mv, nameif, nc, netstat,
nice, nmeter, nohup, nslookup, ntpd, od, openvt, passwd, patch, pgrep,
pidof, ping, ping6, pipe_progress, pivot_root, pkill, popmaildir,
poweroff, printenv, printf, ps, pscan, pwd, raidautorun, rdate, rdev,
readahead, readlink, readprofile, realpath, reboot, reformime, renice,
reset, resize, rm, rmdir, rmmod, route, rpm, rpm2cpio, rtcwake,
run-parts, runlevel, runsv, runsvdir, rx, script, scriptreplay, sed,
sendmail, seq, setarch, setconsole, setfont, setkeycodes, setlogcons,
setsid, setuidgid, sh, sha1sum, sha256sum, sha512sum, showkey,
slattach, sleep, softlimit, sort, split, start-stop-daemon, stat,
strings, stty, su, sulogin, sum, sv, svlogd, swapoff, swapon,
switch_root, sync, sysctl, syslogd, tac, tail, tar, taskset, tcpsvd,
tee, telnet, telnetd, test, tftp, tftpd, time, timeout, top, touch, tr,
traceroute, traceroute6, true, tty, ttysize, tunctl, tune2fs, udhcpc,
udhcpd, udpsvd, umount, uname, uncompress, unexpand, uniq, unix2dos,
unlzma, unlzop, unzip, uptime, usleep, uudecode, uuencode, vconfig, vi,
vlock, volname, wall, watch, watchdog, wc, wget, which, who, whoami,
xargs, yes, zcat, zcip
#
edit:
Works now.
Have the Update over OpenRecovery installed, also this Update: Files - app (from Droid2/Milestone2)
module manually installed and then works. Why? i dont know
Last edited by Protector; 09-16-2010 at 04:14 AM. Reason: Automerged Doublepost
- 09-23-2010, 02:37 PM #11
Of Mice and Modders
- Join Date
- May 2008
- Posts
- 54
- Thanks
- 21
- Thanked 5 Times in 5 Posts
- Downloads
- 23
- Uploads
- 0
Okay, next.
Gives a way to load cifs.ko automatically by booting?


LinkBack URL
About LinkBacks
Reply With Quote
