LG G5 script at boot to mount partitions

dahikino

Senior Member
Nov 29, 2007
230
39
58
Hello all !

I try to mount second partition (ext4) on external sd and in fact the script i created after install "universal init.d" app, that is not working !

Code:
#!/system/bin/sh
mount -t ext2 -o rw /dev/block/mmcblk0p2 /data/sdext2
mount -t ext2 -o rw /dev/block/vold179,2 /data/sdext2
In fact, it create the script in /etc/init.d/ but it seems that the script is not execute at boot time, but just after, because i have always Link2sd alerting that partition mmcblk0p2 is not mounted at boot time but after and the system doesn't leave to see the apps installed on this partition !

Like the system mount the general partitions known but not this one and it execute the script after !

I have to do again a soft boot to make link2sd worked !

Can somebody explain me how to make the system mount this partition (mmcblk0p2 and 179,2) at right time, like the others partitions ?
If you have general explaination for marshamallow and/or specific LG G5 on marshamallow !
 
  • Like
Reactions: Pphish20

TheLogicalGamer

Senior Member
Nov 14, 2015
295
122
73
Knoxville
I'm pretty sure that init.d has to be enable in your kernel to work properly. Like I have mine set to disable ota's at boot. I added init.d support with SuperR's Kitchen. You'll need to grab system and boot.img of course add root/anything else you need and build/flash rom. There might be easier ways to add it but idk of any.

Sent from my LG-H830 using XDA Labs
 
  • Like
Reactions: Pphish20
Our Apps
Get our official app!
The best way to access XDA on your phone
Nav Gestures
Add swipe gestures to any Android
One Handed Mode
Eases uses one hand with your phone