[Q] How to make a system folder into a system.img

Search This thread

matthewtelee

Member
May 22, 2011
6
0
London
Hello XDA, I'm kind of new to ROMs etc. and would appreciate some help. I am trying to install mikegapinski's 2.3.7 ROM (v5) through fastboot and whereas in the past I have seen a boot.img and a system.img, there is a boot.img and a system folder. Is there a way to make the folder into a system.img file that I could flash onto my GT540?

In short, how do you make a system.img file out of a folder with system files in them?
 

-Grift-

Senior Member
Jan 9, 2011
4,620
1,990
Singapore
hey there !

(system.img + boot.img) is for fastboot
fastboot flash boot boot.img
fastboot flash system system.img


and the (system folder + boot.img) is for recovery
use any recovery
select zip from sdcard
select the zip

i dont think you can convert the folder to a .img(or the other way around) . and if the rom you are talking about mike's aosp v5 then i wont recommend it as for now there are problems with the ram and so it becomes very laggy. i would recommend mur4iks swiftdroid asis but the choice is yours
 

jhonnyx1000

Senior Member
Apr 17, 2011
489
84
Auckland
I know you can 'extract' images using 'unyaffs' but I never made an image from a folder (except when dumping partitions). I think there is a way though.
 

tejasjadhav

Senior Member
Nov 13, 2010
562
293
30
Mumbai
tejasjadhav.xyz
If you have Linux on your PC, then you can use the 'yaffs' tool. Search it on Google.
This is how even AOSP compiles system folder into system.img

Sent from my LG GT540 Swift using XDA App
 
  • Like
Reactions: Sage

Edu_Renesto

Member
Apr 16, 2012
26
35
Guarulhos
I got it. If you use Linux, you can create an iso file of the system folder, and then convert it to .img. Just follow it:
In a terminal(CTRL+ALT+T):
Code:
mkisofs -o /path/to/the/system/folder ~/system.iso
dd if=~/system.iso of=~/system.img 
rm ~/system.iso
Your system.img will be on your home directory.
 

supermorph

Member
Jun 20, 2008
23
6
widnes
suggestion

take a look at this url, and examine the zip file contained.

you could boot into cwm and install the zip (not suggesting, its what i did)
if u make a zip file in the same layout you could install your zip and it will update the system partition.

as you have a desire, heres whats required

on phone: place phone into fastboot mode


on computer: unzip to a folder , place the img file in such folder,
open a command prompt, (navigate to folder using the cd command)
and type: fastboot boot bravo-cwm.img

mount sd card, toggle usb storage, place your zip in root of sdcard.
then untoggle, go back, select option to install zip from sdcard.
choose select zip file.
find your zip.
tap on the file, and it will install...

you SHOULD by this point have an updated phone as you desired (lol)

if it does not work as you expected, have a look for a standard system.img for your phone, and put that into a zip
name the zip (i put it in caps, weather needed i dont know) PM99IMG.zip
place it into root of sdcard, and put phone into the first screen of recovery menu, the white screen.
it will analyze your zip and ask you to install, press up to flash and then the required option to reboot when its done to revert your phone back to normal.

hope this helps there buddy,
ill most likley forget to check back, so if u need any help pm me and ill see what i can do,
 

Attachments

  • Fastboot.zip
    404.5 KB · Views: 1,129
  • bravo-cwm.img
    3.2 MB · Views: 1,193

skyhtk

New member
Sep 20, 2013
2
0
Is this working

I got it. If you use Linux, you can create an iso file of the system folder, and then convert it to .img. Just follow it:
In a terminal(CTRL+ALT+T):
Code:
mkisofs -o /path/to/the/system/folder ~/system.iso
dd if=~/system.iso of=~/system.img 
rm ~/system.iso
Your system.img will be on your home directory.

HI Bro,

Is the output file system.img after flash into the rom?
 

Top Liked Posts

  • There are no posts matching your filters.
  • 1
    If you have Linux on your PC, then you can use the 'yaffs' tool. Search it on Google.
    This is how even AOSP compiles system folder into system.img

    Sent from my LG GT540 Swift using XDA App