United States
FAST DELIVERY ∙ EXPERT TECH SUPPORT
UK STOCK ∙ 2 YEAR WARRANTY
Zidoo Z9X Pro
Ultra-HD 4K Dolby Vision Home Theatre Media Player.
  INCLUDES EXPRESS 2-4 DAY DELIVERY 

Author Topic: [PATCH] Mount storage by UUID / Label  (Read 138515 times)

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4623
    • View Profile
[PATCH] Mount storage by UUID / Label
« on: November 30, 2016, 02:11:37 PM »
 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 History

v1.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
« Last Edit: April 16, 2018, 09:05:20 AM by futeko.com »

afss

  • Senior Member
  • ***
  • Posts: 130
    • View Profile
Re: [PATCH] Mount storage by UUID / Label
« Reply #1 on: November 30, 2016, 04:56:29 PM »
Porting my question over here - can this be evolved to bring back the DVD/BD-ROM support functionality we had with android 5 ?

Thank you !

qqq1971

  • Full Member
  • **
  • Posts: 52
    • View Profile
Re: [PATCH] Mount storage by UUID / Label
« Reply #2 on: December 01, 2016, 07:04:09 AM »
Porting my question over here - can this be evolved to bring back the DVD/BD-ROM support functionality we had with android 5 ?

Thank you !

I'm sure with little script correction. But i don't have external rom drive to check it.

General idia is include into list of discs  (sd*) list of rom drives - sr* and just mount it like discs. Additionaly check that sr* has UDF fs.

Code: [Select]
~> sudo blkid | grep sr
root's password:
/dev/sr0: UUID="48CB99C400A2640E" LABEL="BERLIOZ" TYPE="udf"

Box supports udf:
Code: [Select]
~> adb shell cat /proc/filesystems | grep udf
        udf
« Last Edit: December 01, 2016, 07:07:48 AM by qqq1971 »

afss

  • Senior Member
  • ***
  • Posts: 130
    • View Profile
Re: [PATCH] Mount storage by UUID / Label
« Reply #3 on: December 01, 2016, 08:57:08 AM »
Thank you very much, will give it a try !

oldfriend

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [PATCH] Mount storage by UUID / Label
« Reply #4 on: December 02, 2016, 04:10:58 AM »
Porting my question over here - can this be evolved to bring back the DVD/BD-ROM support functionality we had with android 5 ?

Thank you !

I'm sure with little script correction. But i don't have external rom drive to check it.

General idia is include into list of discs  (sd*) list of rom drives - sr* and just mount it like discs. Additionaly check that sr* has UDF fs.

Code: [Select]
~> sudo blkid | grep sr
root's password:
/dev/sr0: UUID="48CB99C400A2640E" LABEL="BERLIOZ" TYPE="udf"

Box supports udf:
Code: [Select]
~> adb shell cat /proc/filesystems | grep udf
        udf

Hi frd
I'm not a coder. can you build that script become Run_me.bat ?

Thanks vm

oxanna

  • Guest
Re: [PATCH] Mount storage by UUID / Label
« Reply #5 on: December 02, 2016, 05:51:24 AM »
I have not understanding how to solve the problem of mounting discs with the andrioid version 7
the procedure will run throughout the player or you have to use a PC.
how do I communicate HIMEDIA q5 Pro with a PC and use the command prompt ???

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4623
    • View Profile
Re: [PATCH] Mount storage by UUID / Label
« Reply #6 on: December 02, 2016, 08:42:50 AM »
I have not understanding how to solve the problem of mounting discs with the andrioid version 7
the procedure will run throughout the player or you have to use a PC.
how do I communicate HIMEDIA q5 Pro with a PC and use the command prompt ???

Both the Q5 Pro and a Windows PC need to be on the same network.

You access Command Prompt on the Windows PC, navigate to the directory where the script is located and type 'RUN_ME'.

The script will ask you to input the IP address of the Q5 Pro. You can find this by, on Q5 Pro, going Home - Settings. IP address is shown with the Network icon.

pcristi

  • Senior Member
  • ***
  • Posts: 1334
    • View Profile
Re: [PATCH] Mount storage by UUID / Label
« Reply #7 on: December 02, 2016, 09:55:45 AM »
Update:

v1.0.5
- bug fixed
- add /sdcard/media_rw/cd-rom/srXX
- full support Android 5.1.1 and HMD 2.0.0 Android 7.0 f/w
(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
Big THANKS to qqq1971
- rewrite scripts to support safe hotplug

Download:
http://www.mediafire.com/?0u9h678yy61c7h1

Note: Clean Task can remove all apk from USB device.
« Last Edit: December 12, 2016, 06:19:22 PM by pcristi »

futeko.com

  • Administrator
  • Senior Member
  • *****
  • Posts: 4623
    • View Profile
Re: [PATCH] Mount storage by UUID / Label
« Reply #8 on: December 02, 2016, 10:06:28 AM »
Excelente! Opening post updated with latest version.

oldfriend

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [PATCH] Mount storage by UUID / Label
« Reply #9 on: December 02, 2016, 10:07:16 AM »
Update:

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
Big THANKS to qqq1971
- rewrite scripts to support safe hotplug

Download:
http://www.mediafire.com/?0u9h678yy61c7h1

Note: Clean Task can remove all apk from USB device.

great, many thanks bro.

afss

  • Senior Member
  • ***
  • Posts: 130
    • View Profile
Re: [PATCH] Mount storage by UUID / Label
« Reply #10 on: December 02, 2016, 11:11:02 AM »
Update:

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
Big THANKS to qqq1971
- rewrite scripts to support safe hotplug

Download:
http://www.mediafire.com/?0u9h678yy61c7h1

Note: Clean Task can remove all apk from USB device.

Much appreciated ! you are the best !

oldfriend

  • Newbie
  • *
  • Posts: 14
    • View Profile
Re: [PATCH] Mount storage by UUID / Label
« Reply #11 on: December 02, 2016, 05:35:31 PM »
Excelente! Opening post updated with latest version.

I had test, it work perfect. Now Q10 pro can read Bluray disk over usb port.

Thks all frd.

oxanna

  • Guest
Re: [PATCH] Mount storage by UUID / Label
« Reply #12 on: December 02, 2016, 09:54:13 PM »
I have not understanding how to solve the problem of mounting discs with the andrioid version 7
the procedure will run throughout the player or you have to use a PC.
how do I communicate HIMEDIA q5 Pro with a PC and use the command prompt ???

Both the Q5 Pro and a Windows PC need to be on the same network.

You access Command Prompt on the Windows PC, navigate to the directory where the script is located and type 'RUN_ME'.

The script will ask you to input the IP address of the Q5 Pro. You can find this by, on Q5 Pro, going Home - Settings. IP address is shown with the Network icon.
I am very angry . I do not have windows pc
but apple mac pc ...... and also the procedure is the same hard for me.
how can I do???? in the next firmware you can perhaps that the discs are read without making the process RUN_ME.bat ????

pcristi

  • Senior Member
  • ***
  • Posts: 1334
    • View Profile
Re: [PATCH] Mount storage by UUID / Label
« Reply #13 on: December 02, 2016, 10:39:46 PM »
Next official Android 7.0 f/w will support at least UUID mount point --> /mnt/media_rw/<uuid>.

LE: Installing ADB on MAC OS X
http://stackoverflow.com/questions/31374085/installing-adb-on-mac-os-x
source

I am very angry . I do not have windows pc
but apple mac pc ...... and also the procedure is the same hard for me.
how can I do???? in the next firmware you can perhaps that the discs are read without making the process RUN_ME.bat ????
« Last Edit: December 04, 2016, 05:04:25 PM by pcristi »

oxanna

  • Guest
Re: [PATCH] Mount storage by UUID / Label
« Reply #14 on: December 03, 2016, 01:46:46 AM »
Next official Android 7.0 f/w will support at least UUID mount point --> /mnt/media_rw/<uuid>.

I am very angry . I do not have windows pc
but apple mac pc ...... and also the procedure is the same hard for me.
how can I do???? in the next firmware you can perhaps that the discs are read without making the process RUN_ME.bat ????
thank you

 

DELIVERY ∙ PAYMENT ∙ WARRANTY+RETURNS ∙ ABOUT ∙ PRIVACY ∙ FORUM ∙ CONTACT
© SDHDIGITAL LTD 2024