View Single Post
  #1 (permalink)  
Old 12-20-2010, 02:34 PM
tiger2wander's Avatar
tiger2wander
PPCGeeks Regular
Offline
 
Join Date: Feb 2009
Posts: 107
Reputation: 150
tiger2wander is keeping up the good worktiger2wander is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Post How to: get bigger data.img

Hi guys,

Since xdandroid growth fast and go much stable which we can use it daily, I decided to write this tutorial to help you whom want to have more applications on android box. Because of default init script has create data.img with only 256MB of size, it is not enough for who want to try out things and keep many good things inside the small box. So let's go to increase its size to get more funky things

Requirement
  • Linux box, eg: ubuntu, fedora ...

Preparation
  • Shutdown your android box and boot into WinMo or power off your phone completely.
  • Download your data.img inside directory: \Storage Card\andboot\ then put it in your "Home" directory

Make it bigger
(*) Open "Terminal emulator", you can find it under menu "Accessories" (Ubuntu/Debian family) or "System" (Fefora/RHEL family)

(*) First thing first, we need to do a file system check to make it clean and fix any issue if exists: (I have added -c option here to make fsck go to verify and fix any badblocks which can be found if your android box go crash sometime cause your phone back to boot screen)
Code:
fsck.ext2 -fyc data.img
(*) Next, we go to make it bigger, here I have add 256MB to data.img, you can specify the size you want to by edit the 'count' parameter eg: count=1024 will add 1GB to data.img
Code:
dd if=/dev/zero of=data.img oflag=append conv=notrunc bs=1M count=256
You can check it's size to see its already get bigger:
Code:
ls -lh data.img
You should get
Code:
-rw-r--r-- 1 uocnb uocnb 512M 2010-12-20 23:34 data.img
(*) Next, we need to resize the partition inside our data.img to fit its new size:
Code:
resize2fs data.img
(*) Finally, we need to verify if our process is going good and data.img can be use or not:
Code:
file data.img
You should get:
Code:
data.img: Linux rev 1.0 ext2 filesystem data, UUID=fe9ad380-0a17-11e0-a0d9-af99d7f11bf2
Yeah, that's it, here is your data.img with new size, now you can put your data.img back to your sdcard and boot into android

Good luck and have funny, fully holiday!

NOTE: (*) indicated the step you must done without any error, the main steps.
__________________
Reply With Quote
This post has been thanked 2 times.