where is the modification in the file to change memory?
can i use all memory (8gb) as internal storage?
Thank you!!!
You need to change the size of the userdata partition and the offsets of the partitions that comes after it. It's not that complicated.
These are the values taken from the 2GB file I have provided (I have used 410000 instead of 400000 because otherwise the tablet would show the internal partition as being 1.9xGB instead of 2GB).
SIZE..............OFFSET
0x00002000@0x00002000(misc)
0x00004000@0x00004000(kernel)
0x00008000@0x00008000(boot)
0x00010000@0x00010000(recovery)
0x00020000@0x00020000(backup)
0x00040000@0x00040000(cache)
0x00410000@0x00080000(userdata) <<<only change size
0x00002000@
0x00490000(kpanic) <<<only change offset
0x00120000@
0x00492000(system) <<<only change offset
-@
0x005B2000(user) <<<only change offset
You need to increase the size of
userdata and recalculate the offsets for kpanic, system and user. You don't need to change their sizes.
user does not have a size, as it will take whatever is left available.
I hope this helps understand how to do the calculations. The next offset is the sum of the previous partition size+offset:
Userdata size: 410000 @ offset 80000 <sum the values together to get kpanic offset 490000
kpanic size: 2000 @ offset 490000 (410000 + 80000) <sum the values together to get system offset 492000
system size 120000 @ offset 492000 (2000 + 490000) <sum the values together to get user offset 5B2000
user size nothing @ offset 5B2000 (120000 + 492000)
So if you want 3GB, the values would be (you may need to use 0x00610000 or 0x00620000 to have a round number):
0x00610000@0x00080000(userdata)
0x00002000@
0x00690000(kpanic)
0x00120000@
0x00692000(system)
-@
0x007B2000(user)
As a rule of thumb, every time you add 200000 to userdata, you are expanding it by (approximately) 1GB.
In my opinion you should keep some space (I would go with 512MB) for /mnt/sdcard (user) because there are applications (e.g. browsers) that can only save files in /mnt/sdcard .
This should be an interesting read as well.
http://www.htcmania.com/showthread.php?t=477883
Note the format:
Code:
CMDLINE:console=ttyFIQ0 androidboot.console=ttyFIQ0 init=/init initrd=0x62000000,0x00800000 mtdparts=rk29xxnand:0x00002000@0x00002000(misc),0x00004000@0x00004000(kernel),0x00008000@0x00008000(boot),0x00010000@0x00010000(recovery),0x00020000@0x00020000(backup),0x00040000@0x00040000(cache),0x00410000@0x00080000(userdata),0x00002000@0x00490000(kpanic),0x00120000@0x00492000(system),-@0x005B2000(user)