Thursday, March 24, 2016

How to mount & modify system.img (Ubuntu)

Hi to all. I am a newbie ... but I try to do all my best:o
Above all please make a directory under /mnt (I called the directory "MyMount1"); "mylogin" represents your login name.
Open the terminal and type the next commands:
-sudo mkdir /mnt/MyMount1
-sudo chown mylogin:mylogin /mnt/MyMount1
-copy system.img & paste it into MyMount1 (computer/mnt/MyMount1)
-cd /
-cd mnt
-cd MyMount1
-mkdir sys/ && sudo mount -t ext4 -o loop system.img sys/
-sudo chown mylogin:mylogin sys (without this command you will not be able to copy and modify anything)
-cd sys
-sudo chown mylogin:mylogin addon.d (without this command you will not be able to copy and modify anything)
-then copy addon.d & paste it into Ubuntu Desktop (now you can make any changes you want)
-then delete addon.d into /mnt/MyMount1/sys
-copy addon.d (into Ubuntu Desktop) & paste it into /mnt/MyMount1/sys
-then apply the same command to every folder inside system.img (/mnt/MyMount1/sys) and repeat the procedure (copy it into Ubuntu Desktop, make changes and paste it into /mnt/MyMount1/sys).
The following screenshot will help you better understand all the steps :



Before "sudo chown mylogin:mylogin sys" command :



After "sudo chown mylogin:mylogin sys" command :



Before "sudo chown mylogin:mylogin addon.d" command :



After "sudo chown mylogin:mylogin addon.d" command :



That's all ... for now :o





XDA:DevDB Information
System.img, ROM for all devices (see above for details)

Contributors
Cleopatra Bianchi
ROM OS Version: 6.0.x Marshmallow

Version Information
Status: Testing

Created 2016-03-24
Last Updated 2016-03-24


via xda-developers http://ift.tt/1SjIu4o

IFTTT

Put the internet to work for you.

Turn off or edit this Recipe

No comments:

Post a Comment