Help Mounting system.img.ext4 in Ubuntu

tyiphius

Senior Member
Sep 8, 2011
115
82
0
I have a Kit kat system.img.ext4 file that I want to mount in linux
I tried the following on my windows computer but had no luck.
http://rwilco12.com/Files/Devices/Samsung%20Galaxy%20S3%20%28SPH-L710%29/Tutorials/SPHL710-ExtractSystemImgExt4.php

Never got sgs2toext4to read my file but it would work with one from a jellybean file, guessing it wont work with kit kat. Still wanting to mount the file I looked into mounting in via linux. So I'm running Ubuntu via VMware and I'm following the instructions below but cant seem to get anything working.
http://forum.xda-developers.com/xperia-j-e/general/noob-friendly-how-to-extract-ext4-file-t2268538

Can anyone guide me on how to mount a kit kat system.img.ext4 in linux?
Thank you!
 

shimp208

Recognized Contributor
Jan 25, 2011
2,624
3,036
0
Boston
I have a Kit kat system.img.ext4 file that I want to mount in linux
I tried the following on my windows computer but had no luck.
http://rwilco12.com/Files/Devices/Samsung%20Galaxy%20S3%20%28SPH-L710%29/Tutorials/SPHL710-ExtractSystemImgExt4.php

Never got sgs2toext4to read my file but it would work with one from a jellybean file, guessing it wont work with kit kat. Still wanting to mount the file I looked into mounting in via linux. So I'm running Ubuntu via VMware and I'm following the instructions below but cant seem to get anything working.
http://forum.xda-developers.com/xperia-j-e/general/noob-friendly-how-to-extract-ext4-file-t2268538

Can anyone guide me on how to mount a kit kat system.img.ext4 in linux?
Thank you!
For Windows since you mentioned you had a Windows computer I would recommend taking a look at this utility worked fin for unpacking a Nexus 10 KitKat system image a little while ago. Let me know if you still have questions.
 

tyiphius

Senior Member
Sep 8, 2011
115
82
0
For Windows since you mentioned you had a Windows computer I would recommend taking a look at this utility worked fin for unpacking a Nexus 10 KitKat system image a little while ago. Let me know if you still have questions.
"Unknown File Format" when i try that one. The file is from an At&t Note 4 with has no root and has a locked bootloader. I'm guessing that has a big role to play in all these errors I'm getting :confused:

 

shimp208

Recognized Contributor
Jan 25, 2011
2,624
3,036
0
Boston
"Unknown File Format" when i try that one. The file is from an At&t Note 4 with has no root and has a locked bootloader. I'm guessing that has a big role to play in all these errors I'm getting :confused:

Even though it has a locked bootloader that still shouldn't prevent you from de-compiling the image, flashing the changes image is likely where you'll run into some problems. This being said I would recommend taking a look at this guide here, and instead of using the JB branch to compile the binary use the latest KitKat branch (Since Android 5.0 hasn't been fully released into AOSP yet) instead.
 

tyiphius

Senior Member
Sep 8, 2011
115
82
0
Even though it has a locked bootloader that still shouldn't prevent you from de-compiling the image, flashing the changes image is likely where you'll run into some problems. This being said I would recommend taking a look at this guide here, and instead of using the JB branch to compile the binary use the latest KitKat branch (Since Android 5.0 hasn't been fully released into AOSP yet) instead.
I ran into some hiccups but got past those but now I'm stuck. I'm not that great with linux but in the first link you sent me when i got to the step 3 (highlighted part), I noticed that in the kit kat source (right) vs the JB 4.1.1_r1 source (left) that there is no "img2simg.c" in the kit kat one. This is where I'm stuck. Do you know what I should do next?