Update: See below for my 10 step, 10 minute guide on getting 1gb usuable app space.
I'm new to android, only having a phone for 3 days now... so be gentle (Quite frankly, I'm very impressed that I haven't bricked it yet
As you're probably aware if you're reading this forum, this phone has a miniscule area for installing apps - less than 100mb free on a stock phone. So, I've rooted, CWM'd, and have a clockwork backup, and I'm familiar enough now with adb that I can shell and push/pull files. I'm a little rusty with Linux... but I can get around and compile OK. Anyway, from what I can tell, this phone has a 2gb nand chip which is split into many partitions:
179 0 1908736 mmcblk0 <-- 1 nand chip - 2gb?
179 14 389120 mmcblk0p14 <-- system is mounted from here
179 20 1048576 mmcblk0p20 <-- pegged for "internal storage" - (pictues, music - NOT apps)
179 21 163840 mmcblk0p21 <-- data partition mounted from here, for app installs
179 32 3872256 mmcblk1 <-- external SD card
Most of the filesytems are mounted as ext4... but the 'internal storage' p20 partition is vfat, presumably so that windows can transfer files to it nicely over USB.
Assuming I didn't want an 'internal storage' section (and I've already managed to have it unmounted and still boot and use the phone), couldn't I just repartition p20 and p21 to be 1.2g, ext4, and mount it to /data ? Is it that simple, or is there something obvious I'm missing?
I'm fighting right now with trying to mount the nandroid boot.img file. Any tips?
Unfortunately, I seemed to have picked Ubuntu for my last forage into Linuxland, with no native yaffs2 support. (why does it always feel like I'm going down the rabbit hole with I need to mess with linux. sigh).
And down the rabbit hole we went... 10 hours later of playing around with boot.img (I actually did get my flashes to work after a lot of pain) and the system vold.fstab table, and init.rc and I finally got fed up and took the shortcut. Here you go:
Make sure your 'internal memory' partition is pretty clean. We're going to shrink it from 1gb to around 160mb. Anything in bold
, is something you type.
1) Root the phone and install CWM from the one click update in these forums
2) Did you complete step #1? DON'T go any further until you do. Clockwork mod is not optional! Use clockwork mod to make a full backup of your phone. You can store it on the 4gb chip that comes with the phone. The backup is fairly small.
3) adb reboot recovery
4) after the reboot...adb shellcat /proc/partitions
The last 4 lines for mmcblk0 must look like this. If they do not, then DON'T continue if you're blindly following steps.
For example, if you don't have a p23, or have a p24 0 - don't continue.
179 20 1048576 mmcblk0p20
179 21 163840 mmcblk0p21
179 22 16384 mmcblk0p22
179 23 4096 mmcblk0p23
#delete the last 4 partitions on the internal memory nand chip
5) fdisk /dev/block/mmcblk0print alld
(after pressing return, it will ask for a number) 20d 20d 20d 20w
6) adb reboot recovery
#create new partitions with the space layout we want
7) after the reboot...adb shellprint all
- you should only see 19 partitions returned! If you still see 23, you didn't complete step #5 correctly, or possibly your phone isn't rooted. fdisk /dev/block/mmcblk0n
(after pressing return, it will ask for a number. Press return after the 1st number and it will ask for a 2nd number)84482 105731n 105733 236030n236032 238079n238081 238592w
#not even sure if this is necessary...
8 adb shellmke2fs -t ext4 /dev/block/mmcblk0p21mke2fs -t ext4 /dev/block/mmcblk0p22mke2fs -t fat32 /dev/block/mmcblk0p20
9) adb reboot recovery
10) full nandroid restore. Reboot, and you're done. 1gb of usuable space for app storage. "internal memory" for pictures, etc is around 160mb.