2

I am trying to resize the partition /system using the parted and gdisk commands. But none of these commands succeed in changing mmcblk0 partitions after execution. The things I do are as follows:

  • install adb and fastboot and put them to the system variables.
  • enable Settings>developer options>USB debugging and Root debugging
  • install TWRP recovery.
  • run cmd in adminitsrator permission.
  • write these command in CMD :
    adb root  
    adb reboot recovery  
    adb push gdisk /sbin  
    adb push parted /sbin  
    adb shell chmod 777 /sbin/gdisk  
    adb shell chmod 777 /sbin/parted  
    adb shell  
    ~#> cd /dev/block  
    dev/block> gdisk mmcblk0  
    Partition table scan:  
      MBR: protective  
      BSD: not present  
      APM: not present  
      GPT: present  
    Found valid GPT with protective MBR; using GPT.  
    
    Command (? for help): p  
    Disk /dev/block/mmcblk0: 61071360 sectors, 29.1 GiB  
    Sector size (logical/physical): 512/512 bytes  
    Disk identifier (GUID): 98101B32-BBE2-4BF2-A06E-2BB33D000C20  
    Partition table holds up to 128 entries  
    Main partition table begins at sector 2 and ends at sector 33  
    First usable sector is 34, last usable sector is 61071326  
    Partitions will be aligned on 2-sector boundaries  
    Total free space is 8158 sectors (4.0 MiB)  
    
   

     Number  Start (sector)    End (sector)  Size       Code  Name  
           1            8192           38911   15.0 MiB    8300  apnhlos  
           2           38912          156543   57.4 MiB    0700  modem  
           3          156544          157567   512.0 KiB   FFFF  sbl1  
           4          157568          157631   32.0 KiB    FFFF  dbi  
           5          157632          157695   32.0 KiB    FFFF  ddr  
           6          157696          161791   2.0 MiB     FFFF  aboot  
           7          161792          162815   512.0 KiB   FFFF  rpm  
           8          162816          163839   512.0 KiB   FFFF  tz  
           9          163840          184319   10.0 MiB    FFFF  pad  
          10          184320          204799   10.0 MiB    8300  param  
          11          204800          233471   14.0 MiB    8300  efs  
          12          233472          239615   3.0 MiB     FFFF  modemst1  
          13          239616          245759   3.0 MiB     FFFF  modemst2  
          14          245760          268287   11.0 MiB    FFFF  boot  
          15          268288          294911   13.0 MiB    FFFF  recovery  
          16          294912          321535   13.0 MiB    FFFF  fota  
          17          321536          335853   7.0 MiB     8300  backup  
          18          335854          341997   3.0 MiB     FFFF  fsg  
          19          341998          341999   1024 bytes  FFFF  fsc  
          20          342000          342015   8.0 KiB     FFFF  ssd  
          21          342016          358399   8.0 MiB     8300  persist  
          22          358400          376831   9.0 MiB     8300  persdata  
          23          376832         5095423   2.3 GiB     8300  system  
          24         5095424         5709823   300.0 MiB   8300  cache  
          25         5709824         5730303   10.0 MiB    8300  hidden  
          26         5730304        61071326   26.4 GiB    8300  userdata  
    
    Command (? for help): d  
    Partition number (1-26): 26  
    
    Command (? for help):w  

(curser blinking) and device goes to hang!!!!!

anyone can help me? I do this in parted command. It is like above.
after restarting the device, all of the partition are there, like before...

16

0

You must log in to answer this question.

Browse other questions tagged .