Jump to content

[DEV ONLY TUT] How to copy files on ext partition


Recommended Posts

Guest gnufabio
Posted (edited)

Hi all, since many people wondered how to copy files to ext partition from the update zip file, I asked Malez how to do that. He explained me, and I want to share it with all the developers. Now it's easier to port Sense ROMs to Liquid, even if they will be probably "glitchy" :)

First of all we should warn the user that the ext partition is required to flash the ROM!

  1. Make a folder in the root of update script. I will call it "run".
  2. Create a new sh file, I will call it "mountext"
  3. Mount partition from the script. This is the code you need to do that:
    #!/bin/sh
    
    mkdir /system/sd 2>/dev/null
    
    mount -t ext2 /dev/block/mmcblk0p2 /system/sd
  4. Start it from the update script!
    package_extract_dir("run", "/tmp");
    
    run_program("/sbin/busybox", "sh", "/tmp/mountext");


  5. Now you must only extract the files on the mountpoint (/system/sd) and symlink what you need.
I really hope it will be useful, if you have any question write! :)

Many thanks to Malez who shared this tutorial!

Edited by gnufabio
Guest Lens_flare
Posted (edited)

Useful for what?

And what do you mean "sense rom will be easier to port"?

Edited by Lens_flare
Guest gnufabio
Posted
Useful for what?

And what do you mean "sense rom will be easier to port"?

We always had problems with the size of sense roms...but moving files to an ext partition can resolve this problem :)

Guest Lens_flare
Posted

so we can just use SD ext to store half of the sense rom? :/

Guest gnufabio
Posted
So can someone do the port??? :)

I will try this evening, but i really don't know if it will "work" xD

Guest ilmigliore95
Posted
I will try this evening, but i really don't know if it will "work" xD

You Are great!!!!!!!

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.