ok first off if you don't have thor's kernel it won't work. If you don't know where to get thor's kernel google it, XDA won't allow links.
Now comes the part where i need some help. I am by no means a computer guru or software guy so if i sound like a noob you know why. Everything i know i learned from XDA and the helpful devs here.
I can get the cd/dvd rom to mount with a store bought dvd movie by doing the following in terminal emulator
su
mkdir /mnt/cdrom
mount -r -t iso9660 /dev/block/sr0 /mnt/cdrom
doing this mounts the drive and lets me see the .ifo .bup and .vob files on the dvd, but i can't play the dvd with any apps. I am guessing it is because of the file types. Not an issue with me as i am just trying to learn how to mount it all
When i try to mount the drive, by using the same method, with either a music CD store bought or burned or a dvd-r with a .avi file on it it returns an invalid argument in terminal emulator. I think it is because of the file system type but i am not sure i have also tried the following with no luck
"mount -r -t udf /dev/block/sr0 /mnt/cdrom" this returns a invalid argument
"mount -r -t cdfs /dev/block/sr0 /mnt/cdrom" returns a no such device
any idea why it won't mount or other file types to try? when i plug the drive into my computer with the cd in it and click on the drives properties it says the file system is cdfs.
I wouldn't bother. AFAIK, there are no Android video players that can handle VOB files so even if you manage to mount the device, you won't be able to play anything.
FloatingFatMan said:
I wouldn't bother. AFAIK, there are no Android video players that can handle VOB files so even if you manage to mount the device, you won't be able to play anything.
Click to expand...
Click to collapse
And until people can mount CD/DVD drives, the devs won't develop DVD players. Also, it's not just DVDs; as mentioned in the original post it's audio CDs, AVI files etc stored on DVDs/CDs.
Worth persevering with and well done for getting as far as you have. Hopefully someone more knowledgable will point you in the right direction.
FloatingFatMan said:
I wouldn't bother. AFAIK, there are no Android video players that can handle VOB files so even if you manage to mount the device, you won't be able to play anything.
Click to expand...
Click to collapse
piss poor opinion to me. That's like saying why bother getting past the boot loaders. There aren't any custom roms for the iconia. Once they got itsmagic working have fast did you start to see the roms coming. You don't need apps at this point, just trying to figure out how to get everything to mount. Similar to how we now have Drive mount for android. There are already practical uses for this. Ohh your buddy has a cd you like and want, easy hook up your cd drive and copy it to your sd card and there you go.
No offense intended but if you can't help why bother posting?
hi,
please take a look at:
Daroon Player
and
VPlayer
I use both of them to play VOBs, but not from DVD drive. I have an external hard drive attached to my A501, this hard drive contains DVD folders (VIDEO_TS) of my bought discs. Daroon Player is able to play even the menus, a new version will come out soon, I am in contact with the developer. VPlayer is not free, but Daroon is free.
I like both apps!
Best regards,
Werner
Omaticayan said:
hi,
please take a look at:
Daroon Player
and
VPlayer
I use both of them to play VOBs, but not from DVD drive. I have an external hard drive attached to my A501, this hard drive contains DVD folders (VIDEO_TS) of my bought discs. Daroon Player is able to play even the menus, a new version will come out soon, I am in contact with the developer. VPlayer is not free, but Daroon is free.
I like both apps!
Best regards,
Werner
Click to expand...
Click to collapse
Thank you for this. As it is now i can mount the dvd rom and see the VIDEO_TS files. Let me see if i can mount the drive and watch the movies straight from, in which case it is win. Do you know if you can set custom directories within Daroon?
mburke178 said:
Thank you for this. As it is now i can mount the dvd rom and see the VIDEO_TS files. Let me see if i can mount the drive and watch the movies straight from, in which case it is win. Do you know if you can set custom directories within Daroon?
Click to expand...
Click to collapse
Yes, you can point Daroon to several folders.
Related
Devs,
Please move this thread to the right location if this isnt one, i looked everywhere but couldnt find anything about it. I was wondering if there is any way to mount iso files on my N1.
technicolor said:
Devs,
Please move this thread to the right location if this isnt one, i looked everywhere but couldnt find anything about it. I was wondering if there is any way to mount iso files on my N1.
Click to expand...
Click to collapse
Mount them where? And for what purpose? There are ways to mount image files(loopback), though I'm not sure about the format that can be used. At any rate, it'd require modification to the OS.
Forexample if i copy an iso file on my SDcard and then mount it like you can do on windows with DeamonTools or on ubuntu http://hacktivision.com/index.php/2008/02/24/how-to-mount-iso-images-in-ubuntu-the-ea?blog=2
I was just wondering if it is something that can be done, sky is the limit with Android aint it?
technicolor said:
Forexample if i copy an iso file on my SDcard and then mount it like you can do on windows with DeamonTools or on ubuntu http://hacktivision.com/index.php/2008/02/24/how-to-mount-iso-images-in-ubuntu-the-ea?blog=2
I was just wondering if it is something that can be done, sky is the limit with Android aint it?
Click to expand...
Click to collapse
I'd imagine it's possible with a rooted phone that has the appropriate kernel modules loaded. It's not exactly built in though, so aside from having the kernel modules ready, you'd have to manually mount it through the shell to some folder somewhere, and even then you'd only be able to access it through a shell or one of the file managers. At any rate, it doesn't seem too useful since there's no software for Android that requires any kind of disk(that I know of) and you'd have to have the image file on the sd card, which is already readable by the OS. So anything that could possibly be on the iso could just as easily be put on the sd card.
technicolor said:
Forexample if i copy an iso file on my SDcard and then mount it like you can do on windows with DeamonTools or on ubuntu http://hacktivision.com/index.php/2008/02/24/how-to-mount-iso-images-in-ubuntu-the-ea?blog=2
I was just wondering if it is something that can be done, sky is the limit with Android aint it?
Click to expand...
Click to collapse
Yes, it requires recompiling the kernel to support the correct filesystem. I did it the other day with a debian install disk. It's not too hard.
You will need a kernel that support cdfs,
mount -o loop /sdcard/name.ISO /path/to/mountpoint
Just for interested people, I have compiled cifs.ko and nls_utf8.ko from US version SGHI897 kernel (from samsung opensource website). This package has been tested under JF6, (out-of-box settings, but rooted). Key notes:
0. mount with -o iocharset=utf8, -t cifs
1. use "busybox" to do "mv or cp or mount or umount"
2. use direct "#" prompt to do "insmod"
3. better use GScript after you have tested these ko's
hiway123 said:
Just for interested people, I have compiled cifs.ko and nls_utf8.ko from US version SGHI897 kernel (from samsung opensource website). This package has been tested under JF6, (out-of-box settings, but rooted). Key notes:
0. mount with -o iocharset=utf8, -t cifs
1. use "busybox" to do "mv or cp or mount or umount"
2. use direct "#" prompt to do "insmod"
3. better use GScript after you have tested these ko's
Click to expand...
Click to collapse
I have absolutely no idea what you are talking about, other than it means someone's gonna come up with SOMETHING new to play with here....... =)
techmik67 said:
I have absolutely no idea what you are talking about, other than it means someone's gonna come up with SOMETHING new to play with here....... =)
Click to expand...
Click to collapse
coz, from searching the forum, there is no cifs and utf8 support for captivate. The first is used when using captivate to mount remote windows share folders. In other words, you can use rockplayer on captivate to browser media files on windows desktop. For some reasons, there could be encoding problem to view these media files' names, such as asian characters. Then the second one is needed.
hiway123 said:
coz, from searching the forum, there is no cifs and utf8 support for captivate. The first is used when using captivate to mount remote windows share folders. In other words, you can use rockplayer on captivate to browser media files on windows desktop. For some reasons, there could be encoding problem to view these media files, such as asian characters. Then the second one is needed.
Click to expand...
Click to collapse
I can definitely see why UTF8 is important, though I have no idea what to do with these files to be honest. also, linux-based system that doesn't support UTF8, really?
Kaik541 said:
I can definitely see why UTF8 is important, though I have no idea what to do with these files to be honest. also, linux-based system that doesn't support UTF8, really?
Click to expand...
Click to collapse
Don't quite understand your meaning, sorry. But anyway, just for interested people...
the module works great thanks for your effort.
network pimp... android novice.
hiway123, i pulled down your make of cifs.ko; loaded it in a network folder on my ext sdcard, but am not sure what to do now. (insmod, etc)
I attempted a few mount commands, and a few other linux norm paths, but I think I am lost here. Can you give a 1, 2, step of how to run the mount command? your post was rather cryptic. (i know i know, for the interested only! well definitely interested...)
*Note* I downloaded this nifty app: CIFSmanager app from the market, and it is open enough that it allows for the user to direct path for the cifs module (insmod path) to the file you compiled (again which is now on my sdcard) it seemed to be happy with it, but gave me some other error I believe had something to do with it not being root. (phone is rooted, have several apps with root level access... however haven't yet figured out how to run certain individual apps as root, that don't automatically try to obtain root access. blah blah blah, another project.)
anyhoot - i would love to be able to mount a vfs on this bird! had the captivate for about a month and love'n it! I got tons of media I'd like to stream over the network and found a few nice apps (ARCmedia / rocket, etc.) that i tested (direct copy to sd) and played my .flv files just fine! :-D
now all i need to do it trick the system into thinking my network paths are mounted resources. (Everything else works well, I can access network shares, view pictures, docs, standard video that the default video player can play fine.) So next step is to learn what YOU know.
sorry for the long post! - th x
tucxforever said:
hiway123, i pulled down your make of cifs.ko; loaded it in a network folder on my ext sdcard, but am not sure what to do now. (insmod, etc)
I attempted a few mount commands, and a few other linux norm paths, but I think I am lost here. Can you give a 1, 2, step of how to run the mount command? your post was rather cryptic. (i know i know, for the interested only! well definitely interested...)
*Note* I downloaded this nifty app: CIFSmanager app from the market, and it is open enough that it allows for the user to direct path for the cifs module (insmod path) to the file you compiled (again which is now on my sdcard) it seemed to be happy with it, but gave me some other error I believe had something to do with it not being root. (phone is rooted, have several apps with root level access... however haven't yet figured out how to run certain individual apps as root, that don't automatically try to obtain root access. blah blah blah, another project.)
anyhoot - i would love to be able to mount a vfs on this bird! had the captivate for about a month and love'n it! I got tons of media I'd like to stream over the network and found a few nice apps (ARCmedia / rocket, etc.) that i tested (direct copy to sd) and played my .flv files just fine! :-D
now all i need to do it trick the system into thinking my network paths are mounted resources. (Everything else works well, I can access network shares, view pictures, docs, standard video that the default video player can play fine.) So next step is to learn what YOU know.
sorry for the long post! - th x
Click to expand...
Click to collapse
I have a samba server in LAN, say at 192.168.1.1. So, I do these steps:
1. unzip my package to your computer, there are two ko files. Then use USB cable to transfer these two files to your phone in /sdcard folder.
2. on the phone, I used "terminal emulator", run "su" into root mode, make new folders like "busybox mkdir /system/lib/modules", you may try other directory name, I don't think that does a matter. Move the two ko files from /sdcard to this newly created folder, remember to use "busybox mv" command.
3. create a mount point on your phone, "mkdir /sdcard/smb" for example. or "busybox mkdir" I cannot remember.
4. insert modules, using "insmod /system/lib/modules/cifs.ko" and "insmod /system/lib/modules/nls_utf8.ko", remember these commands must be run everytime after you reboot your phone, so I use Gscript to create a shortcut, it's very convenient.
5. mount server's samba share folder in the phone, using "busybox mount -t cifs //192.168.1.1/your_share_folder /sdcard/smb -v -o user=yourusername,pass=yourpasswd,iocharset=utf8".
6. now, you can use rockplayer to browse into /sdcard/smb on your phone to view what is shared.
7. It is better to umount your folder once you finish transferring files. Then simply do "busybox umount /sdcard/smb".
Actually, only commands 5-7 are needed after your first attempt. Of course, if you have not done step 4 after a reboot, you need to do that step as well. I use Gscript in market to create shortcuts to these 4-7 commands. That's more convenient instead of typing on such small screen.
Have you tried this with any of the Custom ROMs in this section? If so, which ones work? Can you tell me how to compile a CIFS.KO?
Can it be compiled against the ROMs supplied here?
Thanks in advance,
Freaking brilliant, was exactly what I was looking for...thanks OP!
*edit*
Should mention, I used the posted .KO with stock rogers rom (i896) and it seems to be working flawlessly from my testing so far. I've even been able to stream some lower bitrate HD video and have it run smoothly and consistantly
insmod: init_module '/system/lib/modules/cifs.ko' failed (Exec format error)
something wrong?
i use SetiroN's kernel... and I9000 Froyo - maybe that is the reason?
Id assume that the kernel you are using isn't compatible and the module will have to be compiled for it.
Sent from my SAMSUNG-SGH-I896
love the rom just wish had few diff tweaks
CIFS_3.ko
http://forum.xda-developers.com/showthread.php?t=761414
I followed instructions from that thread
Use Estrongs or Astro (I use Estrongs File manager)
1) Create a directory called cifs on your sdcard.
2) Put the extracted cifs_3.ko into it.
3) Install CIFManager from the Market [free!]
4) In settings check use insmod and
5) In the location box put this minus quotes "/sdcard/cifs/cifs_3.ko"
Now it will work even when you reboot.
CIFS Manager latest version is in the market now (free)
http://forum.xda-developers.com/showthread.php?t=756158
Watching Avatar 720p streaming from PC and its flawless. The advantage is your having your network drives mounted so you can choose the player to play media. I have found the default player to work best of all the ones I tested, it plays mkv with subs and has the 5.1 sound option.
jatilq said:
CIFS_3.ko
http://forum.xda-developers.com/showthread.php?t=761414
I followed instructions from that thread
# mkdir network
mkdir network
# insmod /sdcard/network/cifs_3.ko
insmod /sdcard/network/cifs_3.ko
CIFS Manager latest version is in the market now (free)
http://forum.xda-developers.com/showthread.php?t=756158
Watching Avatar 720p streaming from PC and its flawless. The advantage is your having your network drives mounted so you can choose the player to play media.
Click to expand...
Click to collapse
That's very good to know, thanks for testing that out.
You have no ideal how long I been wantiing this. In Froyo we have the option of Androstream Pro which is the closest Ive seen to iPhones AirVideo.
I watched a few episodes of TV last night using this method and it was perfect. I had to check use ismode and point to the cifs_3.ko so it loaded on startup. Now I just need to figure out how to use a dyn.dns service to connect through internet.
Awesome, got it to work!
Once :-(
Is there an easy way to get the shell to # instead of $ without running the rage exploit ?
Also how to make it stick a reboot ? CifManager do not seem to be able to load the cifs module automatically.
BTW this is the root I run (h**p://rootzwiki.com/index.php/Smartphones/Samsung-Group/Fascinate.html), all my root requesting apps seems to work fine.
timeToy said:
Awesome, got it to work!
Once :-(
Is there an easy way to get the shell to # instead of $ without running the rage exploit ?
Also how to make it stick a reboot ? CifManager do not seem to be able to load the cifs module automatically.
BTW this is the root I run (h**p://rootzwiki.com/index.php/Smartphones/Samsung-Group/Fascinate.html), all my root requesting apps seems to work fine.
Click to expand...
Click to collapse
You dont even need the shell. Create a directory called cifs on your sdcard and put the extracted cifs_3.ko into it. Install CIFManager and in settings check use insmod and in the location box put this minus quotes "/sdcard/cifs/cifs_3.ko"
Now it will work even when you reboot.
jatilq said:
You dont even need the shell. Create a directory called cifs on your sdcard and put the extracted cifs_3.ko into it. Install CIFManager and in settings check use insmod and in the location box put this minus quotes "/sdcard/cifs/cifs_3.ko"
Now it will work even when you reboot.
Click to expand...
Click to collapse
I hate when I'm stupid, I did put the right path but not the right file name...
Works perfectly now thanks!
I got this working as well. Very cool feature! Now we need to run Samba on the phone so we can go the other way
I know we can set up an FTP server but it would be awesome if it could auto share the sdcard via cifs when connected to certain wife networks.
martian21 said:
I got this working as well. Very cool feature! Now we need to run Samba on the phone so we can go the other way
I know we can set up an FTP server but it would be awesome if it could auto share the sdcard via cifs when connected to certain wife networks.
Click to expand...
Click to collapse
DLNA does work that way? I haven't testing serving with it.
jatilq said:
DLNA does work that way? I haven't testing serving with it.
Click to expand...
Click to collapse
This way your shares are mounted so the phone sees the media as being local. I'm able to play movies that wouldn't play through DLNA because I can't select the player for them.
I love you.
Sent from my SCH-I500 using XDA App
Can someone post the version of cifs_3.ko they are using? I've tried just about all of them and whenever I try to mount a share my phone resets.
Here's something a lot of people are trying to do and are asking questions about, so I tought it would be nice to put it on all in one thread.
Works with Stock firmware and kernel! - NOOB A-B-C EDITION for Windows-
Requirements:
Root access;
Android SDK installation - ADB commands;
What to do:
1- Download this file (Thanks pershoot!) and unzip it.
2- Now copy it into the SDK's "platform-tools" folder. (Default path for a x64 Windows computer should be something like "C:/Program Files (x86)/Android/android-sdk/platform-tools/"
3- Enable USB debug (Settings / Applications / Development) on your Tab and plug it into your computer.
4- On your PC ( ), open a Command Prompt. (Start Menu / Program Files / Accessories)
5- Browse to your /platform-tools folder. (Type in a couple "cd.." [Enter] "cd.." [Enter] to be sure youre at root , then type in "cd Program Files (x86)/Android/android-sdk/platform-tools")
6- Type in
"adb shell" [Enter]
"su" [Enter]
"mkdir /mnt/sdcard/Movies/CIFS" [Enter] // This is your mounting point. I recommend to use an empty folder within "Movies" 'cause it'll be easier to use with the Video Player app
"mkdir /data/local/modules" [Enter]
"push cifs.ko /data/local/modules" [Enter]
"chmod 755 /data/local/modules" [Enter]
"chmod 644 /data/local/modules/cifs.ko" [Enter]
"insmod /data/local/modules/cifs.ko" [Enter]
7- You can now unplug your device and install CifsManager;
8- In CifsManager, select "Menu" (Right of "screenshot button") / Settings
- Check "Load cifs module"
- Check "Load via insmod"
- Path to cifs.ko will be "/data/local/modules/cifs.ko"
9- Configure a new share in CifsManager correctly (IP address/folder to mount, mount point should be "mnt/sdcard/Movies/CIFS" or whatever you chose.)
That should be it; I'm now able to flawlessly stream 720p movies directly from my NAS over WiFi. Rooted Stock UXKK2 ROM & Kernel (Android 3.2)
Thank you, come again!
I stream from cifs/samba (windows) shares using es file explorer and bs player. Browse the lan tab to my shares and open the file. No root required. I also use wild media server and upnp.
Sent from my GT-P7510 using xda premium
Another vote for upnp here. I have a nas with a server on it and with bubble upnp and mx player I haven't found a file that I can't play.
Twonkey is a good and really simple to set up upnp server. Check it out.
Right; but the difference is that with this trick, all those smb/cifs shares will appear within your Tab's own storage; and will be accessible by all apps!
For example, the wonderful Mizuu Media manager now thinks my Tab has something like 12tb of storage; and I have hundreds of movies and tv shows with all the covers, screencaps, fanarts, trailers, actors and movie info and shyt exactly like in XBMC on my computer. See a couple screenshots
It actually is fully compatible with XBMC .nfos and stuff; if you backed it up in separate files. =)
The thing is this will work with ANY app; add zillions of mp3's to your library, or ebooks.. etc..
wewewi999 said:
Right; but the difference is that with this trick, all those smb/cifs shares will appear within your Tab's own storage; and will be accessible by all apps!
For example, the wonderful Mizuu Media manager now thinks my Tab has something like 12tb of storage; and I have hundreds of movies and tv shows with all the covers, screencaps, fanarts, trailers, actors and movie info and shyt exactly like in XBMC on my computer. See a couple screenshots
It actually is fully compatible with XBMC .nfos and stuff; if you backed it up in separate files. =)
The thing is this will work with ANY app; add zillions of mp3's to your library, or ebooks.. etc..
Click to expand...
Click to collapse
Very cool advantage. Any performance boost when mounting with your method versus browsing via file managers like ES?
GorillaPimp said:
Very cool advantage. Any performance boost when mounting with your method versus browsing via file managers like ES?
Click to expand...
Click to collapse
In fact access through CIFS.ko a bit slower. I did not compare it with ES but with Ghost file manager.
Transfer rate with CIFS.ko is about 1.1 MB per second.
Ghost file manager - 1.4 MB per second.
I like ES because it's creating SMB shares on a fly and let you open up file with corresponding apps, so movie can be opened with video player and would stream.
I use plex.. It works great.
Sent from my SPH-D710 using Tapatalk
Is this working with Seagate Goflex satellite? Has anyone tried this? Thank you.
Will mapped folders show up in Mass Storage Device Mode?
Thanks for the wonder tutorial.
Can I asked if the phone is plugged into another PC or host as a Mass Storage Device, will the mapped folders also show up?
I thought it would be interesting if it does and I can plug it directly to the USB port of my TV where it could play the media files directly as a USB drive.
Thanks.
Ignore me, misread the last post.
Andre
Thanks for your guide, I've cifs.ko, kernel support of this and cifs manager.
I've a bad problem with a not latin char, so i tried add nls_utf8.ko modules but dont works
Any idea? Thanks
I'm also using cifs manager but a lot of my MP3 don't show artist, title a.o. means when mounted it can't read the id3tag...somebody an idea??
Sent from my GT-P7500 using xda app-developers app
Sorry duplicare post
Hi. I would like to mount some shared folders on my android 4.0.4 (Samsung galaxy tab 10.1 - P7500) but when I use this tutorial the CMD on laptop (windows 7) says:
sh/system/bin: push: not found
So I tried almost everything to get cifs.ko moved to data/local/modules but there is not much I can do. Can you help me out? What I do wrong?
Also ADB cant list my device (the list is empty) even though I tried installing many drivers (google, KIES, samsung). It got listed only oce but then it was "error: device offline" Please help me out.
Thanks in advance,
Matt
OK. So I used root explorer instead of ADB and moved cifs.ko to data/local/modules. Unfortunately it can't be installed thru insmod because there is another error (exec error). Any clues? Pleeease...
anybody know of a way to mount cifs over 3g/4g??
OK. So I used root explorer instead of ADB and moved cifs.ko to data/local/modules. Unfortunately it can't be installed thru insmod because there is another error (exec error). Permissions are set correctly. Wrong cifs? Any clues? Pleeease...
cavemandaveman said:
anybody know of a way to mount cifs over 3g/4g??
Click to expand...
Click to collapse
can be accomplished with a VPN connection to your file server and the vpn built into android.
Need some help too
I have a Belkin N750 as a router. It comes with Twonky as a media server. On the Allshare devices I have at home I'm not able to play MP4 videos with subtitles and that's when my android devices come in handy.
Using ES File Explorer and MX Player I'm able to play MP4 videos with subtitles from my NAS.
For that I use a Razr XT910 and a Samsung GT N8000.
This setup works very well as long as it runs on ICS.
Recently I upgraded my GT N8000 to JB and it stopped working.
Now it has to download the video before start playing.
Does anyone know what I have to do to have it working back as it used to be?
Thanks.
Help with the question above anyone?
Hello there!
I'm not sure wether this is the right Forum thread, nor if it's even possible.
English is not my first language, but i hope i can make myself clear and explain my problem.
As in the title mentioned I just want to mount a nfs share into my filesystem so that i can access my media through a vpn whereever I go.
I'm using a Synology Diskstation as NAS and created some NFS-shares (tried version 3 and 4) which are accessable in my Network. It's working flawless with my raspberry pi and with my debian system. I don't want to use smb (cfis).
I want to use my favorit musicplayer to listen to my music, mounted via fstab in the musicfolder for example.
Right now i'm using the yatse app, works fine - but it's just a workaround....
I tried FreedomOS(stock kernel and elementalx)+busybox and Resurrection Remix(stockkernel and lightningkernel)+ busybox. All i get is Invalid argument or error messages. I just can't get it to work. It's a linux system, why can't i use a simple nfs share?
Any help would be apreciated.
Thanks in advance!
I used to mount a nfs share with busybox so be sure to have that installed.
next be sure to have a working VPN connection to your home network.
One more thing to check is that VPN connections are allowed to access the nfs shares. Dont know if you need to set this up with synology or that it's enabled by default.
Thanks for the response.
I have all permissions set to get access to the nfs-share, tried it without vpn aswell. The vpn itself is working like a charm.
I have access to my NAS via webinterface and sftp, i can control and stream from my raspberry pi aswell. No problems with the vpn for sure.
I'm using busybox aswell. Can you post me your mount command or your fstab line for the mount?
the1weasel said:
Thanks for the response.
I have all permissions set to get access to the nfs-share, tried it without vpn aswell. The vpn itself is working like a charm.
I have access to my NAS via webinterface and sftp, i can control and stream from my raspberry pi aswell. No problems with the vpn for sure.
I'm using busybox aswell. Can you post me your mount command or your fstab line for the mount?
Click to expand...
Click to collapse
I used this i believe.
Your kernel needs to support it.
https://gist.github.com/aldur/4a3f90a111b71662f056
maikvitesse said:
I used this i believe.
Your kernel needs to support it.
https://gist.github.com/aldur/4a3f90a111b71662f056
Click to expand...
Click to collapse
Thats exactly what i was told over here https://forum.xda-developers.com/oneplus-5/development/kernel-elementalx-op3-1-00-t3626808/post73156290#post73156290
I will follow up on that, thanks for pointing me in the right direction aswell.
Ok, i was able to mount the share.
Now that it's getting a general question i will follow up here. I posted what i did over here aswell and got it solved to this state.
I can see the files in the Terminal, but not in any App (explorer, musicplayer etc.).
As i already wrote here: https://forum.xda-developers.com/showpost.php?p=73161675&postcount=437 I'm guessing it's because i mounted as root so normal users can't use it. Or at least thats what I'm thinking.
I searched the forum already and just found a thread with someone having the same problem without solution.
Is there a way that i can use the mounted share with any app I want?
Just for the roundup.
Here is whats working:
mount a nfs-share through an terminal app. => Files are visible/browsable
whats not working:
Use the mounted nfs-share systemwide with any other app.
What i tried (used Termux):
mount into /mnt/remotenfs => files show up in terminal, just there.
mount into /storage/emulated/0/Music/remote => files show up in terminal, just there.
mounted the share and then started an explorer (solidexplorer) from terminal - same result. No fileaccess through explorer.
the1weasel said:
Just for the roundup.
Here is whats working:
mount a nfs-share through an terminal app. => Files are visible/browsable
whats not working:
Use the mounted nfs-share systemwide with any other app.
What i tried (used Termux):
mount into /mnt/remotenfs => files show up in terminal, just there.
mount into /storage/emulated/0/Music/remote => files show up in terminal, just there.
mounted the share and then started an explorer (solidexplorer) from terminal - same result. No fileaccess through explorer.
Click to expand...
Click to collapse
I think I suggested something like this as a way to glean some information about this problem in the other thread, but don't recall for certain what the outcome if any was:
At least since V5 and above of Android OS, there's been some sort of thread insularity that keeps another thread from seeing what some of the first one sees. (moreso than before V5). I figured that since fstab.qcom (or whatever the name of the actual startup file where "mount -a" is pointed) must contain the mounted partitions that are visible to all. If that's the case, it's either the startup mount daemon, or it is in one of the columns of each "mount" entry in fstab.*.
I think I suggested adding a mount entry without the "automount at start" parameter for your remote music. Just curious if that was tried? Also, I thought the file where these were entries were kept in M & N (6 & 7) had "*vold*" in the title.
I'm also curious about this and will look around for some better answer because it seems very non-linux / android that only the thread performing the action can see the result (although that is how local actions / variables act).
After some poking around: I think this link explains some possible reasons for this behavior, not that there isn't some way around it. Probably there is no way around it without some compromise of whatever privacy additions android OS is after. It sounds a lot like an SELinux & /proc FS change. https://stackoverflow.com/questions/38590140/file-system-changes-in-android-nougat
hachamacha said:
I think I suggested something like this as a way to glean some information about this problem in the other thread, but don't recall for certain what the outcome if any was:
At least since V5 and above of Android OS, there's been some sort of thread insularity that keeps another thread from seeing what some of the first one sees. (moreso than before V5). I figured that since fstab.qcom (or whatever the name of the actual startup file where "mount -a" is pointed) must contain the mounted partitions that are visible to all. If that's the case, it's either the startup mount daemon, or it is in one of the columns of each "mount" entry in fstab.*.
I think I suggested adding a mount entry without the "automount at start" parameter for your remote music. Just curious if that was tried? Also, I thought the file where these were entries were kept in M & N (6 & 7) had "*vold*" in the title.
I'm also curious about this and will look around for some better answer because it seems very non-linux / android that only the thread performing the action can see the result (although that is how local actions / variables act).
After some poking around: I think this link explains some possible reasons for this behavior, not that there isn't some way around it. Probably there is no way around it without some compromise of whatever privacy additions android OS is after. It sounds a lot like an SELinux & /proc FS change. https://stackoverflow.com/questions/38590140/file-system-changes-in-android-nougat
Click to expand...
Click to collapse
Thanks for the response, looks like you are much more into that android thing....
I just added
"10.11.12.10:/volume1/Audio /storage/emulated/0/Music/remote nfs nolock,ro defaults"
to the fstab.qcom . Doesn't mount at startup.
I realized some inconsitency in the ssh thing, sometimes it works mounting via ssh, sometimes not....strange. (mount: applet not found)
To be sure i'm doing all that stuff without ssh.
Edit:
For everyone else reading this. It's not about music, the musicfolder is just a random folder to see if it's working.
the1weasel said:
Thanks for the response, looks like you are much more into that android thing....
I just added
"10.11.12.10:/volume1/Audio /storage/emulated/0/Music/remote nfs nolock,ro defaults"
to the fstab.qcom . Doesn't mount at startup.
I realized some inconsitency in the ssh thing, sometimes it works mounting via ssh, sometimes not....strange. (mount: applet not found)
To be sure i'm doing all that stuff without ssh.
Edit:
For everyone else reading this. It's not about music, the musicfolder is just a random folder to see if it's working.
Click to expand...
Click to collapse
To add to that: It doesn't seem like any surprise that just putting an entry in the fstab.qcom doesn't work the same as the others. As I search around for a way to do this it becomes apparent that even a Synology app designed to do this (DS File) (Mounts a NFS share on Synology box and allows file transfers) isn't able to allow others to see it's mounted share.
Before I mounted a Synology folder using Synology DS File, I created a tmp folder and cd there and then did a mount > mountbefore.log. After the mount of the share while still running DS File pointing to my Synology folder, I did a mount > ./mountafter.log. I then did a diff -urN (and just a diff) ./mountbefore.log ./mountafter.log that showed no differences. That seems telling.
Also, I did the same with /proc/mounts /proc/mountinfo /proc/mountstatus before and after, and nothing showed up as different. Also I did a ps | grep DS to see whether the ps output gave me any clue as to what local mount point was used, but though I could see the DS process, I couldn't see it's mountpoints.
I'm pretty sure there's an SELINUX (or many) entrie(s) for the mounted share that prevent the usual visibility. I recall reading that "fixing" the /proc exploits was a big priority with the advent of SElinux so I'll look at that angle too. I don't think that the fact that DLNA works is of much use in this problem. It's really a solution to a different and specific problem.
hachamacha said:
To add to that: It doesn't seem like any surprise that just putting an entry in the fstab.qcom doesn't work the same as the others. As I search around for a way to do this it becomes apparent that even a Synology app designed to do this (DS File) (Mounts a NFS share on Synology box and allows file transfers) isn't able to allow others to see it's mounted share.
Before I mounted a Synology folder using Synology DS File, I created a tmp folder and cd there and then did a mount > mountbefore.log. After the mount of the share while still running DS File pointing to my Synology folder, I did a mount > ./mountafter.log. I then did a diff -urN (and just a diff) ./mountbefore.log ./mountafter.log that showed no differences. That seems telling.
Also, I did the same with /proc/mounts /proc/mountinfo /proc/mountstatus before and after, and nothing showed up as different. Also I did a ps | grep DS to see whether the ps output gave me any clue as to what local mount point was used, but though I could see the DS process, I couldn't see it's mountpoints.
I'm pretty sure there's an SELINUX (or many) entrie(s) for the mounted share that prevent the usual visibility. I recall reading that "fixing" the /proc exploits was a big priority with the advent of SElinux so I'll look at that angle too. I don't think that the fact that DLNA works is of much use in this problem. It's really a solution to a different and specific problem.
Click to expand...
Click to collapse
Hmm I just found this: https://forum.xda-developers.com/showthread.php?t=2106480 and will have a closer look into it later, I'm running out of time right now and have to leave.
But what I've read so far looks similar to the problem we are facing right now. Maye thats the way to go. I'll try it, as I said, later.
At this point i don't even care if it's smb or nfs as long as i can mount my stuff into the filesystem.
One other thing I noticed but haven't messed around with yet is that I was looking at the various mount commands for different implementations (not that any will just work like 2 versions ago), and noticed that only /system/xbin/mount is a soft link to /system/xbin/busybox (standard busybox link to allow using it various look-alike-to-linux commands.
But then I realized that /system/bin/mount is also there, also a soft-link to /system/bin/toybox (another busybox clone) and am wondering if it behaves any differently. Might be worth a look (but I doubt it). /system/bin/toybox is at least a different version of busybox and not linked to it.
Just looked at your last reply and realized that unfortunately the two links of interest are at the now nonexistant domain cyanogenmod.org. Maybe the diffs are worthwhile. Gotta work, Later.
hachamacha said:
One other thing I noticed but haven't messed around with yet is that I was looking at the various mount commands for different implementations (not that any will just work like 2 versions ago), and noticed that only /system/xbin/mount is a soft link to /system/xbin/busybox (standard busybox link to allow using it various look-alike-to-linux commands.
But then I realized that /system/bin/mount is also there, also a soft-link to /system/bin/toybox (another busybox clone) and am wondering if it behaves any differently. Might be worth a look (but I doubt it). /system/bin/toybox is at least a different version of busybox and not linked to it.
Just looked at your last reply and realized that unfortunately the two links of interest are at the now nonexistant domain cyanogenmod.org. Maybe the diffs are worthwhile. Gotta work, Later.
Click to expand...
Click to collapse
I'm back home already a little late but enaugh time for more researches.
This link:
https://github.com/mkasick/android_...mmit/b358bf82c079a577f011c167da8b65faef73a06e
is working. And really worth reading it and explains the visibility problem.
mkasick said:
Android 4.2 breaks Dalvik-apps that mount file systems to be shared with other apps. This includes CifsManager, Mount Manager, essentially anything that mounts cifs shares, FUSE file sytems, etc. The symptom is that the mounted contents appear fine to app that peforms the mount operation (assuming the app itself provides the ability to browse the contents), but every other app only sees an empty directory at the mount point.
It turns out that this problem is a side-effect of the approach used to implement multi-user storage in Android 4.2. I've explained the problem in detail in the commit log for a Gerrit issue we're reviewing for CyanogenMod 10.1 that addresses the problem:
Ideally, any 4.2 ROM can provide support for CifsManager by applying a change to Dalvik, and a second change to the boot ramdisk's init.rc:
Dalvik change: Zygote: Restrict slave mountspace so Dalvik apps can mount system-wide volumes
init.rc change: init.rc: Create /storage mountpoint so Dalvik can mark as slave in zygotes
Alternatively, ROMs that can't/prefer not to use a source-build Dalvik (libdvm), I've also provided a kernel patch that implements a similar workaround within the kernel. It also requires the above init.rc modification:
Kernel commit: Restrict slave mountspace so Dalvik apps can mount system-wide volumes
init.rc change: init.rc: Create /storage mountpoint so Dalvik can mark as slave in zygotes
With either of the above two fixes, CifsManager et al. should work when using a mountpoint outside /storage (and /mnt/shell/emulated). I'd recommend using "/mnt/cifs" or something similar. Attempting to mount inside /storage retains the previous behavior where the mount can not be seen by other apps.
Note that ROMs only need one of the above two fixes, although they are compatible with each other and will function correctly if both are present. The Dalvik approach is preferred over the kernel workaround where feasible. Attached are the three patches referenced in the issues/commits.
Attachments: (sry for editing the quote)
dalvik.diff: https://forum.xda-developers.com/attachment.php?attachmentid=1656555&d=1358548352
nitrc.diff: https://forum.xda-developers.com/attachment.php?attachmentid=1656556&d=1358548352
kernel.diff: https://forum.xda-developers.com/attachment.php?attachmentid=1656557&d=1358548352
Click to expand...
Click to collapse
Look at the attached files, the answer is in there, but i don't know what to do with it
Thanks. I've got to do some work from home before I go back to messing around with this. I read the zygote/Dalvik page. I'm sure I've read it before but had the impression that the information was obsolete, but maybe not!
I guess there a couple of problems for me with that information.
1) It is pretty old (2013 or so): I can't even find the pertinent file in my source tree anymore.
2) dalvik has undergone a lot of revisions since this was tried. I'm not at all sure the change looks very different from the way tmpfs is /storage mounted already.
(but I could try this one. I figure in real time, if it'd let me remount it with the changes, the worst it could do is lock me up).
3) the kernel I'm using doesn't appear to have that line in it, besides, I'd have to rebuild the kernel.
I guess I'd much rather find a userspace way around this problem if possible. I seems almost unthinkable that there'd be no other way (via the mount cmd for example and careful choice of mount folder) to mount something that could be seen by any process. I'll keep trying from that angle.
Regrouping: I was ssh'd into the synology server poking around when I noticed that the running nfs daemon (as shown by ps -ef | grep nfs) was nfs4. I didn't see that Android supported that so I decided to just move the entire exercise of mount.nfs4 over to Ubuntu 16.04 box.
I made sure I had all the NFS stuff installed and pretty much did these statement:
mount -t nfs -o ro x.x.x.x/share /mnt/remote # failed with bad argument
mount -t nfs4 -o ro x.x.x.x/share /mnt/remote # failed with bad argument
mount.nfs4 x.x.x.x/share /mnt/remote #failed with bad argument.
At that point I decided that android didn't matter if I couldn't figure out how to mount NFS shares from linux.
I then tried mount -t cifs -o ro,user=me,pass=pwd //server/share /mnt/remote
It mounted up immediately. I need to look up some working examples of someone using mount.nfs / 4 from anywhere to synology. While I'm sure I've used it before, I'm also pretty sure I don't recall how exactly the setup and syntax works.