5,815,265 Members 39,315 Now Online
XDA Developers Android and Mobile Development Forum

[Q] Partitioning the internal memory

Tip us?
 
oneindelijk
Old
#1  
Junior Member - OP
Thanks Meter 0
Posts: 5
Join Date: Sep 2013
Prompt [Q] Partitioning the internal memory

Hi,

I'm trying to figure out the partitioning on my phone (Acer E2 V370).
With fdisk I have this layout
Code:
             Device Boot      Start         End      Blocks  Id System
/dev/block/mmcblk0p1              65          64  2147483647+  5 Extended
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2            1665        2944       10240  83 Linux
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3            2945        4224       10240  83 Linux
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4            5825        6592        6144  83 Linux
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5            8385      110784      819200  83 Linux
/dev/block/mmcblk0p6          257985          64  2145420287+ 83 Linux
This doesn't make a lot of sense. 2145420287 blocks means 1039.something Gigabytes ?

Using parted for my SDCard gives me neatly two partitions with their respective sizes and fstype,
but using it on my internal memory, gives me errors, stating that the partitions can't be outside the disk.
This necessarily doesn't mean anything's wrong though, the phone (used to) boot(s) just fine,
and I noticed other people getting the same error message because they gparted the internal memory by accident

What actually went wrong, is that I reformatted the internal sdcard with ext3 using gparted while my phone was connected by UMS.
Since then it won't mount in android or on my linux box.

The reason I wanted to do this, is to use that internal storage as the location for link2sd.

I accidently wiped pretty much everything on my SD-Card (32Gb)
and the backup from my previous ROM (4.2.2) doesn't restore properly,
so nothing more can go wrong.
I can always repush the images back onto the phone using fastboot, right ?

Can anyone help me out, maybe by posting the results of fdisk -l /dev/block/mmcblk0 ?
 
kalpetros
Old
(Last edited by kalpetros; 29th August 2014 at 08:22 PM.)
#2  
kalpetros's Avatar
Senior Member
Thanks Meter 29
Posts: 174
Join Date: Jul 2013
Location: 35.34, 25.13
Quote:
Originally Posted by oneindelijk View Post
Can anyone help me out, maybe by posting the results of fdisk -l /dev/block/mmcblk0 ?
Code:
         Device Boot    Start       End     Blocks   Id               System
/dev/block/mmcblk0p1        5    757760    6062048    c    Win95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2    757761  1003520    1966080    c    Win95 FAT32 (LBA)
Partition 2 does not end on cylinder boundary
 
oneindelijk
Old
#3  
Junior Member - OP
Thanks Meter 0
Posts: 5
Join Date: Sep 2013
Quote:
Originally Posted by kalpetros View Post
Code:
         Device Boot    Start       End     Blocks   Id               System
/dev/block/mmcblk0p1        5    757760    6062048    c    Win95 FAT32 (LBA)
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2    757761  1003520    1966080    c    Win95 FAT32 (LBA)
Partition 2 does not end on cylinder boundary
Thanks !
That looks like your sdcard is on mmcblkp0, like I've seen with other devices.
Which device is this ?
 
kalpetros
Old
#4  
kalpetros's Avatar
Senior Member
Thanks Meter 29
Posts: 174
Join Date: Jul 2013
Location: 35.34, 25.13
It's a Galaxy S I9000.
 
oneindelijk
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 5
Join Date: Sep 2013
Prompt mmcblk0p8

Hi,

I'm still trying to figure out this whole partition-mess.
I've found out by using parted on each partition in mmcblk0
that mmcblk0p8 is about 1.7 Gb.
This is the partition I'm looking for, but why is fdisk /dev/mmcblk0 only showing 6
(And parted is just throwing an error, because the boundaries are out of bounds...)

Is there a way to make a full backup of my whole device, so I can restore it when messing up ?
(Perhaps dd each partition and the bootsector somehow ?)
 
kalpetros
Old
#6  
kalpetros's Avatar
Senior Member
Thanks Meter 29
Posts: 174
Join Date: Jul 2013
Location: 35.34, 25.13
Quote:
Originally Posted by oneindelijk View Post
Hi,

I'm still trying to figure out this whole partition-mess.
I've found out by using parted on each partition in mmcblk0
that mmcblk0p8 is about 1.7 Gb.
This is the partition I'm looking for, but why is fdisk /dev/mmcblk0 only showing 6
(And parted is just throwing an error, because the boundaries are out of bounds...)

Is there a way to make a full backup of my whole device, so I can restore it when messing up ?
(Perhaps dd each partition and the bootsector somehow ?)
Yes you can use the recovery (CWM) to backup your device.
 
oneindelijk
Old
#7  
Junior Member - OP
Thanks Meter 0
Posts: 5
Join Date: Sep 2013
Question CWM

Quote:
Originally Posted by kalpetros View Post
Yes you can use the recovery (CWM) to backup your device.
Or TWRP is just as well I suppose ?

I already make several backups, but will these store the size of the partitions as well ?
 
kalpetros
Old
#8  
kalpetros's Avatar
Senior Member
Thanks Meter 29
Posts: 174
Join Date: Jul 2013
Location: 35.34, 25.13
Quote:
Originally Posted by oneindelijk View Post
Or TWRP is just as well I suppose ?

I already make several backups, but will these store the size of the partitions as well ?
Yes the size of the partition will be stored.

You can use TWRP too.

Thread Tools
Display Modes