How to mount Nvidia Shield TV shares in Linux? - Shield Android TV Q&A, Help & Troubleshooting

Does anyone here know how to mount the Shield (Pro) network file system in Linux? I know it can be done in Windows, but I'm curious to know if it's possible in Linux as well. This is usually done with a command, like "mount -t cifs -o user=myself //192.168.1.104/shield_dir /mnt/local_shield".
Anyone know if it'll work?

Related

Auto-mounting CIFS Shares

I couldn't find any threads on this, sorry if it's been asked before.
I can mount CIFS/NFS shares fine through CIFS Manager, but it doesn't auto-mount those shares on boot.
I'm trying to find a way to do this on boot. I can't find any sort of fstab from looking around that I could use for this.
I find some information that suggested that you can run script commands on boot if they're located at /data/local/userinit.sh So I attempted to put the mount commands in there.
userinit.sh said:
#!/system/bin/sh
mount -t cifs //192.168.1.147/comics /mnt/cifs/comics -o user="joe"
mount -t cifs "//192.168.1.147/collen's movies" /mnt/cifs/avis -o user="joe"
Click to expand...
Click to collapse
(yeah, I know "collen" is misspelled, but it is on the share)
both those commands *will* mount when I do them from terminal after creating the /mnt/cifs/comics and /mnt/cifs/avis directories... For some reason though, they get removed on each boot... so I suspect that maybe that's preventing the script from mounting them?
Anyone know of a way to do this?
You might try adding:
mkdir -p /mnt/cifs/comics
mkdir -p /mnt/cifs/avis
to the script before the mount commands, to make sure the mount points are there after a reboot. It might also be that the userinit.sh script is not being run as the superuser, which may be necessary for the mount command to work.
Actually, it occurs to me that I'm a bit of an idiot for thinking this would work...
I doubt it would have a wifi connection when any boot scripts get ran... so a CIFS mount shouldn't work at that point anyway.

Use a NAs as a storage for ROMs

Hi.
My nvidia shield is great and run a lot of emulator very well.
On my home I have a NAS with all roms from n64, psx, psp, dreamcast, nds,etc.
I would like to play this game without having to copy it to my sdcard or memory card.
My router is very fast so I think if there was a way to mount my NAS as a standard folder on my Shield it will do the job.
Do you guys know if it is possible to 'mount' a SAMBA or FTP or NFS on my shield as a folder?
In that way I will configure my emulators to find the roms in this mounted folder.
thanks
Hi
I found the solution with NFS Shares!
Now I can play all my roms from SAS without using my sdcard to copy files.
And small roms files(up to 10MB I can play outside home with internet) I am so happy with this solution now
It is like GRID but for emulation.
Follow the tutorial:
0 - You need a rooted android, superSU 1.9.3, busybox.
1- setup a NFS share ( I am using a 4T external HD on my router with OpenWRT firmware with the NFS package).
2- follow this guide:
mad_ady said:
Here's my recepie for mounting NFS shares on my Galaxy S3, running NeatRom 2.8 (Derived from SlimKat 2.8) and with Boeffla-Kernel:
Code:
#remount the root filesystem rw so that we can create the mountpoint
/sbin/busybox mount -o remount,rw /
#create the mountpoint
/sbin/busybox mkdir -p /mnt/nfs/Download
#make the mountpoint world readable so that all user apps can access it
/sbin/busybox chmod 777 /mnt/nfs
/sbin/busybox chmod 777 /mnt/nfs/Download
#remount / as ro
/sbin/busybox mount -o remount,ro /
#mount the actual NFS share (on 192.168.1.1:/overlay/Storage
su --mount-master -c "/system/xbin/mount -o nolock,ro,hard,intr -t nfs 192.168.1.1:/overlay/Storage on /mnt/nfs/Download"
#check that it was mounted
mount | grep /mnt/nfs/Download
Using this method (and having world readable permissions on my shared files) I am able to access the files both with a root explorer (ES File Manager) and with non-root apps (MXPlayer, QuickPic). Without running the chmod on the created folders I am only able to access them with a root explorer.
Let me know if you need additional help, and a million thanks to @brotbuexe for pointing out the mount-master trick (I was actually looking into injecting commands into adb before finding out of this switch).
Click to expand...
Click to collapse
3 - done
ricardo85x said:
Hi
I found the solution with NFS Shares!
Now I can play all my roms from SAS without using my sdcard to copy files.
And small roms files(up to 10MB I can play outside home with internet) I am so happy with this solution now
It is like GRID but for emulation.
Follow the tutorial:
0 - You need a rooted android, superSU 1.9.3, busybox.
1- setup a NFS share ( I am using a 4T external HD on my router with OpenWRT firmware with the NFS package).
2- follow this guide:
3 - done
Click to expand...
Click to collapse
Thanks man i need that, i will try it at my home and let you know if i can do it or i need help thanks again :good:
would this require a kernel that supports CIFS or would it work nativly?, might try it on my Shield TV,
DarkShadowSwE said:
would this require a kernel that supports CIFS or would it work nativly?, might try it on my Shield TV,
Click to expand...
Click to collapse
Hi, have you had any luck on the Shield TV?
I am struggling, I think mountmanager or cifsmanager require the cifs.ko file, those modules.
ahoque1 said:
Hi, have you had any luck on the Shield TV?
I am struggling, I think mountmanager or cifsmanager require the cifs.ko file, those modules.
Click to expand...
Click to collapse
Here is my guide for the shield tv, haven't tested the post above for my note yet tho, xD
https://forums.geforce.com/default/...nt-a-network-share-into-the-filesystem-root-/

Script to mount shares on boot using install-recovery.sh

Currently I'm using this cmd through adb each time I restart my FireTV "mount -o noperm,unc=........."
to mount my shares from my NAS locally on XBMC
I saw a method that uses system/etc/install-recovery.sh
to create a mounting point at boot time but I can't find that file at that location
and Idk if I can just adb push to create it and that's it, it would be called at boot
If someone with more experience could help me on this I would really appreciate it
Just create and chmod 755

Automount CIFS or NFS share with write access?

Hi there,
few days ago I got a NVidia Shield (model 2017) and to use it as media player with Kodi (seems to work perfect), and also for a little bit of retrogaming.
Retro Gaming will be started from Kodi (with Advanced Emulator Launcher) and the games are stored on my NAS.
So at least I need a mount link from the "internal storage" to my NAS.
I tried several methods (cifsmanager, manual mount from console) but I got only read access to my NAS.
If I create a source inside of Kodi to my storage it is working (also with write access), but then I can't use retrogaming with external emulators.
So my idea is to automount a share (doesn't matter if CIFS or NFS) during boot sequence..
Does anyone has an idea how to do this?
My Shield is rooted, so in my mind the basics are there
Thanks for your help
OK, after some more searching I found a solution with cifs
Maybe someone needs it too
- Shield must be rooted
- Install patched cifsmanager -> Link
- Install busybox
On console try
mkdir /data/media/0/mounts
chown 777 /data/media/0/mounts
su --mount-master -c busybox mount -o username=xxx,password=xxx,rw,noperm,iocharset=utf8 -t cifs << CIFS share - example //192.168.99.6/public/shield >> /data/media/0/mounts
For automount at system boot "Rom Toolbox" is perfect, as you can define scripts, which will be executed at boot.
Shadow128 said:
OK, after some more searching I found a solution with cifs
Maybe someone needs it too
- Shield must be rooted
- Install patched cifsmanager -> Link
- Install busybox
On console try
mkdir /data/media/0/mounts
chown 777 /data/media/0/mounts
su --mount-master -c busybox mount -o username=xxx,password=xxx,rw,noperm,iocharset=utf8 -t cifs << CIFS share - example //192.168.99.6/public/shield >> /data/media/0/mounts
For automount at system boot "Rom Toolbox" is perfect, as you can define scripts, which will be executed at boot.
Click to expand...
Click to collapse
Hi, no idea if you're reading this after such a long time.
The patched cifs manager in the link says it needs supersu. My shield is rooted using magisk, with busybox as a magisk module. Do you think this can also work with magisk? I don't want to mess sth. up.
Second question is: Mounting smb shares this way, will they show up as "hdds" on the Shield? I mean can the mounts be used by all other apps?

Mount Windows share

I'm using Raspian on a AML-S905X-CC Raspberrypi look a like. I am have some issues mounting Windows share. If I enter manually the following I can mount Windows.
sudo mount //192.168.4.32/c /home/tom/ShareFile -t cifs -o username=XXX,password=YYY
I would like this to occur on boot or at least be an item I can click on to enable mounting Windows share. I've tried using /etc/fstab but cannot get it to to perform.
Any ideas appreciated.
Thanks.

Categories

Resources