[Q] Partitioning the internal memory

Search This thread

oneindelijk

Member
Sep 22, 2013
6
0
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

Senior Member
Jul 21, 2013
175
30
35.34, 25.13
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
 
Last edited:

oneindelijk

Member
Sep 22, 2013
6
0
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 ?
 

oneindelijk

Member
Sep 22, 2013
6
0
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

Senior Member
Jul 21, 2013
175
30
35.34, 25.13
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.