[Motorola Droid RAZR] Aavi Hanif Balani:
i was trying to flash lineageOS 13.0 on driod razr xt912 using safestrap 3.75 right after that flash open gapp but couldn't due to low storage error of system partition so i decided to increase system memory . After googling found two way of doing , 1st parted , 2nd fdisk. After getting in error in parted so i switch to fdisk . Below are the steps i did please correct me

1) connected phone in safetrap 3.75 recovery to pc. CONNECTION WAS SUCCESSFUL . took backup of /system and /data from safetrap 3.75.

adb root

adb shell

# cat /etc/fstab

/dev/block/mmcblk1p25 /sdcard vfat rw

/sdcard-ext vfat rw

/dev/block/mmcblk1p24-orig /data ext3 rw

/dev/block/mmcblk1p21-orig /cache ext3 rw

/dev/block/mmcblk1p20-orig /system ext3 rw

/dev/block/mmcblk1p23 /osh ext3 rw

/dev/block/mmcblk1p20-orig /systemorig ext3 rw

/dev/block/mmcblk1p25 /ss vfat rw

# cat /proc/partitions

179 0 15564800 mmcblk1

179 1 128 mmcblk1p1

179 2 512 mmcblk1p2

179 3 512 mmcblk1p3

179 4 1 mmcblk1p4

179 5 512 mmcblk1p5

179 6 128 mmcblk1p6

179 7 4096 mmcblk1p7 pds

179 8 512 mmcblk1p8 utags

179 9 1024 mmcblk1p9

179 10 2048 mmcblk1p10

179 11 512 mmcblk1p11

179 12 512 mmcblk1p12

179 13 4096 mmcblk1p13

179 14 8192 mmcblk1p14 boot

179 15 9216 mmcblk1p15 recovery

179 16 217088 mmcblk1p16 cdrom

179 17 512 mmcblk1p17 misc

179 18 512 mmcblk1p18 cid

179 19 4096 mmcblk1p19 kpanic

179 20 655360 mmcblk1p20 system

179 21 1048576 mmcblk1p21 cache

179 22 622592 mmcblk1p22 preinstall

179 23 1364992 mmcblk1p23 webtop

179 24 3203072 mmcblk1p24 userdata

179 25 8401792 mmcblk1p25 emstorage

179 26 128 mmcblk1p26

179 64 2048 mmcblk1boot1

179 32 2048 mmcblk1boot0

# /sbin/fdisk /dev/block/mmcblk1

Disk /dev/block/mmcblk1: 15.9 GB, 15938355200 bytes

16 heads, 16 sectors/track, 121600 cylinders, total 31129600 sectors

Units = sectors of 1 * 512 = 512 bytes

u (unit to sector )

p

Device Boot Start End Blocks Id System

block/mmcblk1p1 * 256 511 128 83 Linux

block/mmcblk1p2 1024 2047 512 83 Linux

block/mmcblk1p3 2048 3071 512 83 Linux

block/mmcblk1p4 3072 31105023 15550976 5 Extended

block/mmcblk1p5 4096 5119 512 83 Linux

block/mmcblk1p6 5120 5375 128 83 Linux

block/mmcblk1p7 6144 14335 4096 83 Linux

block/mmcblk1p8 14336 15359 512 83 Linux

block/mmcblk1p9 16384 18431 1024 83 Linux

block/mmcblk1p10 18432 22527 2048 83 Linux

block/mmcblk1p11 22528 23551 512 83 Linux

block/mmcblk1p12 23552 24575 512 83 Linux

block/mmcblk1p13 24576 32767 4096 83 Linux

block/mmcblk1p14 32768 49151 8192 83 Linux

block/mmcblk1p15 49152 67583 9216 83 Linux

block/mmcblk1p16 67584 501759 217088 83 Linux

block/mmcblk1p17 501760 502783 512 83 Linux

block/mmcblk1p18 502784 503807 512 83 Linux

block/mmcblk1p19 503808 511999 4096 83 Linux

block/mmcblk1p20 512000 1822719 655360 83 Linux

block/mmcblk1p21 1822720 3919871 1048576 83 Linux

block/mmcblk1p22 3919872 5165055 622592 83 Linux

block/mmcblk1p23 5165056 7895039 1364992 83 Linux

block/mmcblk1p24 7895040 14301183 3203072 83 Linux

block/mmcblk1p25 14301184 31104767 8401792 83 Linux

block/mmcblk1p26 31104768 31105023 128 83 Linux

2) i decide to make changes in (20-25)'s partition ( system to +3072M, cache to +1024M, preinstall to +1S, webtop to +1S, userdata to +3072M, emstorage to +8102M). But in order to make changes in (20-25)'s i had to delete 26's partitions but after creating new table starting and ending sector of 26's partitions remains the same . Also after i knew that safetrap 3.75 does not use preinstall, webtop for stock slot so i change them to +1S SECTORE.

d 26

d 25

d 24

d 23

d 22

d 21

d 20

3) after creating the new partitions. Table as follows

P

Device Boot Start End Blocks Id System

/dev/block/mmcblk1p1 * 256 511 128 83 Linux

/dev/block/mmcblk1p2 1024 2047 512 83 Linux

/dev/block/mmcblk1p3 2048 3071 512 83 Linux

/dev/block/mmcblk1p4 3072 31105023 15550976 5 Extended

/dev/block/mmcblk1p5 4096 5119 512 83 Linux

/dev/block/mmcblk1p6 5120 5375 128 83 Linux

/dev/block/mmcblk1p7 6144 14335 4096 83 Linux

/dev/block/mmcblk1p8 14336 15359 512 83 Linux

/dev/block/mmcblk1p9 16384 18431 1024 83 Linux

/dev/block/mmcblk1p10 18432 22527 2048 83 Linux

/dev/block/mmcblk1p11 22528 23551 512 83 Linux

/dev/block/mmcblk1p12 23552 24575 512 83 Linux

/dev/block/mmcblk1p13 24576 32767 4096 83 Linux

/dev/block/mmcblk1p14 32768 49151 8192 83 Linux

/dev/block/mmcblk1p15 49152 67583 9216 83 Linux

/dev/block/mmcblk1p16 67584 501759 217088 83 Linux

/dev/block/mmcblk1p17 501760 502783 512 83 Linux

/dev/block/mmcblk1p18 502784 503807 512 83 Linux

/dev/block/mmcblk1p19 503808 511999 4096 83 Linux

/dev/block/mmcblk1p20 512016 6512016 3000000+ 83 Linux

/dev/block/mmcblk1p21 6512033 8512033 1000000+ 83 Linux

/dev/block/mmcblk1p22 8512050 8512052 1+ 83 Linux

/dev/block/mmcblk1p23 8512069 8512071 1+ 83 Linux

/dev/block/mmcblk1p24 8512088 14512088 3000000+ 83 Linux

/dev/block/mmcblk1p25 14512105 31104751 8296323+ 83 Linux

/dev/block/mmcblk1p26 31104768 31105023 128 83 Linux

w (writing)

recreating table successful

q (quit)

# mke2fs -t ext3 /dev/block/mmcblk1p20

# mke2fs -t ext3 /dev/block/mmcblk1p21

# mke2fs -t ext3 /dev/block/mmcblk1p22

# mke2fs -t ext3 /dev/block/mmcblk1p23

# mke2fs -t ext3 /dev/block/mmcblk1p24

# mkdosfs /dev/block/mmcblk1p25

#mount /dev/block/mmcblk1p20 /system/

#mount /dev/block/mmcblk1p21 /cache/

#mount /dev/block/mmcblk1p24 /data/

#mount /dev/block/mmcblk1p25 /sdcard/

# mount /dev/block/mmcblk1p25 /ss/

# mount /dev/block/mmcblk1p25 /and-sec/

4) after that wiped cache, data , andriod secure, data, webtop, system.

5) restored backup of /system and /data /

6) reboot the system

7) after Motorola logo "M" got error

ap fastboot flash mode [boot failure]

0A.77

eMMC Info: Size 16g

to return to normal mode - first press power key to power down

device is LOCKED, Status Code:0

battery ok

ok to program

Connect USB

Data cable

Invalid CG OTV [CG: system]: Invalid SP Data

Invalid CG HAB [CG: system, status: 0X004E]

Invalid CG OTV [CG: system]

8) i had to use RSD LITE to flash VRZ_XT912_9.8.2O-72_VZW-16-5_1FF.xml to boot normally. :(

9) after booting i check for changes i made , f**k system returns back to default partition table.

QUESTIONS

1) where do i go wrong

2) does i have to also make change in "ebr" or "mbr" after changing partitions size

4) does it relate to preinstall and webtop which i left to +1S SECTOR

5)does lineageOS 13.0 need /osh (webtop partitions) because i was flashing saw it searching for /osh for mount

6)does to safe to left the preinstall and webtop to +1S SECTOR