Hi,
First of all: THANK YOU VERY MUCH FOR THIS MASTERPIECE OF
SOFTWARE! Great!!!
I installed SManager and SMExternalSD on external SDcard.
I am using an ASUS MeMO Pad 7 (ME176CX) with Lollipop Android 5.0 (second
update via ASUS support site). In the SDcard slot there is an Samsung 64GB
SDcard. First partition is a FAT 32, second is a ext4. Both are aligned and roughly
of the same size. The second partition is empty (beside the lost+found folder).
With SManager I want to create a script which mounts the second partion under
/Removable/sdext, where sdext is the mount point and has to be created by the
script.
As editor I used the editor in the x-plore filemanager.
The script is:
#!/system/bin/sh
cd /Removable
if [ ! -d sdext ] ; then
mkdir sdext
chown root:sdcard_r sdext
chmod 771 sdext
fi
mount -t ext4 -o noatime,noadirtime /dev/block/mmcblk1p2 sdext
the mode for chmod and the ownership of sdext are the same as for the
folder "MicroSD" on the same level which holds the first partition of the
external sdcard.
Everything works fine…but chown/chmod are ignored or the permissions/onwerships get
resetted somehow. Only with an root-enabled browser like x-plore I can access the
contents of sdext.
How can I make the whole script working?
Thank you very much in advance for any help!
Best regards,
tuxic