PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2
Register Community Search

Notices


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 12-20-2010, 02:34 PM
tiger2wander's Avatar
PPCGeeks Regular
Offline
Pocket PC: Verizon TP2 CDMA XV6875 (RHOD500) - O2 XDA IIs
Carrier: VN Mobifone (GSM, 3G)
 
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.
 

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 08:19 PM.


Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com