Showing posts with label mounting. Show all posts
Showing posts with label mounting. Show all posts

Saturday, 30 July 2016

Help with mounting windows shared drive for use by any app

Hi,
The goal is make my shared windows folder available on FireTV to be accessed by media applications. First attempt is for music

This is AFTV 1. It is rooted and has busybox. It has TWRP and 5.2.1.0_r1 pre-rooted stock image. I searched around and found couple of useful threads.

Run script on FireTV boot
mount cifs share from nas

Based on the first thread, I have created my script that I plan to run in /system/etc/install-recovery.sh

My current problem is that the script can be only run after I su (become root)
The script runs successfully, but the files are only available on adb shell or putty when I am root. They are not available to regular user or any apps.

Code:


#!/system/bin/sh

sleep 15
mkdir /mnt/obb/music
chmod 777 /mnt/obb/music

sleep 20
busybox mount -o noperm,unc=\\192.168.1.56\music,username=xx,password=xx -t cifs none /mnt/obb/music


Second problem is that when I restart firetv, this does not seem to have done anything. But I have the fix the first problem first. I need any of the apps to be able to access the mounted shared drive.

Thanks

ETA: post #10 in thread [Q] mounting a windows shared folder to android fs seems to be the same problem, but I did not understand the suggested solution

Thursday, 30 June 2016

Link2SD: mounting /dev/block/vold/179:66 on /data/sdext2 failed: No such file or ....



Hallo, I read a lot, but can't find any solution so far.

I have a rooted LG G3 D855 with android 6.0.1 Resurrection Remix 5.7

The problem is link2sd don't recognize the ext4 partion on the SD card and as soon I reboot, Marshmallow format partion as portable storage, and I need to start over again creating a second ext4 partion.

Started with MiniTool Partition to create two partions (FAT32 and ext4) on my SD card. Installed link2sd + and started the app, but the error: "mounting /dev/block/vold/179:66 on /data/sdext2 failed: No such file or directory"

Than I found this blog.sam.liddicott.com/2016/02/ and could do as told with ADB to create a mixed volume of 75%, but the other 25% was not approachable for link2SD, and still got the same error.

Than I found blog.icefusion.co.uk/cyanogenmod-and-link2sd Started to test init.d which was working, but than tried to create the mentioned script and that is a little over my hat, because I'm bit noob about writing Linux. So I just copy/paste but got an error. So that didn't work out. I don't how to create a script to put in etc/init.d, if so this solve the problem.

In the meanwhile I try to find an easier solution to this problem, from which I don't think I'm the only one.

May here someone to know to solve this??? I will be greatfull. Thanx