Make Calling Your Loved Ones Easier and Cheaper this Diwali

Diwali, or Deepawali as some Indians call it, is the pride and joy of Indian … more

Big Android BBQ 5.0 Recap – XDA TV

This fifth annual Big Android BBQ has come and gone. The speakers have spoke, the sponsors have … more

Microsoft to Counter “OK Google” with Bing Torque

When Microsoft is making apps for Android, users should be aware that something … more

Google Confirms “Android Lollipop Day” for November 3rd

A little over a week ago, Google announced the latest iteration of … more
Thread Closed

[CLOSED/G2] Available internal flash analysis

OP jashsu

2nd October 2010, 02:16 AM   |  #1  
jashsu's Avatar
OP Senior Member
Thanks Meter: 14
 
1,853 posts
Join Date:Joined: Nov 2008
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.
Last edited by jashsu; 2nd October 2010 at 03:16 AM.
2nd October 2010, 02:45 AM   |  #2  
Member
Thanks Meter: 1
 
69 posts
Join Date:Joined: May 2006
More
/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
2nd October 2010, 02:53 AM   |  #3  
Guest
Thanks Meter: 0
 
n/a posts
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".
2nd October 2010, 03:13 AM   |  #4  
Member
Thanks Meter: 1
 
69 posts
Join Date:Joined: May 2006
More
New/hidden partitions were found in the root thread.
2nd October 2010, 03:39 AM   |  #5  
Senior Member
Thanks Meter: 30
 
296 posts
Join Date:Joined: Oct 2005
Quote:
Originally Posted by jashsu

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.
2nd October 2010, 03:40 AM   |  #6  
Senior Member
Thanks Meter: 30
 
296 posts
Join Date:Joined: Oct 2005
Quote:
Originally Posted by dcman008

New/hidden partitions were found in the root thread.

Cannot locate. Post sauce.
2nd October 2010, 03:45 AM   |  #7  
crr127's Avatar
Senior Member
Thanks Meter: 17
 
493 posts
Join Date:Joined: 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?
Last edited by crr127; 2nd October 2010 at 03:48 AM.
2nd October 2010, 03:46 AM   |  #8  
Senior Member
Thanks Meter: 30
 
296 posts
Join Date:Joined: Oct 2005
Quote:
Originally Posted by crr127

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.
2nd October 2010, 03:47 AM   |  #9  
sino8r's Avatar
Senior Member
Flag Birmingham, Alabama
Thanks Meter: 542
 
3,314 posts
Join Date:Joined: Sep 2006
More
Quote:
Originally Posted by zephirus

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...
2nd October 2010, 03:51 AM   |  #10  
crr127's Avatar
Senior Member
Thanks Meter: 17
 
493 posts
Join Date:Joined: 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.

Thread Closed Subscribe to Thread
Previous Thread Next Thread
Thread Tools
Display Modes


Top Threads in G2 and Desire Z General by ThreadRank