linuxdeploy
linuxdeploy copied to clipboard
Configure mounting options
I was trying to start smb server under linux deploy and for that I need a way to set permissions, but when android mounts sd card as far as I understand it's making so that you can write there throug some kind of internal API (or that's what someone say in the internet)
But finnaly I found a way to mount SD card partition in RW mode and define owner and so my suggestion is to add mounting options to settings
How to mount sd card partition in linux deploy:
- unmount sd card from settings
When mounted android already locking at somehow and
mountcommand shows
/dev/block/mmcblk1p1 on /data/local/mnt/mnt/sd type vfat (rw,relatime,uid=60000,gid=60000,fmask=0000,dm
ask=0000,allow_utime=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
- mount it to path you need with uid and gid of user in linux
mount -t vfat /dev/block/mmcblk1p1 /mnt/sd -o uid=60000,gid=60000,dmask=0000,fmask=0000and so you get folder owned by user with full rw access and so another apps or services can use it - mount sd card again in android settings Now you can use rw access for sd card partition inside linux deploy and in your phone
Tested in android 6
Maybee it could be automated within app or someone can figure out a way to mount internal storage same way it would be great