overlapping partitions issue with resize of 8GB image put on 16GB sd card
#1
i put an android 5.1 dd image,
dd bs=4M if=/home/dkryder/Downloads/pine64/pine64-lollipop-beta-2-lcd-dd-8.img of=/dev/mmcblk0
it boots and runs fine. i would like to recover the unused space and add to the image. using gparted i get an error message about overlapping partitions. fdisk gives me this,
 sudo fdisk -l /dev/mmcblk0
[sudo] password for dkryder: 
omitting empty partition (14)

Disk /dev/mmcblk0: 16.0 GB, 16021192704 bytes
1 heads, 16 sectors/track, 1955712 cylinders, total 31291392 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x8b83061f

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1         5251072    15194110     4971519+   b  W95 FAT32
/dev/mmcblk0p2   *       73728      139263       32768    6  FAT16
/dev/mmcblk0p3               1     5251072     2625536   85  Linux extended
/dev/mmcblk0p5          139264      172031       16384   83  Linux
/dev/mmcblk0p6          172032      204799       16384   83  Linux
/dev/mmcblk0p7          204800     3350527     1572864   83  Linux
/dev/mmcblk0p8         3350528     3383295       16384   83  Linux
/dev/mmcblk0p9         3383296     3448831       32768   83  Linux
/dev/mmcblk0p10        3448832     5021695      786432   83  Linux
/dev/mmcblk0p11        5021696     5054463       16384   83  Linux
/dev/mmcblk0p12        5054464     5087231       16384   83  Linux
/dev/mmcblk0p13        5087232     5251071       81920   83  Linux

Partition table entries are not in disk order

i can see what i think might be the problem but having never been in the situation i'm not sure what to do.  i found this page,
http://gparted.org/h2-fix-msdos-pt.php#o...partitions
i could use some help in what changes i need to make. thanks
#2
i'm giving this a bump. there was a post i read recently that mentions problems with images and this overlapping partitions issue is hitting me when i try tp resize android 5.1 hdmi rooted/android 5.1 lcd rooted. i can't figure out how to get past it. gparted will not handle it. i'm surprised there has not been alot of discussion . i would like to learn how to get an image that is ,for instance, 8GB to resize to a 16GB SD card. as it stands all i'm getting is overlapping partitions.
#3
(09-29-2016, 07:50 PM)dkryder Wrote: i'm giving this a bump. there was a post i read  recently that mentions problems with images and this overlapping partitions issue is hitting me when i try tp resize android 5.1 hdmi rooted/android 5.1 lcd rooted. i can't figure out how to get past it. gparted will not handle it. i'm surprised there has not been alot of discussion . i would like to learn how to get an image that is ,for instance, 8GB to resize to a 16GB SD card. as it stands all i'm getting is overlapping partitions.

Well, you can't do anything about this for the two Android 5.1 images. The only way to expand the partitions for those images to fill up the entire sd card is to use the PhoenixCard tool, other than that, you are totally out of luck.

You might want to try this Android Nougat image made by one of our members, it is progressing smoothly so far and you can also expand the partition using gparted to fill up the entire sd card.
Donate BTC: 3Eav9uqXi8Nx1axb7QjK6xV4km4K9YGv9a
#4
tera854, the phoenix tool is limited to images built for that tool. the latest images do not have phoenix builds. the 7 build is improving with each new image. i have tried that build just to see how it was and when i tried it the camera did not work. i've read that the camera is now working so i probably will give it a try,
#5
I managed to resize the /data partition on the old style Android images a while back, but it's not a straightforward thing to do. I ended up using sfdisk and a desk calculator since normal tools will refuse to work and/or calculate the start of the new partition wrong for some reason. The large partition entry at the beginning of the list has actually sane boundaries and starts where the extended partition containing all the other partitions ends, but most tools dont like the primary partitions sitting inside an extended partition and refuse to work on that....
Come have a chat in the Pine IRC channel >>
#6
Quote:
  • Device Boot      Start         End      Blocks   Id  System
  • /dev/mmcblk0p1         5251072    15194110     4971519+   b  W95 FAT32
  • /dev/mmcblk0p2   *       73728      139263       32768    6  FAT16
  • /dev/mmcblk0p3               1     5251072     2625536   85  Linux extended
  • /dev/mmcblk0p5          139264      172031       16384   83  Linux
  • /dev/mmcblk0p6          172032      204799       16384   83  Linux
  • /dev/mmcblk0p7          204800     3350527     1572864   83  Linux
  • /dev/mmcblk0p8         3350528     3383295       16384   83  Linux
  • /dev/mmcblk0p9         3383296     3448831       32768   83  Linux
  • /dev/mmcblk0p10        3448832     5021695      786432   83  Linux
  • /dev/mmcblk0p11        5021696     5054463       16384   83  Linux
  • /dev/mmcblk0p12        5054464     5087231       16384   83  Linux
  • /dev/mmcblk0p13        5087232     5251071       81920   83  Linux
With such a crappy layout, it would be hard to do something. It uses "linux extended partition". Funny thing about it, it grabs the range of the other (and active) MBR partition (FAT16). Why? Then this is overlapping partitions by this funny design. Since an active (bootable) FAT partition must have its own entry in MBR. And linux extended partition must have its own MBR entry. But the latter claims its beginning is at LBA 1. This means it overlaps with FAT16 partition. That's crap.
If you just want to extend the last partition (FAT32) to the end of the disk, or create yet another partition in the free space there, then there should not be any overlapping. If it complains about the overlapping I mentioned, then congratulations - linux disk utility cannot deal with the quirks of its own system, since it sees overlapping between FAT16 partition and linux extended partition.
ANT - my hobby OS for x86 and ARM.
#7
(09-23-2016, 12:03 PM)dkryder Wrote: i put an android 5.1 dd image,
dd bs=4M if=/home/dkryder/Downloads/pine64/pine64-lollipop-beta-2-lcd-dd-8.img of=/dev/mmcblk0
it boots and runs fine. i would like to recover the unused space and add to the image. using gparted i get an error message about overlapping partitions. fdisk gives me this,
 sudo fdisk -l /dev/mmcblk0
[sudo] password for dkryder: 
omitting empty partition (14)

Disk /dev/mmcblk0: 16.0 GB, 16021192704 bytes
1 heads, 16 sectors/track, 1955712 cylinders, total 31291392 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x8b83061f

        Device Boot      Start         End      Blocks   Id  System
/dev/mmcblk0p1         5251072    15194110     4971519+   b  W95 FAT32
/dev/mmcblk0p2   *       73728      139263       32768    6  FAT16
/dev/mmcblk0p3               1     5251072     2625536   85  Linux extended
/dev/mmcblk0p5          139264      172031       16384   83  Linux
/dev/mmcblk0p6          172032      204799       16384   83  Linux
/dev/mmcblk0p7          204800     3350527     1572864   83  Linux
/dev/mmcblk0p8         3350528     3383295       16384   83  Linux
/dev/mmcblk0p9         3383296     3448831       32768   83  Linux
/dev/mmcblk0p10        3448832     5021695      786432   83  Linux
/dev/mmcblk0p11        5021696     5054463       16384   83  Linux
/dev/mmcblk0p12        5054464     5087231       16384   83  Linux
/dev/mmcblk0p13        5087232     5251071       81920   83  Linux

Partition table entries are not in disk order

i can see what i think might be the problem but having never been in the situation i'm not sure what to do.  i found this page,
http://gparted.org/h2-fix-msdos-pt.php#o...partitions
i could use some help in what changes i need to make. thanks

What burn tool did you use to burn the image?
+1 me if I have helped you in any way. Thank you.
#8
the same result with etcher, win32diskimager, and dd ,across 2 different computers, tells me it is an issue with the image, not the tool that writes it to sd card. it seems the problem is whatever method is being used to create these the images.
#9
it's a broken partitioning of the image. it can be fixed only at the image creation level.
ANT - my hobby OS for x86 and ARM.
#10
Having same problem with Android 5.1.1 v1.2.6 release.

So it's either have phoenix builds, or wait for the Android 7.0 build to mature.

Great...


Possibly Related Threads…
Thread Author Replies Views Last Post
  PINE A64 SBC: Clone of a functional 32GB SD card doesn't boot burningkrome 3 2,349 05-19-2023, 07:43 AM
Last Post: crocspot
Exclamation Can't boot when SD card inserted kivox 5 8,934 03-15-2020, 06:00 AM
Last Post: kivox
Photo Daughter Card SBC for P64 blue 5 8,035 08-22-2017, 07:51 AM
Last Post: blue
  Pine64 $15 card killed my $120 keyboard exa 22 31,143 01-04-2017, 09:01 AM
Last Post: skenn_ie
  Rooted Android LCD 64GB Image modsbyus 3 5,660 09-17-2016, 03:00 PM
Last Post: echild
  SD card recovery TeaPack 8 9,864 08-07-2016, 07:35 AM
Last Post: xalius
  Can't write to SD card w/ Adapter apple4ever 2 4,778 07-23-2016, 03:16 PM
Last Post: apple4ever
  missing SD card xj-boonie 4 6,489 07-13-2016, 12:22 PM
Last Post: tllim
  128GB Card OS? mesaxi 12 18,863 07-12-2016, 11:59 PM
Last Post: Tarjei85
  Problem making SD card Tam Dl 17 22,915 06-19-2016, 07:48 PM
Last Post: pfeerick

Forum Jump:


Users browsing this thread: 2 Guest(s)