I wrote the following shell script:
alias mount='/system/xbin/busybox mount' set -e set -x MNT=sda1 function mkdir_ext() { if [ ! -d $1 ]; then mkdir -p $1 fi chown $2 $1 chmod $3 $1 } mkdir_ext /storage/emulated/$MNT root:media_rw 777 mount -t ext4 /dev/block/$MNT /storage/emulated/$MNT mkdir_ext /data/media/$MNT root:media_rw 777 sdcard -u 1023 -g 1023 /storage/emulated/$MNT /data/media/$MNT
After executing the above commands, mount the reports:
root@NEO-X8 :/sdcard
I work through ssh remotely using the ssh / sftp root daemon , and during login as root I can list the files in /storage/emulated/sda1 .
From what I understand, android is not case sensitive with respect to file systems by design, so the file system should be fused.
The problem is that I see an empty directory in /data/media/sda1 . Even stranger is that if I go to /storage/emulated/sda1 from a root device using the bash shell of X , I also see an empty directory.
I tried other other applications and I tried using sdcard_rw instead of media_rw (with uid / gid 1015 instead of 1023), nothing works.
How to make ext4 work for all Minix NEO X8-H based applications? Using anything other than ext4 is not an option; a 4TB drive already contains important data. As a note, sda1 is just a small 1 GB partition.
source share