Ok, so I know many users are looking forward to create a custom rom. Where are you gonna get the system files from? Sure you can get it from a CWM backup. You can also extract the system files and the respective kernel from PDA.tar. Sure everyone knows it's in there but very few exactly know how to extract them. The system files are in the file "system.img".
So the 1st step is to open the PDA.tar using 7-zip and extract the system.img to a particular folder.
Download sgs2toext4.jar from attachment. It's a .jar file created by dphrozen to convert .img files to .ext4.img. Place that file anywhere in C:\ and then open the Command Prompt. In the command prompt, set the directory to the folder where sgs2toext4.jar is placed. Then type this command :-
Code:
java -jar sgs2toext4.jar
A window will open which is gonna ask you to drop the .img file in it. Simply drag the system.img to the window and the process of converting it to system.ext4.img will start. After the process is complete, you'll find system.ext4.img file in the same folder where your system.img file was placed.
Now, download Linux Reader. Install and then open it. At top left, go to Drives -> Mount Image. A window will open up. Browse to system.ext4.img and select it.
That's it! Now you can view all the system files. Export all of them to a particular folder. After exporting, you'll see an extension .efs.ntfs at the end of each file. Just delete that extension and you're good to go!
Thnx! Reserved
Sent from my GT-S5360 using xda app-developers app
---------- Post added at 03:23 PM ---------- Previous post was at 03:14 PM ----------
So if i extract system files and boot.img from dxlf1 and create it into a flashable zip will it work! On other firmwares?!
Sent from my GT-S5360 using xda app-developers app
humaid.locastic said:
Thnx! Reserved
Sent from my GT-S5360 using xda app-developers app
---------- Post added at 03:23 PM ---------- Previous post was at 03:14 PM ----------
So if i extract system files and boot.img from dxlf1 and create it into a flashable zip will it work! On other firmwares?!
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
Yeah.
**Men have become the tools of their tools**
anasdcool71 said:
Yeah.
**Men have become the tools of their tools**
Click to expand...
Click to collapse
when i type in that java-jar code it gives me this error
C:\ext4>java -jar sgs2toext4.jar
'java' is not recognized as an internal or external command,
operable program or batch file.
humaid.locastic said:
when i type in that java-jar code it gives me this error
C:\ext4>java -jar sgs2toext4.jar
'java' is not recognized as an internal or external command,
operable program or batch file.
Click to expand...
Click to collapse
Install JDK first. Java Development Kit.
**Men have become the tools of their tools**
anasdcool71 said:
Install JDK first. Java Development Kit.
**Men have become the tools of their tools**
Click to expand...
Click to collapse
ahh forget it i downloaded a software winimage! just extracted system.img file from pda and then with the software extracted all the files of system.img!! didnt even get into all that cmd trouble!
humaid.locastic said:
ahh forget it i downloaded a software winimage! just extracted system.img file from pda and then with the software extracted all the files of system.img!! didnt even get into all that cmd trouble!
Click to expand...
Click to collapse
Really? Because i had tried winimage and it didn't work.
**Men have become the tools of their tools**
It worked like s charm for me!! And it was easy as abc
Sent from my GT-S5360 using xda app-developers app
humaid.locastic said:
It worked like s charm for me!! And it was easy as abc
Sent from my GT-S5360 using xda app-developers app
Click to expand...
Click to collapse
any proof? screenshot?
Lol will post a pic tmrrw
Sent from my GT-S5360 using xda app-developers app
I don't think it worked with winimage. System.img is different from other .img files.
**Men have become the tools of their tools**
theoritically, yes. the image file is written on rfs filesystem. sadly, this rfs is different with linux's rfs. samsung developed their own filesytem and use it on their own device. this filesystem is closed one and never used by anyone/anything outside samsung.
It damn worked
Sent from my GT-S5360 using xda app-developers app
then prove it..i've tried using winimage and several apps. it doesn't work. It was on march, when i tried to build my first custom rom.
I'm just curious how did you do that.
What should be in the pic?!
Sent from my GT-S5360 using xda app-developers app
the screen showing you opening the file with winimage.
Here u go....srry for being late!! I was too lazy to reply
Sent from my GT-S5360 using xda app-developers app
Cant you use poweriso? well it is also working.
Hidden.img shows:
hidden.img 32B 0B/s
hidden.img 32B 0B/s
hidden.img 32B 0B/s
hidden.img 32B 0B/s
hidden.img 32B 0B/s
hidden.img 32B 0B/s
hidden.img 32B 0B/s
hidden.img 32B 0B/s
endless....
this use to extrack it to ext4 file system or rfs file system? the file u provide is to convert it to ext4 which is the default sgs2 file system and not sgy file system...
owh i get it u copy this from sgs2 thread right?
edit: adb pull system to sdcard is much easier i think
~ sent using busybox command via Cytherea phone ~
Related
i install cygwin
i type cd /boot
and when i type ./extractboot boot.img the cygwin say something about cpio acces denied, and about perl
Plese help
Sent from my GT-S5660 using Tapatalk 2
Install dsixda kitchen
And use bootimg tools
Sent from my GT-S5660 using xda app-developers app
You'll need Linux or Cygwin
redprotoman said:
You'll need Linux or Cygwin
Click to expand...
Click to collapse
Read the post...
He says : I install cygwin.
Trolol.
You do better watch out with your spam to get 10 postd
Sent from my GT-S5660 using xda app-developers app
now i'm trying with kitchen
i unpack the boot.img
but i cant re-pack it because the kitchen say "working folder not found"
Sent from my GT-S5660 using Tapatalk 2
Msilviu said:
now i'm trying with kitchen
i unpack the boot.img
but i cant re-pack it because the kitchen say "working folder not found"
Sent from my GT-S5660 using Tapatalk 2
Click to expand...
Click to collapse
use any rom.zip likecm7 and place it in .kitchen/origonal update
open cugwin - kitchen
hit 1
select the rom you pasted
hit 0 after ots dome
now hit 20 for boot img tools
press The button to extract the boot.img from the working folder
let it extract
now use the one to extract ANY boot.img
place your boot.img you want to extract into e folder bootimh123532
it gets extracted
now delete the folder BOOT-EXTRACTED and rename bootimg1223456 to BOOT-EXTRACTED
do your changes
then switch back to kitchen, and hit B to build for working folder
your boot.img is at the working folder,, copy it to were you want
thanks a lot my friend
Sent from my GT-S5660 using Tapatalk 2
DO NOT PRESS 1 - IT's a waste of time!!
Just extract your ROM onto the dsixda kitchen (using WinRAR or 7zip)
Rename the folder to WORKING_xxxx
Where xxxx is your ROM name, or you can call it whatever
Make sure inside WORKING_xxxx you have:
META-INF
system
boot.img
Then hit 0 & 20
thanks all i done my work
Sent from my GT-S5660 using Tapatalk 2
I present CWM touch 6.0.1.2!
This is for the T-mobile d2tmo only. (it may work on others but it has not been tested)
External sd card support is present.
to install:
1. Rename the file to cwmtr6.img to make this easier.
2. adb push cwmtr6.img /sdcard/cwmtr6.img * (skip this step if the file is already on your sdcard).
3. adb shell *If not using adb, and you want to use terminal emulator, start at step 5. with the file already on your sdcard.
4. su
5. dd if=/sdcard/cwmtr6.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
6. reboot recovery
DOWNLOAD: http://jenkins.cyanogenmod.com/job/recovery/4244/artifact/archive/recovery.img
http://forum.xda-developers.com/attachment.php?attachmentid=1286722&stc=1&d=1346108680
https://www.dropbox.com/s/k9tjbhtz79y95x8/cwmtr6.img
Odin Tar (thanks to cybernook): http://forum.xda-developers.com/attachment.php?attachmentid=1287723&d=1346158787
THIS BUILD HAS ONLY BEEN COMPILED BY ME USING CLOCKWORKMODS RECOVERY BUILDER!!! I DID NOT MAKE IT!
I present CWM non-touch 6.0.1.2!
NOTE: This one is untested by me. please report back.
This is for the T-mobile d2tmo only. (it may work on others but it has not been tested)
External sd card support is present.
to install:
1. Rename the file to cwm6.img to make this easier.
2. adb push cwm6.img /sdcard/cwm6.img * (skip this step if the file is already on your sdcard).
3. adb shell *If not using adb, and you want to use terminal emulator, start at step 5. with the file already on your sdcard.
4. su
5. dd if=/sdcard/cwm6.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
6. reboot recovery
DOWNLOAD: http://forum.xda-developers.com/attachment.php?attachmentid=1286734&stc=1&d=1346109454
http://jenkins.cyanogenmod.com/job/recovery/4251/artifact/archive/recovery.img
https://www.dropbox.com/s/biy0juwx87ank78/cwm6.img
THIS BUILD HAS ONLY BEEN COMPILED BY ME USING CLOCKWORKMODS RECOVERY BUILDER!!! I DID NOT MAKE IT!
thank you
I downloaded the time placed on sd straight from phone then I highlighted the text from step 5 and pasted into my terminal emulator then reboot recovery and voila . Works like a charm! Thank you
Hmmmmm
Sent from my SGH-T999 using xda app-developers app
Do u get both exsd an sd support?
Sent from my SGH-T999 using xda premium
spodie said:
Do u get both exsd an sd support?
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
I was able to access both from the recovery menu.
Worked like a charm.
Sent from my SGH-T999 using xda premium
thanks great work.
Very nice -- worked like a charm! Haven't tried backing up to external, but from the looks of it, everything is working correctly.
Here's a flashable 6.0.1.2 touch version if anyone wants it.
motoman234 said:
Here's a flashable 6.0.1.2 touch version if anyone wants it.
Click to expand...
Click to collapse
Would you mind if I put that in the OP?
Sent from my SGH-T999 using Tapatalk 2
Here is an ODIN flash-able of the Touch version:
cybrnook said:
Here is an ODIN flash-able of the Touch version:
Click to expand...
Click to collapse
Can I also add that to the OP?
Sent from my SGH-T999 using Tapatalk 2
Works LIke a Champ
jellydroid13 said:
I present CWM touch 6.0.1.2!
This is for the T-mobile d2tmo only. (it may work on others but it has not been tested)
External sd card support is present.
to install:
1. Rename the file to cwmtr6.img to make this easier.
2. adb push cwmtr6.img /sdcard/cwmtr6.img * (skip this step if the file is already on your sdcard).
3. adb shell *If not using adb, and you want to use terminal emulator, start at step 5. with the file already on your sdcard.
4. su
5. dd if=/sdcard/cwmtr6.img of=/dev/block/platform/msm_sdcc.1/by-name/recovery
6. reboot recovery
DOWNLOAD: http://jenkins.cyanogenmod.com/job/recovery/4244/artifact/archive/recovery.img
http://forum.xda-developers.com/attachment.php?attachmentid=1286722&stc=1&d=1346108680
https://www.dropbox.com/s/k9tjbhtz79y95x8/cwmtr6.img
THIS BUILD HAS ONLY BEEN COMPILED BY ME USING CLOCKWORKMODS RECOVERY BUILDER!!! I DID NOT MAKE IT!
Click to expand...
Click to collapse
I followed your directions and everything works perfectly!!!
Touch CWM is so much nicer and easier on the volume button
Thank you
jellydroid13 said:
Can I also add that to the OP?
Sent from my SGH-T999 using Tapatalk 2
Click to expand...
Click to collapse
Knock yourself out
cybrnook said:
Knock yourself out
Click to expand...
Click to collapse
dude...your clip image in your sig is f*cking hilarious! I crack up whenever I see it.....
The sh*t people come up with.... :laugh:
So can someone give some background on this update? I did a backup to my extSD card and it doesnt backup the applications. I also see a 'blobs' folder when I look at the backup folder in root explorer.
Whats the difference between .dup and .tar in the advance backup options. Any info would be appreciated.... thanks!
So after doing some digging around, I found out a bunch about this new version of CWMR/CWMTR.
First,
You may notice a 'blobs' folder when you do a backup. Don't panic, this is now part of the backup process.
Second,
You may find that your backups are completed reasonably faster after the initial backup and your backup folder for that particular backup is also significantly smaller as in under 100mb smaller when it used to be close or even over 1gig.
Touch Recovery does not make a "full backup" anymore. It only backs up what has changed since a previous backup, and keeps track of the changes in a clockworkmod/backup/blobs folder. This is pretty cool because its designed to save on space and speed up the backup process. So if you look at your 'blobs' folder, its size is going to be HUGE. Thats where all the files that once made up your HUGE zip backup are located.
Hopefully you guys find this info a little more helpful....because I had a ton of questions after seeing how this new version created backups, etc.
cybrnook said:
Here is an ODIN flash-able of the Touch version:
Click to expand...
Click to collapse
Thanks for the flash-able dude. For some reason I could not do it thru terminal emulator it kept saying permissions were denied whenever I put the code in
Sent from my SGH-T999 using xda premium
makavelicruz said:
Thanks for the flash-able dude. For some reason I could not do it thru terminal emulator it kept saying permissions were denied whenever I put the code in
Sent from my SGH-T999 using xda premium
Click to expand...
Click to collapse
ooooo, you don't want to do that. The Odin flash-able image is ONLY flash-able through Odin. If you want, you can extract the recovery.img file from within it, and use THAT file to flash via Terminal.
You can ONLY flash a *.img file the Terminal way.
You can flash custom recovery three ways:
*.img flash-able via Terminal
*.tar, *.md5 flash-able via Odin
*.zip flash-able from within custom recovery
Good luck!
cybrnook said:
ooooo, you don't want to do that. The Odin flash-able image is ONLY flash-able through Odin. If you want, you can extract the recovery.img file from within it, and use THAT file to flash via Terminal.
You can ONLY flash a *.img file the Terminal way.
You can three ways:
*.img flash-able via Terminal
*.tar, *.md5 flash-able via Odin
*.zip flash-able from within custom recovery
Good luck!
Click to expand...
Click to collapse
I think he meant that he wasn't able to use just the img so he had to use the odin tar.
! C:\Users\user\Desktop\N7100XXDMB2_N7100OLBDMA4_XSE.zip: CRC failed in N7100XXDMB2_N7100OLBDMA4_N7100DXDLK5_HOME.tar.md5. The file is corrupt
That is what I get every time I try to extract the file. It gets to 99% and then errors out. I've redownloaded twice already. Am I doing something wrong?
Try using 7zip if you arent and tell us if it continues... also have you tried re-downloading? might just be a simple corruption?
Try another browser or download client to get the file
Sent from my GT-N7100 using Tapatalk 2
Userade said:
Try using 7zip if you arent and tell us if it continues... also have you tried re-downloading? might just be a simple corruption?
Click to expand...
Click to collapse
after try to extract with 7zip, it got extracted with md5 on it but still get the eror notice (corrupt file) on rar file. Then does this md5 file save to flash?
Rename the *.md5 you just extracted from the original *.zip to... *.md5.zip extension. Then extra the file you've just renamed again. If you can extract the contents to see files like recovery.img, then the md5 is safe to use. Else try a different browser...
You don't need to unzip it.
Check it's checksum and match it if it's available.
Also check the source.
You can also try to flash it directly.
It won't be flashed if it has a corrupt hash.
Sent from my GT-N7100 using xda app-developers app
Checksum hash miss match doesn't mean the data is corrupted because the hash is appended to the end of the tar file. If you can untar (or unzip if you prefer) the contents successfully, means you can rebuild the *.tar.md5 to flash with odin or just flash the extracted contents using mobile odin...:good:
Close antivirus while downloading as well extract.
Check log of antivirus, if there is reports regarding virus notice for zip file then select restore and try extract.
Sent from my GT-N7100 using xda premium
zhaolung said:
! C:\Users\user\Desktop\N7100XXDMB2_N7100OLBDMA4_XSE.zip: CRC failed in N7100XXDMB2_N7100OLBDMA4_N7100DXDLK5_HOME.tar.md5. The file is corrupt
That is what I get every time I try to extract the file. It gets to 99% and then errors out. I've redownloaded twice already. Am I doing something wrong?
Click to expand...
Click to collapse
You must download it again. Your zip is corrupted.
Sent from my GT-N7100 using xda premium
Possibly corrupted as at source.
Sent from my GT-N7100 using xda app-developers app
I need some help with extracting a system.img in Ubuntu I've googled it many times but I'm still stuck on it I've tried unyaffs but get a fault of some sort
EDIT:solved it
And put the solution
Sent from my Galaxy Nexus using xda premium
Nevermind figured out thanks for all your help lul
Sent from my Galaxy Nexus using xda premium
If you are only interested in using this forum to get answers but not to share them then at least do not mark you query as "Solved" and do not expect any future help. Please make amends.
Thank you.
-- Sent from my Palm Pre3 using Forums
eKeith said:
If you are only interested in using this forum to get answers but not to share them then at least do not mark you query as "Solved" and do not expect any future help. Please make amends.
Thank you.
-- Sent from my Palm Pre3 using Forums
Click to expand...
Click to collapse
Nah dude the solved wasn't there I solved it which is why I put solved
Sent from my Galaxy Nexus using xda premium
Ok but how about you posting the steps you took to solve it for the next person searching for the solution? Thanks.
-- Sent from my Palm Pre3 using Forums
Step 1 download dsixdas android kitchen
http://forum.xda-developers.com/showthread.php?t=633246
Step 2 get your system.IMG and put it in original_update
Step 3 open terminal emulator
Ctrl+alt+t
Go to where you extracted the kitchen
In my case its "cd kitchen"
Step 4 type ./menu wait for the GUI to pop up and choose create working folder and this will automatically extract the system.IMG that you have in your original_update folder
Step 5 wait and when its done it will mount system.IMG or something then it will ask you for your sudo password
Step 6 wait till its done and boom you extracted it dsixdas the easiest way to extract it.I didn't get any success on unyaffs or yaffs2
Sent From The Third Nexus
Great job! Thank you!
I love reading and learning something new...
Sent from my HTC Desire using Tapatalk 2
That doesn't teach anything. It's a toolkit.
beekay201 said:
That doesn't teach anything. It's a toolkit.
Click to expand...
Click to collapse
It extracts the system.img
Sent From The Third Nexus
Alternate solution: mount -o loop /path/system.img /mount_point
Sent from my liquid glowing bomb shell
Omar1c said:
Step 1 download dsixdas android kitchen
http://forum.xda-developers.com/showthread.php?t=633246
Step 2 get your system.IMG and put it in original_update
Step 3 open terminal emulator
Ctrl+alt+t
Go to where you extracted the kitchen
In my case its "cd kitchen"
Step 4 type ./menu wait for the GUI to pop up and choose create working folder and this will automatically extract the system.IMG that you have in your original_update folder
Step 5 wait and when its done it will mount system.IMG or something then it will ask you for your sudo password
Step 6 wait till its done and boom you extracted it dsixdas the easiest way to extract it.I didn't get any success on unyaffs or yaffs2
Sent From The Third Nexus
Click to expand...
Click to collapse
Nice beat bro! It works! :good:
I'm currently using LOG F180K, I have updated to the latest version, V20n. Now I want to extract the kernel file - boot.img from phone. I know that using the command:
dd if = / dev/block/mmcblk0p4 of = / sdcard / boot.img
But it is used for other models, do not know the name Optimus G What is the block?
phamluong92 said:
I'm currently using LOG F180K, I have updated to the latest version, V20n. Now I want to extract the kernel file - boot.img from phone. I know that using the command:
dd if = / dev/block/mmcblk0p4 of = / sdcard / boot.img
But it is used for other models, do not know the name Optimus G What is the block?
Click to expand...
Click to collapse
I was suppose to open a topic with this kind of query. Did you by the way know how to create a system dump using Terminal Emulator?
For our device boot partition is /dev/block/mmcblk0p7... To knw abt more partitions use root Explorer and chk in this path /dev/block/platform/msm_sdcc.1/by-name
To take system dump run these command...
su
tar -c /system/* >> /sdcard/system.tar
Wait for some mins to finiah the process.. :thumbup::thumbup:
Sent from my LG-E975 using xda premium
hasan4791 said:
For our device boot partition is /dev/block/mmcblk0p7... To knw abt more partitions use root Explorer and chk in this path /dev/block/platform/msm_sdcc.1/by-name
To take system dump run these command...
su
tar -c /system/* >> /sdcard/system.tar
Wait for some mins to finiah the process.. :thumbup::thumbup:
Sent from my LG-E975 using xda premium
Click to expand...
Click to collapse
Wow! Thanks for the useful tip!! :good:
---------- Post added at 12:09 PM ---------- Previous post was at 11:47 AM ----------
hasan4791 said:
For our device boot partition is /dev/block/mmcblk0p7... To knw abt more partitions use root Explorer and chk in this path /dev/block/platform/msm_sdcc.1/by-name
To take system dump run these command...
su
tar -c /system/* >> /sdcard/system.tar
Wait for some mins to finiah the process.. :thumbup::thumbup:
Sent from my LG-E975 using xda premium
Click to expand...
Click to collapse
Will I just copy the command and paste it in Terminal Emu? Tried it but it said that tar not found.
MitoTakatori said:
Wow! Thanks for the useful tip!! :good:
---------- Post added at 12:09 PM ---------- Previous post was at 11:47 AM ----------
Will I just copy the command and paste it in Terminal Emu? Tried it but it said that tar not found.
Click to expand...
Click to collapse
It shud wrk..... I tried juz now....
Sent from my LG-E975 using xda premium
hasan4791 said:
It shud wrk..... I tried juz now....
Sent from my LG-E975 using xda premium
Click to expand...
Click to collapse
Can you again post the command? Please check the SS:
MitoTakatori said:
Can you again post the command? Please check the SS:
Click to expand...
Click to collapse
ya tar command is missing from /xbin folder of urs...
Extract and copy the below file to system/xbin and chk if its working...
hasan4791 said:
ya tar command is missing from /xbin folder of urs...
Extract and copy the below file to system/xbin and chk if its working...
Click to expand...
Click to collapse
Will be trying now..thanks! BTW. why the heck tar is missing in my system? Is it bad?
Will it display a message that confirms if the command execution is successful?
---------- Post added at 01:54 PM ---------- Previous post was at 01:24 PM ----------
hasan4791 said:
ya tar command is missing from /xbin folder of urs...
Extract and copy the below file to system/xbin and chk if its working...
Click to expand...
Click to collapse
It runs, but the system.tar contains no data. How can I know if it's working?? And if it's finished or not?
MitoTakatori said:
I was suppose to open a topic with this kind of query. Did you by the way know how to create a system dump using Terminal Emulator?
Click to expand...
Click to collapse
i had system dump. it have name: system.zip. But it didn't include boot.img. And, i try uses kitchen to build rom, when i flash zip, error: status 0. how to fix it?
phamluong92 said:
I'm currently using LOG F180K, I have updated to the latest version, V20n. Now I want to extract the kernel file - boot.img from phone. I know that using the command:
dd if = / dev/block/mmcblk0p4 of = / sdcard / boot.img
But it is used for other models, do not know the name Optimus G What is the block?
Click to expand...
Click to collapse
How's the v20n of F180K? Is it 4.2.2 already or still 4.1? Some people says that the new version has already updated to 4.2 but I doubt? Can you confirm this?
turvat1377 said:
How's the v20n of F180K? Is it 4.2.2 already or still 4.1? Some people says that the new version has already updated to 4.2 but I doubt? Can you confirm this?
Click to expand...
Click to collapse
So sad. It's 4.1.2. Of course, version V20n have some update.
phamluong92 said:
So sad. It's 4.1.2. Of course, version V20n have some update.
Click to expand...
Click to collapse
Thanks for confirming..