[Q] How to get files from system.img.ext4 file of i9001? - Galaxy S I9000 Q&A, Help & Troubleshooting

I download the rom of i9001 and I want o modify the rom(make a zip file and install it from recovery). Iside the tar.md5 file, there is a system.img.ext4 file. Based on my expeience, this is the file where the system file located.
So anyone know how to open/extract the system.img.ext4 file and get its content?

ext2explore
http://sourceforge.net/projects/ext2read/files/Ext2Read%20version%202.1/ext2explore-2.1.65.zip/download

Thanks, I will try it.

ok, I will answer this question myself. With ext2explorer, you can open the .img.ext4 file, but it's not convenient to extract those files.
Later I mount the .img.ext4 file in Linux and then get all the files easily.

quest221 said:
ok, I will answer this question myself. With ext2explorer, you can open the .img.ext4 file, but it's not convenient to extract those files.
Later I mount the .img.ext4 file in Linux and then get all the files easily.
Click to expand...
Click to collapse
please show me how to unpack system.img.ext4 with ubuntu linux
may i have your yahoo messenger
tks u verry much:good:
my yahoo phuccnc9

Download DiskInternals Linux Reader, I always use it

its kinda too late but here's what they need for future references;
http://forum.xda-developers.com/showthread.php?t=2268538

Not able to download. Any alternate location

Related

[Q] How do I extract files from ROM?

Is it possible to extract an APK from a ROM File?
If i take the JM5 ROM, I can unRar it and then I can unTar the md5 file that is the ROM - but from there I just get a bunch of system files that I assume are images of partitions. The big one is the factoryfs.rfs - is there a way to pull an apk out of here, or do i have to install on a device first and save the APKs i want?
Thanks.
alphadog00 said:
Is it possible to extract an APK from a ROM File?
If i take the JM5 ROM, I can unRar it and then I can unTar the md5 file that is the ROM - but from there I just get a bunch of system files that I assume are images of partitions. The big one is the factoryfs.rfs - is there a way to pull an apk out of here, or do i have to install on a device first and save the APKs i want?
Thanks.
Click to expand...
Click to collapse
Just tell us what application your looking for(remember to follow the forum rules before replying )

Why do i get a tar file instead of a img file

Why do i get a .tar file instead of a .img file when unzipping tar.gz files
I've tried winraw and bitzipper run as admin or not
The files I'm trying to unzip are these
http://forum.xda-developers.com/showthread.php?t=922870
I've been browsing these forums all day trying to find someone thats had the same problem, guess I'm out of my league here
Thanks in advance
*.tar.gz files are. Zipped (the .gz) and Tar'd so it's a 2 step process.
Basically TAR is a grouping of the files and GZ is the compression.
Check out 7-zip:
http://www.7-zip.org/
Un-Gzip the file you have a *.tar file. Un-Tar the file and you have all the files.
YES! Thanks
I had tried to winrar and bitzipper them twice but the file was useless
But with 7-zip Ive got a img. file, seems like all the instructions I've been following said uncompress but I guess the assume that you know to do both
Now I can get on with my next nightmare getting this NC back to stock
Thank you

Convert Heimdall to Odin

IS there a way to convert a Heimdall package to ODIN package?
Anyone please. I haven't found anything on Google
If you have 7zip, I believe so.
Try this - take a Heimdall one-click and unzip it to a directory. 7zip should be able to unzip the .jar file.
Once it's unzipped, go to /com/AdamOutler/HeimdallOneClick/resources/ROMPackage. You'll see a HeimdallPackage.tar.gz file. Unzip that to a directory.
Then, open that directory and unzip the HeimdallPackage.tar file to a directory.
Once you've done that, you should have a directory with the files you're looking for. In my case, I have a .pit file, a dbata.rfs file, a factoryfs.rfs file, a cache.rfs file, and a zImage file.
I think Odin will be able to handle those.
Can we do Odin to Heimdall?
jmtheiss said:
If you have 7zip, I believe so.
Try this - take a Heimdall one-click and unzip it to a directory. 7zip should be able to unzip the .jar file.
Once it's unzipped, go to /com/AdamOutler/HeimdallOneClick/resources/ROMPackage. You'll see a HeimdallPackage.tar.gz file. Unzip that to a directory.
Then, open that directory and unzip the HeimdallPackage.tar file to a directory.
Once you've done that, you should have a directory with the files you're looking for. In my case, I have a .pit file, a dbata.rfs file, a factoryfs.rfs file, a cache.rfs file, and a zImage file.
I think Odin will be able to handle those.
Click to expand...
Click to collapse
I unzipped the Apex 12.4 Heimdall package using WinRAR, and only thing I see in there that screams ROM at me is a apex.system.ext4 with a size of around 280MB. The other stuff are kernels, and boot stuff.
To make an Odin flashable file, you will need a Linux machine or Cygwin for Windows machines. Do a Google search for "How to make an Odin flashable rom" by Darkyy
mrhaley30705 said:
To make an Odin flashable file, you will need a Linux machine or Cygwin for Windows machines. Do a Google search for "How to make an Odin flashable rom" by Darkyy
Click to expand...
Click to collapse
You need Cygwin to pull the files from phone not to make the ODIN .tar. Try to open that .ext4 file with 7 zip see if you can see other files in it. But That Apex file is off so you're going to have to do it with Cygwin or a linux OS (VM or similar would work) OR you can get Heimdall to work lol. Seems alot easier to get Heimdall to work than go through the trouble, Unless its for learning purpose.
prbassplayer said:
You need Cygwin to pull the files from phone not to make the ODIN .tar. Try to open that .ext4 file with 7 zip see if you can see other files in it. But That Apex file is off so you're going to have to do it with Cygwin or a linux OS (VM or similar would work) OR you can get Heimdall to work lol. Seems alot easier to get Heimdall to work than go through the trouble, Unless its for learning purpose.
Click to expand...
Click to collapse
Don't know about using cygwin to pull files from phone. I always use adb. Then i use cygwin to make my tar.md5 file.
It is much easier to make a flash package for Heimdall than Odin, in my opinion.
Did you find that thread by darkyy?
mrhaley30705 said:
Don't know about using cygwin to pull files from phone. I always use adb. Then i use cygwin to make my tar.md5 file.
It is much easier to make a flash package for Heimdall than Odin, in my opinion.
Did you find that thread by darkyy?
Click to expand...
Click to collapse
Now you are right. But I've been able to create .tar with a zipping program. I would need my pc to tell you exactly the method. But yes I learned with darkky' post.
Sent from my ICS powered Captivate using Tapatalk
prbassplayer said:
You need Cygwin to pull the files from phone not to make the ODIN .tar. Try to open that .ext4 file with 7 zip see if you can see other files in it. But That Apex file is off so you're going to have to do it with Cygwin or a linux OS (VM or similar would work) OR you can get Heimdall to work lol. Seems alot easier to get Heimdall to work than go through the trouble, Unless its for learning purpose.
Click to expand...
Click to collapse
Using 7zip to unzip the .ext4 file, I see the following:
assets folder
META-INF folder
res folder
AndroidManifest.xml
resources.arsc
Looks like I'll have to Heimdall...

Extract system.img and NON-HLOS.bin

I tried using 7zip, extractnow and some random program I found on google called ext4_unpacker.exe. I want to extract the system and dig through and edit the files and the same thing with the modem.
I get cannot open as archive with 7zip, "unknown file format" with ext4 unpacker and it just won't open with extractnow.
thanks for the help in advance. and apologies in advance I know this is super noobish but the programs just won't work :crying:
Use adb to pull the files then use a hex editor?
nhizzat said:
Use adb to pull the files then use a hex editor?
Click to expand...
Click to collapse
I'm assuming you mean pull them from the phone? Also I still want to be able to extract the files so I can examine older firmware versions, being that I'm on 4.4.2 stock.
So my question still remains, how can I extract the files?

magisk manager gives me a file named magisk_patched.img, but I need a tar file instea

I need a tar file because ODIN doesn't accept img files. Magisk used to be able to give a tar file, what happened?
As long as I'm unable to figure out how to make this work, rooting my device will be impossible. I don't want to give up now, not after getting through so many headaches...
Did you feed it a tar file? If you do it should give a tar file as output.
Didgeridoohan said:
Did you feed it a tar file? If you do it should give a tar file as output.
Click to expand...
Click to collapse
That's the problem, I only have a .img file, and have no idea how to turn it into a .tar file, or how to get one from my firmware. There are plenty of guides around on how to convert .img into .tar, but I don't know whether they work for this purpose. I would appreciate some guidance here.

Categories

Resources