[CLOSED/G2] Available internal flash analysis

Status
Not open for further replies.
Search This thread

jashsu

Senior Member
Nov 15, 2008
1,849
20
cat /proc/partitions:

Code:
major minor  #blocks  name

[B] 179        0  2,203,648 mmcblk0  [/B]  //internal storage
 179        1        500 mmcblk0p1
 179        2         64 mmcblk0p2
 179        3      4,500 mmcblk0p3
 179        4          1 mmcblk0p4
 179        5     30,000 mmcblk0p5
 179        6     12,500 mmcblk0p6
 179        7      2,048 mmcblk0p7
 179        8      3,072 mmcblk0p8
 179        9      2,048 mmcblk0p9
 179       10      1,024 mmcblk0p10
 179       11      1,024 mmcblk0p11
 179       12      8,751 mmcblk0p12
 179       13      3,072 mmcblk0p13
 179       14      3,072 mmcblk0p14
 179       15      1,024 mmcblk0p15
 179       16      8,957 mmcblk0p16
 179       17        256 mmcblk0p17
 179       18      1,024 mmcblk0p18
 179       19      1,024 mmcblk0p19
 179       20      1,280 mmcblk0p20
 179       21      8,701 mmcblk0p21
 179       22      4,096 mmcblk0p22
 179       23        256 mmcblk0p23
 179       24        256 mmcblk0p24
[B] 179       25    425,726 mmcblk0p25[/B]  //system partition
[B] 179       26  1,361,920 mmcblk0p26[/B]  //data partition
[B] 179       27    209,715 mmcblk0p27[/B]  //cache
 179       28     20,480 mmcblk0p28
Sum of the blocks in mmcblk0 is 4320039, which is just a bit over 4GiB+128MiB. Need to do more analysis of init file to plumb how this works...

Edit 1: Need to find out what mmcblk0p26 partition is used for and why it needs 1.3GiB. It is most definitely not needed for /system or /cache. Would help if someone can run df command and post the results here. (df > /sdcard/df.txt for convenience)

Edit 2: Thanks dcman008. Looks like mystery is solved. Wasn't really all that mysterious either. Only question is why so much of the flash was allocated to /data.
 
Last edited:

dcman008

Senior Member
May 6, 2006
105
11
40
/dev: 189916K total, 0K used, 189916K available (block size 4096)
/system: 413040K total, 190272K used, 222768K available (block size 4096)
/data: 1336748K total, 155776K used, 1180972K available (block size 4096)
/cache: 197144K total, 17132K used, 180012K available (block size 4096)
/devlog: 20336K total, 5800K used, 14536K available (block size 4096)
/mnt/asec: 189916K total, 0K used, 189916K available (block size 4096)
/mnt/sdcard: 7753728K total, 2342240K used, 5411488K available (block size 32768)
/mnt/secure/asec: Permission denied
/mnt/asec/com.rovio.angrybirds_lite-1: 13500K total, 11724K used, 1776K available (block size 4096)
 
D

diversificationied

Guest
Is it possbile that 1.3 is a mirroed recovery image of the entire phone like netbooks have in a hidden partition?

So you basically have two copies of your os, and incase something foobars, you just reflash the "shipping config".
 

daijizai

Senior Member
Oct 27, 2005
306
49
cat /proc/partitions:

Code:
major minor  #blocks  name

[B] 179        0  2,203,648 mmcblk0  [/B]  //internal storage
 179        1        500 mmcblk0p1
 179        2         64 mmcblk0p2
 179        3      4,500 mmcblk0p3
 179        4          1 mmcblk0p4
 179        5     30,000 mmcblk0p5
 179        6     12,500 mmcblk0p6
 179        7      2,048 mmcblk0p7
 179        8      3,072 mmcblk0p8
 179        9      2,048 mmcblk0p9
 179       10      1,024 mmcblk0p10
 179       11      1,024 mmcblk0p11
 179       12      8,751 mmcblk0p12
 179       13      3,072 mmcblk0p13
 179       14      3,072 mmcblk0p14
 179       15      1,024 mmcblk0p15
 179       16      8,957 mmcblk0p16
 179       17        256 mmcblk0p17
 179       18      1,024 mmcblk0p18
 179       19      1,024 mmcblk0p19
 179       20      1,280 mmcblk0p20
 179       21      8,701 mmcblk0p21
 179       22      4,096 mmcblk0p22
 179       23        256 mmcblk0p23
 179       24        256 mmcblk0p24
[B] 179       25    425,726 mmcblk0p25[/B]  //system partition
[B] 179       26  1,361,920 mmcblk0p26[/B]  //data partition
[B] 179       27    209,715 mmcblk0p27[/B]  //cache
 179       28     20,480 mmcblk0p28
Sum of the blocks in mmcblk0 is 4320039, which is just a bit over 4GiB+128MiB. Need to do more analysis of init file to plumb how this works...

Edit 1: Need to find out what mmcblk0p26 partition is used for and why it needs 1.3GiB. It is most definitely not needed for /system or /cache. Would help if someone can run df command and post the results here. (df > /sdcard/df.txt for convenience)

Edit 2: Thanks dcman008. Looks like mystery is solved. Wasn't really all that mysterious either. Only question is why so much of the flash was allocated to /data.
Dude... You are adding all the partitions to the drive itself... If you buy a 500 GB hard drive and partition it into two 250 GB partitions you don't calculate your capacity by adding 500 GB + 250 GB + 250 GB... You do not have a terabyte.

Same principle applies. mmcblk0 is the NAND... anything ending in p## are partitions on it and only subtract, not add, to the disk capacity.
 

crr127

Senior Member
Jun 20, 2009
496
17
isn't he in essense breaking the drive "nand" chip down into individual partitions or blocks. which if it looks like that equals up over 4gig.



edit--- oh i get what your saying. that is basically breaking down the 2 gigs. the internal space is the entire drive and everything underneith it is the blocks within that 2 gigs correct?
 
Last edited:

daijizai

Senior Member
Oct 27, 2005
306
49
isn't he in essense breaking the drive "nand" chip down into individual partitions or blocks. which if it looks like that equals up over 4gig.
He is double-counting every block. Once at the NAND level and again at the partition level. His number is about twice actual.
 

sino8r

Senior Member
Sep 7, 2006
3,549
735
Birmingham, Alabama
Dude... You are adding all the partitions to the drive itself... If you buy a 500 GB hard drive and partition it into two 250 GB partitions you don't calculate your capacity by adding 500 GB + 250 GB + 250 GB... You do not have a terabyte.

Same principle applies. mmcblk0 is the NAND... anything ending in p## are partitions on it and only subtract, not add, to the disk capacity.

you're right the first is the total, the next few, spl, boot, radio, then data/system etc are all added to make #0. If you guys don't believe him... add it up yourselves.

to be honest... who cares anymore. I'm rolling over and surrendering. I'm happy with the space I have. way more than i need or am used to. the rest can go on my sd. I'm interested in root...
 

crr127

Senior Member
Jun 20, 2009
496
17
amen brother. on that note i'm done i'm going out and having a few drinks!!! i love my phone and have no real gripes.
 
Status
Not open for further replies.