5,605,373 Members 39,570 Now Online
XDA Developers Android and Mobile Development Forum

[CLOSED/G2] Available internal flash analysis

Tip us?
 
jashsu
Old
(Last edited by jashsu; 2nd October 2010 at 03:16 AM.)
#1  
jashsu's Avatar
Senior Member - OP
Thanks Meter 10
Posts: 1,852
Join Date: Nov 2008
Default [CLOSED/G2] Available internal flash analysis

cat /proc/partitions:

Code:
major minor  #blocks  name

 179        0  2,203,648 mmcblk0    //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
 179       25    425,726 mmcblk0p25  //system partition
 179       26  1,361,920 mmcblk0p26  //data partition
 179       27    209,715 mmcblk0p27  //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.
 
dcman008
Old
#2  
Member
Thanks Meter 1
Posts: 69
Join Date: May 2006
/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)
diversificationied Old
#3  
Guest
Thanks Meter
Posts: n/a
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".
 
dcman008
Old
#4  
Member
Thanks Meter 1
Posts: 69
Join Date: May 2006
New/hidden partitions were found in the root thread.
 
daijizai
Old
#5  
Senior Member
Thanks Meter 10
Posts: 232
Join Date: Oct 2005
Quote:
Originally Posted by jashsu View Post
cat /proc/partitions:

Code:
major minor  #blocks  name

 179        0  2,203,648 mmcblk0    //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
 179       25    425,726 mmcblk0p25  //system partition
 179       26  1,361,920 mmcblk0p26  //data partition
 179       27    209,715 mmcblk0p27  //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.
 
daijizai
Old
#6  
Senior Member
Thanks Meter 10
Posts: 232
Join Date: Oct 2005
Quote:
Originally Posted by dcman008 View Post
New/hidden partitions were found in the root thread.
Cannot locate. Post sauce.
 
crr127
Old
(Last edited by crr127; 2nd October 2010 at 03:48 AM.)
#7  
crr127's Avatar
Senior Member
Thanks Meter 16
Posts: 486
Join Date: Jun 2009
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?
T-Mobile Unlimited
Black G1 *Dream*
*now my new I-pod killer*

T-Mobile "G2"
Ya i got one! what you got?
9/30/10
 
daijizai
Old
#8  
Senior Member
Thanks Meter 10
Posts: 232
Join Date: Oct 2005
Quote:
Originally Posted by crr127 View Post
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
Old
#9  
sino8r's Avatar
Senior Member
Thanks Meter 529
Posts: 3,288
Join Date: Sep 2006
Location: Birmingham, Alabama
Quote:
Originally Posted by zephirus View Post
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...
evolution
HTC Wizard G3
HTC Excalibur
HTC Dream
HTC Sapphire
HTC Rhodium
HTC Espresso
HTC Glacier
HTC Vision
HTC Doubleshot
Samsung Note 2

My recent works:
2G/3G/4G/H+ icons for CM7.1 and Nightly

How to defeat data throttling

2.1 with JIT enabled on MTS

boot animation (Nexus "X"/HTC "quietly brilliant") for MTS
 
crr127
Old
#10  
crr127's Avatar
Senior Member
Thanks Meter 16
Posts: 486
Join Date: Jun 2009
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.
T-Mobile Unlimited
Black G1 *Dream*
*now my new I-pod killer*

T-Mobile "G2"
Ya i got one! what you got?
9/30/10

THREAD CLOSED
Subscribe
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...