[Android Q&A, Help & Troubleshooting] rregn:
the ascend G330 waste 2GB for an internal SD-card, which nobody needs, but /data is just 655 MB, small, if you

like to have lots of apps.

researching on the phone - where partions are mounted i found in /init.rc these lines:

#/*resize data system cust cache partitions to max size*/
exec /sbin/e2fsck_s -p /dev/block/mmcblk0p15
exec /sbin/resize2fs_s /dev/block/mmcblk0p15

exec /sbin/e2fsck_s -p /dev/block/mmcblk0p16
exec /sbin/resize2fs_s /dev/block/mmcblk0p16

exec /sbin/e2fsck_s -p /dev/block/mmcblk0p17
exec /sbin/resize2fs_s /dev/block/mmcblk0p17

exec /sbin/e2fsck_s -p /dev/block/mmcblk0p18
exec /sbin/resize2fs_s /dev/block/mmcblk0p18

As i understand, if you change the size of a partition and reboot, the filesystem will be adapted!

So someone has just to delete part 18, 19 and recreate 18 and 19 with the desired size, give data up to 2,6 GB!

It would be take just 10 mins!

this is the layout (18 is /data, 19 is internal SD-Card):

Disk /dev/block/mmcblk0: 3909 MB, 3909091328 bytes
1 heads, 16 sectors/track, 477184 cylinders
Units = cylinders of 16 * 512 = 8192 bytes

Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 * 1 3 20 4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2 3 41 300 45 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3 41 16681 133120 c Win95 FAT32 (LBA)
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4 16681 477184 3684031+ 5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5 16897 18432 12288 6a Unknown
/dev/block/mmcblk0p6 18433 18944 4096 46 Unknown
/dev/block/mmcblk0p7 18945 19456 4096 63 GNU HURD or SysV
/dev/block/mmcblk0p8 19457 19840 3072 58 Unknown
/dev/block/mmcblk0p9 19969 20352 3072 4a Unknown
/dev/block/mmcblk0p10 20481 20864 3072 4b Unknown
/dev/block/mmcblk0p11 20993 21504 4096 47 Unknown
/dev/block/mmcblk0p12 21505 22528 8192 48 Unknown
/dev/block/mmcblk0p13 22529 25088 20480 60 Unknown
/dev/block/mmcblk0p14 25089 25600 4096 6c Unknown
/dev/block/mmcblk0p15 25601 50176 196608 83 Linux
/dev/block/mmcblk0p16 50177 60416 81920 83 Linux
/dev/block/mmcblk0p17 60417 125952 524288 83 Linux
/dev/block/mmcblk0p18 125953 207872 655360 83 Linux
/dev/block/mmcblk0p19 207873 477184 2154496 6b Unknown

expert mode:
...
10 00 0 0 0 0 0 0 60794 6144 4b
11 00 0 0 0 0 0 0 68985 8192 47
12 00 0 0 0 0 0 0 77176 16384 48
13 00 0 0 0 0 0 0 93559 40960 60
14 00 0 0 0 0 0 0 134518 8192 6c
15 00 0 0 0 0 0 0 142709 393216 83
16 00 0 0 0 0 0 0 535924 163840 83
17 00 0 0 0 0 0 0 699763 1048576 83
18 00 0 0 0 0 0 0 1748338 1310720 83
19 00 0 0 0 0 0 0 3059057 4308992 6b

so i tried:

Command (m for help): d
Partition number (1-19): 19

Command (m for help): d
Partition number (1-18): 18

Command (m for help): p

Disk /dev/block/mmcblk0: 3909 MB, 3909091328 bytes
1 heads, 16 sectors/track, 477184 cylinders
Units = cylinders of 16 * 512 = 8192 bytes

Device Boot Start End Blocks Id System
/dev/block/mmcblk0p1 * 1 3 20 4d Unknown
Partition 1 does not end on cylinder boundary
/dev/block/mmcblk0p2 3 41 300 45 Unknown
Partition 2 does not end on cylinder boundary
/dev/block/mmcblk0p3 41 16681 133120 c Win95 FAT32 (LBA)
Partition 3 does not end on cylinder boundary
/dev/block/mmcblk0p4 16681 477184 3684031+ 5 Extended
Partition 4 does not end on cylinder boundary
/dev/block/mmcblk0p5 16897 18432 12288 6a Unknown
/dev/block/mmcblk0p6 18433 18944 4096 46 Unknown
/dev/block/mmcblk0p7 18945 19456 4096 63 GNU HURD or SysV
/dev/block/mmcblk0p8 19457 19840 3072 58 Unknown
/dev/block/mmcblk0p9 19969 20352 3072 4a Unknown
/dev/block/mmcblk0p10 20481 20864 3072 4b Unknown
/dev/block/mmcblk0p11 20993 21504 4096 47 Unknown
/dev/block/mmcblk0p12 21505 22528 8192 48 Unknown
/dev/block/mmcblk0p13 22529 25088 20480 60 Unknown
/dev/block/mmcblk0p14 25089 25600 4096 6c Unknown
/dev/block/mmcblk0p15 25601 50176 196608 83 Linux
/dev/block/mmcblk0p16 50177 60416 81920 83 Linux
/dev/block/mmcblk0p17 60417 125952 524288 83 Linux

Command (m for help): n
First cylinder (16682-477184, default 16682): 125953
[COLOR="Red"]Sector 2015232 is already allocated[/COLOR]
First cylinder (125954-477184, default 125954): 125953
[COLOR="red"]Value is out of range[/COLOR]
First cylinder (125954-477184, default 125954): 125953
[COLOR="red"]Value is out of range[/COLOR]
First cylinder (125954-477184, default 125954):

so I could not recreate part18 with same starting offset - i would loose data.

Any idea why? fdisk is from busybox 1.19. What can i do to archieve my goal?

P.S. when i look to the expert output and recalculate, partitions seem to overlap one block:

expr 699763 + 1048576

1748339

expr 1748338 + 1310720

3059058