This topic replaces the original (
http://www.futeko.com/newforum/index.php?topic=1398.0) so opening post can always contain latest version and instructions.
Big thanks to qqq1971 and pcristi. It's all their work.
Compatible with all Android 5.1 and Android 7.0 firmwares.
This patch creates persistent mount locations according to UUID and drive label for attached local storage (internal SATA and USB). This location will stay the same on every boot, eliminating the problem where Q5/Q10 Pro can be inconsistent in where it mounts storage (sda1, sda2, sda3 etc) when multiple USB HDDs are attached.
Mount path:
/mnt/media_rw/disk-by-uuid/<uuid>
/mnt/media_rw/disk-by-label/<label>
/sdcard/media_rw/disk-by-uuid/<uuid>
Restrictions* Only first 4 mounted disks will be linked
* For disk with multiple partions only first partition will be linked.
* If disks has identical labels only first disk will be linked.
* Wait about 2 min after boot. Master init script has delay before my script will be run.
* Be careful with deleting files from /sdcard/media_rw/ --> can lose your /video/movie/music/picture/etc...
USE AT YOUR OWN RISK!Version Historyv1.0.6
LATEST STABLE VERSION- bug fix support Android 5.1.1
- preliminary support Android 7.0 f/w
- fix missing ext2, ext3, ext4 partition Android 5.1.1 / 7.0 f/w
v1.0.5
- bug fixed
- add /sdcard/media_rw/cd-rom/srXX
- full support Android 5.1.1 f/w and HMD 2.0.0 Android 7.0
(not more updates, upcoming HMD 2.0.1 f/w will not supported)
v1.0.4
- add DVD/BD-ROM support
- add RUN_ME.bat option not mount/sdcard/media_rw/disk-by-uuid/<uuid>
v1.0.3
- rewrite scripts to support safe hotplug
v1.0.2
- port back to Android 5.1.1
- fix 100 second delay of start running script on first official Android 7.0 f/w
- mount all partition /mnt/media_rw/disk-by-uuid/<uuid>
- mount first partition /mnt/media_rw/disk-by-label/<label> in case of sda5, sdb5,... and not only for sda1,sdb1,...
- additional mount o bind to /sdcard/media_rw/disk-by-uuid/<uuid> --> request for HiMedia DLNA Server
Instructions:- Download Mount_in_fix_point_and_sdcard_media_rw.rar to Windows PC: Download 1.0.6 here: http://www.mediafire.com/?0u9h678yy61c7h1
- Unzip
- Execute RUN_ME.bat at command prompt
- Insert Q5/Q10 Pro IP address
There is also a beta 1.0.7 version which incorporates derkallevombau's work on page 4 of this thread. Download here: https://www.mediafire.com/?kvlryqpyzcac3