www.chinaphonearena.com

Full Version: Mount & modify system.img (UBUNTU)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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 :

[Image: n19l3b.jpg]

Before "sudo chown mylogin:mylogin sys" command :

[Image: jfvtc2.jpg]

After "sudo chown mylogin:mylogin sys" command :

[Image: 6suk8z.jpg]

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

[Image: 117wqh1.jpg]

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

[Image: ly5h3.jpg]

That's all ... for now Big Grin
Awesome. Thanks for your work Cleo.
UPDATE :

NEW sudo chown terminal command. For further details please visit the next thread :

[Only registered and activated users can see links Click here to register]