[Help] How to extract system.img in Windows 10 - General Questions and Answers

Hello.
I want to know how to extract system.img in windows 10. I have tried the ext4_unpacker but whenever I load the system.img file in it,it does not respond,i,e.it hangs.And I have also tried the command sonu mount -t.......... after downloading the tools but it shows error it is not recognized as an internal or external command line in windows.
So does anyone has a solution for this.
Many Many thanks in advance.

Raunak09 said:
Hello.
I want to know how to extract system.img in windows 10. I have tried the ext4_unpacker but whenever I load the system.img file in it,it does not respond,i,e.it hangs.And I have also tried the command sonu mount -t.......... after downloading the tools but it shows error it is not recognized as an internal or external command line in windows.
So does anyone has a solution for this.
Many Many thanks in advance.
Click to expand...
Click to collapse
Have u tried with terminal?
Sent from my GT-S5830i using XDA Free mobile app

sohamsen said:
Have u tried with terminal?
Sent from my GT-S5830i using XDA Free mobile app
Click to expand...
Click to collapse
if you mean to say command prompt then yes thats the only way i tried apart from ext4_unpacker. Actually i tried to unpack cm13 system.img using ext4_unpacker and i was successful in it but when try to unpack Micromax Canvas5 E481 stock system.img using ext4_unpacker it does not respond and hangs.

Use This Terminal Emulator Code:
Code:su tar -c system/* >> sdcard/system.tar
This will copy all your /system folder to your SDcard with name System.tar
This will take some time to finish so be patient.
Hit The Button Thanks If I Helped You!
Sent From A Galaxy Ace-i Far Far Away!
Currently Running Rom:CMX11 V6(CyanogenMod 11) With Jenkins Kernel

Related

[HOW TO] Open CGs

Hi all :
I try open all CGs for see the files, but i only know to open CG39 and some more..
sudo mount -o loop CG.39.smg CG39
But the others ¿¿
Some one have the answer ¿?¿?¿?
There is a Perl script which can unpack boot and recovery (CG35 & CG47) in this thread: http://forum.xda-developers.com/showthread.php?t=443994
Filipitripi said:
Hi all :
I try open all CGs for see the files, but i only know to open CG39 and some more..
sudo mount -o loop CG.39.smg CG39
But the others ¿¿
Some one have the answer ¿?¿?¿?
Click to expand...
Click to collapse
CG64.smg & CG65.smg: partition tables that you can open using fdisk/sfdisk
CG33.smg is a CDROM ISO file!
iirc one or two of them are the splash image (not 100% sure now)
Filipitripi said:
Hi all :
I try open all CGs for see the files, but i only know to open CG39 and some more..
sudo mount -o loop CG.39.smg CG39
But the others ¿¿
Some one have the answer ¿?¿?¿?
Click to expand...
Click to collapse
how to repack cg39.smg
if you have any details on windows 7 how to open repack do send me.
rachit2588 said:
how to repack cg39.smg
if you have any details on windows 7 how to open repack do send me.
Click to expand...
Click to collapse
http://sourceforge.net/projects/ext... 2.2 (Latest)/ext2explore-2.2.71.zip/download
It will allow you opening ext3 images inside Windows
^very good idea
danimagrin said:
http://sourceforge.net/projects/ext... 2.2 (Latest)/ext2explore-2.2.71.zip/download
It will allow you opening ext3 images inside Windows
Click to expand...
Click to collapse
so now i can see files on cg39.smg using ext2reader but the thing is now how to get system image from cg39.smg to system.img ??
rachit2588 said:
so now i can see files on cg39.smg using ext2reader but the thing is now how to get system image from cg39.smg to system.img ??
Click to expand...
Click to collapse
System.img to be restored with Nandroid? If yes you have to extract all files with ext2reader then use mkyaffs2image to build system.img.
danimagrin said:
System.img to be restored with Nandroid? If yes you have to extract all files with ext2reader then use mkyaffs2image to build system.img.
Click to expand...
Click to collapse
with mkyaffs2image its jus showing me a cmd windows for some less thn 1 sec and its jus goes away...please upload the version you are using...also let me know if it needs any prerequisite software to be installed.
It's because mkyaffs2image is a command line app, just like in the DOS days... To use it you should open a cmd window (type cmd at Windows menu and press enter), go to the directory right before the one you extracted files (you use cd "dirname" to enter in a directory and "cd .." to leave it. So when you are in the directory right before the one in which you've extracted files type "mkyaffs2image CG39extracteddir system.img"
danimagrin said:
It's because mkyaffs2image is a command line app, just like in the DOS days... To use it you should open a cmd window (type cmd at Windows menu and press enter), go to the directory right before the one you extracted files (you use cd "dirname" to enter in a directory and "cd .." to leave it. So when you are in the directory right before the one in which you've extracted files type "mkyaffs2image CG39extracteddir system.img"
Click to expand...
Click to collapse
oh , ok.. its working..thanks
danimagrin said:
It's because mkyaffs2image is a command line app, just like in the DOS days... To use it you should open a cmd window (type cmd at Windows menu and press enter), go to the directory right before the one you extracted files (you use cd "dirname" to enter in a directory and "cd .." to leave it. So when you are in the directory right before the one in which you've extracted files type "mkyaffs2image CG39extracteddir system.img"
Click to expand...
Click to collapse
ok last doubt...after creating system.img can it be restored via custom recovery..??
how to add md5 check sums for that so that custom recovery can identify as proper nandorid..!!??
rachit2588 said:
oh , ok.. its working..thanks
Click to expand...
Click to collapse
You welcome!
Sure you can use it with nandroid, you must download md5sum.exe, place it together with mkyaffs2image, after you used mkyaffs2image then type "md5sum system.img" and it will generate checksum. Create a file called "nandroid.md5" and paste what md5sum returned. You can open a nandroid.md5 file of another backup and you'll understand better how it's done..
excellent..i got it
@danimagrin help me how to add root files if our cg39 image is unrooted..??
ie how to manually add root files from some rooted cg39 image to some non rooted original image..which files and folders are required to add/replace..?? ne thoughts..
rachit2588 said:
@danimagrin help me how to add root files if our cg39 image is unrooted..??
ie how to manually add root files from some rooted cg39 image to some non rooted original image..which files and folders are required to add/replace..?? ne thoughts..
Click to expand...
Click to collapse
I know how to do it on Linux, because you've to run chmod and chown to set su and Superuser.apk permissions. I'll see if it's possible to do it inside Windows and I'll answer you asap.
Where did you get mkyaffs2image for Windows? Are you running it with -f flag or not? Have you already made an image and restored it and did it really work? I'm afraid if will not work because of the same problem above...
danimagrin said:
I know how to do it on Linux, because you've to run chmod and chown to set su and Superuser.apk permissions. I'll see if it's possible to do it inside Windows and I'll answer you asap.
Where did you get mkyaffs2image for Windows? Are you running it with -f flag or not? Have you already made an image and restored it and did it really work? I'm afraid if will not work because of the same problem above...
Click to expand...
Click to collapse
yes i have made an system.img with md5 nandroid check sum...but still not restored with CWM Recovery...yeah mkyaffs2image works on windows...find out in the attached IMG depacker
rachit2588 said:
yes i have made an system.img with md5 nandroid check sum...but still not restored with CWM Recovery...yeah mkyaffs2image works on windows...find out in the attached IMG depacker
Click to expand...
Click to collapse
I'll test it as soon as I get home and then I tell you!

[Q]How can I extra the system.img file

Can dev teach me ..
How can I extra the system.img file under windows 7 OS.
dickluo said:
Can dev teach me ..
How can I extra the system.img file under windows 7 OS.
Click to expand...
Click to collapse
You will need the android SDK and adb.
You can either do this through the terminal app on the phone or by using adb...
With adb:
From windows command line, and the phone connected via usb.
adb shell
su
cat /dev/block/system > /sdcard/system.img
If you use the terminal, you run the same commands as above, except the adb command.
To get the file on your hard drive, run this from the windows command prompt:
adb pull /sdcard/system.img .
Jim
Sent from my MB865 using xda premium
EDIT- lol, Jim and I had two different perspectives on your question . Are you asking how to create a system.img based off of your current /system, or are you asking how to extract an .img you already have and set up a working directory for ROM building?
Under Win7? Good luck with that. The system.img contains a filesystem that Windows doesn't natively support. You can use an app like Ext2Read to open and extract .img's, but if you do that all the symlinking will get messed up because Windows filesystems don't support symlinks. Also, Ext2Read might freeze or not fully extract the image just because of compatibility issues.
I highly recommend you use VirtualBox or set up a dual-boot with a Linux OS like Ubuntu. From there, you can install the ROM Kitchen which makes building ROMs a lot easier. It will let you set up a working directory based off of a system .img, and it detects all symlinks and adds them to the updater-script.
cogeary said:
EDIT- lol, Jim and I had two different perspectives on your question . Are you asking how to create a system.img based off of your current /system, or are you asking how to extract an .img you already have and set up a working directory for ROM building?
Under Win7? Good luck with that. The system.img contains a filesystem that Windows doesn't natively support. You can use an app like Ext2Read to open and extract .img's, but if you do that all the symlinking will get messed up because Windows filesystems don't support symlinks. Also, Ext2Read might freeze or not fully extract the image just because of compatibility issues.
I highly recommend you use VirtualBox or set up a dual-boot with a Linux OS like Ubuntu. From there, you can install the ROM Kitchen which makes building ROMs a lot easier. It will let you set up a working directory based off of a system .img, and it detects all symlinks and adds them to the updater-script.
Click to expand...
Click to collapse
Thanks cogeary .
I need the ext2read to explorer the *.img file and it can extra anyone file from *.img to my disk.
And can I use the *.apk from other *.img to create/use on my phone/system.
dickluo said:
Thanks cogeary .
I need the ext2read to explorer the *.img file and it can extra anyone file from *.img to my disk.
And can I use the *.apk from other *.img to create/use on my phone/system.
Click to expand...
Click to collapse
Sometimes. You can probably use apps like the alarm clock or browser that come from a different firmware, but don't try using framework files (like framework-res, systemui, etc) and important apps (like the dialer or phone) from different firmwares.

Help in choosing correct steps

Hi!
I just bought xt1032 8gb, german market. Rom 4.4.2.
Can you suggest what steps should i petform in order to have cm11 installed? Links are also fine for some tutorials.
Thx.
jazzh said:
Hi!
I just bought xt1032 8gb, german market. Rom 4.4.2.
Can you suggest what steps should i petform in order to have cm11 installed? Links are also fine for some tutorials.
Thx.
Click to expand...
Click to collapse
Here you go.. But read the thread before flashing it..
http://forum.xda-developers.com/showthread.php?t=2608377
Press thanks if I helped you
Sent from my XT1032 using XDA Premium 4 mobile app
OK, so I unlocked boot loader. Then rooted. Then installed cwm. Then performed backup. But now under folder clockworkmod I can't find my backup. Where is it? One more thing, I think root did not go well, no supersu app and total commander doesn't let me browse system files!?!
To root your phone download Superuser . zip from the below link and flash it via cwm..
http://goo.gl/DPrVzS
You need to copy the nandroid backup to pc using adb... You can't copy in usual way...
Sent from my XT1032 using XDA Premium 4 mobile app
Thx for supersu advice, i did it.
Now how to copy backup with adb, what is the location? I know its rhere somewhere cause i did backup rwice and the wnd time i saw free space was dramatically lower...
jazzh said:
Thx for supersu advice, i did it.
Now how to copy backup with adb, what is the location? I know its rhere somewhere cause i did backup rwice and the wnd time i saw free space was dramatically lower...
Click to expand...
Click to collapse
I have done one time, but forgot the location now.. Are you able to see the nandroid backup files using the file Explorer.. It's somewhere inside the media directory.. Can you check with any root Explorer and tell me the location..?
Sent from my XT1032 using XDA Premium 4 mobile app
I found 2 backups under /data/media/clockworkmod/backups/... both are about 1gb in size. I couldnt enter data folder before while unrooted.
Now i usually copy files from phone to my nas over lan, so i dont have to adb every time, thats why 8gb is not low for me ... but i cant copy these backups, nor i can delete one of them, as if supersu is not allowing it. I'll try with some other file manager.
jazzh said:
I found 2 backups under /data/media/clockworkmod/backups/... both are about 1gb in size. I couldnt enter data folder before while unrooted.
Now i usually copy files from phone to my nas over lan, so i dont have to adb every time, thats why 8gb is not low for me ... but i cant copy these backups, nor i can delete one of them, as if supersu is not allowing it. I'll try with some other file manager.
Click to expand...
Click to collapse
Try this and let me know if it works..
Enable USB debugging.. Connect your phone to USB..
Go to the adb location.. Open cmd there..
Try the below command and give enter..
adb pull /mnt/sdcard/clockworkmod/backup C:\clockbkp
If it doesn't work, try below
adb pull /mnt/shell/emulated/0/clockworkmod/backup C:\clockbkp
Let me know which one works.
Sent from my XT1032 using XDA Premium 4 mobile app
---------- Post added at 12:34 PM ---------- Previous post was at 12:33 PM ----------
jazzh said:
Thx for supersu advice, i did it.
Now how to copy backup with adb, what is the location? I know its rhere somewhere cause i did backup rwice and the wnd time i saw free space was dramatically lower...
Click to expand...
Click to collapse
Instead of saying thanks, press thanks button
Sent from my XT1032 using XDA Premium 4 mobile app
padhu1989 said:
adb pull /mnt/sdcard/clockworkmod/backup C:\clockbkp
Click to expand...
Click to collapse
It didn't work, I don't know whats wrong.
Although I'm using Linux Mint, not windows.
I installed adb and fastboot:
Code:
sudo apt-get install android-tools-fastboot
sudo apt-get install android-tools-adb
sudo apt-get install android-tools-fsutils
but list of adb devices is empty:
Code:
adb devices
List of devices attached
Then I created /.android/adb_usb.ini with lines
Code:
1
0x22b8
because I saw the vendor id with:
Code:
lsusb
Bus 001 Device 011: ID 22b8:2e80 Motorola PCS
but no devices found error again, tried also as root...
I must boot win in virtualbox and try from there then...
jazzh said:
It didn't work, I don't know whats wrong.
Although I'm using Linux Mint, not windows.
I installed adb and fastboot:
Code:
sudo apt-get install android-tools-fastboot
sudo apt-get install android-tools-adb
sudo apt-get install android-tools-fsutils
but list of adb devices is empty:
Code:
adb devices
List of devices attached
Then I created /.android/adb_usb.ini with lines
Code:
1
0x22b8
because I saw the vendor id with:
Code:
lsusb
Bus 001 Device 011: ID 22b8:2e80 Motorola PCS
but no devices found error again, tried also as root...
I must boot win in virtualbox and try from there then...
Click to expand...
Click to collapse
Sorry.. I'm not much familiar with Windows brother..
Sent from my XT1032 using XDA Premium 4 mobile app

stuck in twrp

I deleted my rom file while doing a wipe. adb sees the device, so I ran from cmd and cd'd into the platform tools directory. Then ran:
Code:
C:\Users\Administrator\Desktop\android-sdk-windows\platform-tools> adb push ROM.zip
But when I run that, I get the man pages or error:closed
At least it's good that adb sees my device after running adb devices. Is there something wrong with the way I'm trying to push the rom over?
You need to tell it what to push it. \sdcard\download. Or something along those lines
Sorry, you need to use / not \
Sent from my Nexus 5 using XDA Free mobile app
jd1639 said:
You need to tell it what to push it. \sdcard\download. Or something along those lines
Sorry, you need to use / not \
Sent from my Nexus 5 using XDA Free mobile app
Click to expand...
Click to collapse
I'm trying eveything I can think of, but still nothing. So close.
When I run adb status-window I get:
<-[2J<-[2HAndroid Debug Bridge
State: sideload
did you try adb push ROM.zip /sdcard/ROM.zip but changing the name ROM.zip to whatever the exact name of your file is?
goofball2k said:
did you try adb push ROM.zip /sdcard/ROM.zip but changing the name ROM.zip to whatever the exact name of your file is?
Click to expand...
Click to collapse
I just tried that, and got:
error:closed
Ran the original command with sideload:
C:\Users\Administrator\Desktop\android-sdk-windows\platform-tools> adb sideload ROM.zip
and got:
* failed to write data 'protocol fault <no status>' * 1%
If all else fails, just flash stock, reroot and start fresh.
Return to Stock
OK, I got it done. I rebooted the phone back into recovery mode, and ran the original command which finally worked. I got a new rom installed successfully! Thanks for the help guys, all is well, and lesson learned.
wolfen69 said:
I'm trying eveything I can think of, but still nothing. So close.
When I run adb status-window I get:
Sorry didnt noticed that you tried
Click to expand...
Click to collapse

Root Remix OS for PC

This guide is to root Remix OS for PC
You will need Ubuntu for Rooting (You can download and run it in live CD)
If you are experienced with linux systems don't read whats written in bracket
1. Download and Extract RemixRoot.zip
2. Copy system.img from your pendrive or hdd wherever you have installed Remix Os to this folder (ie RemixRoot folder it should be alongside Readme.txt)
3. Open Terminal (Ctrl+Alt+T)
4. Type
Code:
sudo -i
5. Enter your password (If you are running in live cd then no password)
6. Change directory to RootRemix folder (Goto tmp folder, right click and goto properties and copy location, this is your <dir> replace it in command below )
Code:
cd <dir>
7. If you did it right next line of terminal will end with RemixRoot# followed by blinking cursor
8. Now run rootx.sh script by typing
Code:
sh rootx.sh
9. If everything goes right there wont be any error message and you will get a root.img in your RemixRoot folder
10. Rename it to system.img and copy to your pendrive/hdd replacing previous system.img
11. Reboot and go to RemixOS and update SuperSU binaries
12. That's it! you are now rooted
Thanks to Chainfire & hackarchive
I tried it but i got no system.img, i got r/w access to system (choosen by install) so i tried to symlink it to my system directory and commented out all image mounted related things from script and then tried it.
but after that i cannot boot android anymore, i think the problem is app_process linking to daemonsu, since i set back to original it boots like normal but no superuser access. SuperSU said theres is no superuser installed.
Any suggestion?
Silly question but will I lose root access if I update to the newest version by flashing the new image over the top?
Yes a silly question.... Deserves a silly answer. It will still be underneath, but good luck trying to retrace it!
any other method for rooting, without using ubuntu?
#tested with ubuntu live, and it works like a charms. Thank you..
Sent from my C46G using XDA Premium 4 mobile app
ninharp said:
I tried it but i got no system.img, i got r/w access to system (choosen by install) so i tried to symlink it to my system directory and commented out all image mounted related things from script and then tried it.
but after that i cannot boot android anymore, i think the problem is app_process linking to daemonsu, since i set back to original it boots like normal but no superuser access. SuperSU said theres is no superuser installed.
Any suggestion?
Click to expand...
Click to collapse
same problem here.
Hope same other method can solved
I modified the original script to work with the system folder installation and i removed all app_processX dependend things from script (dunno if it affects the root in any way, cannot find any issue by now) Read the Readme.txt for further installation instructions. The link you find on the reddit sub that GoPal has posted! I cannot post links right now.
Try this
kretex said:
Hope same other method can solved
Click to expand...
Click to collapse
ninharp said:
I tried it but i got no system.img, i got r/w access to system (choosen by install) so i tried to symlink it to my system directory and commented out all image mounted related things from script and then tried it.
but after that i cannot boot android anymore, i think the problem is app_process linking to daemonsu, since i set back to original it boots like normal but no superuser access. SuperSU said theres is no superuser installed.
Any suggestion?
Click to expand...
Click to collapse
You will get root.img file you will have to rename it to system.img
masdeco said:
same problem here.
Click to expand...
Click to collapse
Me too [emoji25]
Envoyé de mon E5333 en utilisant Tapatalk
I've just installed RemixOS 2.0 onto a partition on my Lenovo X200T. I followed the instructions and all was good until I tried to run SuperSU. When it tried to update via the normal method the install failed and asked for a reboot. Any suggestions.
ninharp said:
I modified the original script to work with the system folder installation and i removed all app_processX dependend things from script (dunno if it affects the root in any way, cannot find any issue by now) Read the Readme.txt for further installation instructions. The link you find on the reddit sub that GoPal has posted! I cannot post links right now.
Try this
Click to expand...
Click to collapse
the answer is replace the system folder. this is my methode :
1. copy the system img from the extracted remix iso to somewhere
2. then run the script
3. unpack the system img that already rooted and copy all the content to the system folder of the remix (replace)
4. done. Remix os rooted.
Guys, I installed Remix to ext4 partition (in order to use all free space), so there's no "system.img" on it (but there's "system" folder). How to modify the script or to root Remix other way?
masdeco, thanks for the idea! How do you unpack img file, btw?
4ezahernya said:
Guys, I installed Remix to ext4 partition (in order to use all free space), so there's no "system.img" on it (but there's "system" folder). How to modify the script or to root Remix other way?
masdeco, thanks for the idea! How do you unpack img file, btw?
Click to expand...
Click to collapse
after root the system img then mount it, copy all the content to the system folder of your remix.
since I am a linux user so I use this command :
mount -o loop system.img tmp
this is so cool cool
Works Lenovo Yoga 2 11
Installed to a partition on my HD:
Downloaded RemixOS iso
extracted contents of iso
created temp, data and system folders
ran this tool to root the system.img (now root.img)
renamed root.img back to system.img
mounted system.img to temp folder
copied contents of temp folder to system folder
added entry in grub
now I am triple booting Windows, Linux and RemixOS 2.0 Android with ROOT
Thank You!!!
here is a xdelta3 for patching system.img for those using Remix OS 2 from a USB stick and run windows
GizmoTheGreen said:
here is a xdelta3 for patching system.img for those using Remix OS 2 from a USB stick and run windows
Click to expand...
Click to collapse
can you please explain its usage?
the_poolee said:
can you please explain its usage?
Click to expand...
Click to collapse
me too!
Please
the_poolee said:
can you please explain its usage?
Click to expand...
Click to collapse
dariett said:
me too!
Please
Click to expand...
Click to collapse
it shouldn't be too hard to figure out, put the files in your folder of choice with the system.img from your usb stick, run the batfile. it should create a file named rooted system image, now just replace system.img on your usb stick with that and run...
ofcourse I am assuming your system.img is identical to the one I had, which it should be if it was the 2.0 dev preview which is the only thing you can get today, right?

Categories

Resources