User Manual Orange Pi Zero 3

  Features   |  Use   |    Linux     |  Linux SDK   |  Android   |  Android SRC   |

RU          EN  

Chapt 3. Instructions for use of Debian/Ubuntu Server and Xfce desktop system
Страница:   25    26    27    28    29    30    31    32    33    34    35    36    37    38    39    40    41    42    43    44    45    46    47    48    49    50    51    52    53    54    55    56    57    58    59    60    61    62    63    64    65    66    67    68    69    70    71    72    73    74    75    76    77    78    79    80    81    82    83    84    85    86    87    88    89    90    91    92    93    94    95    96    97    98    99    100    101    102    103    104    105    106    107    108    109    110    111    112    113    114    115    116    117    118    119    120    121    122  


3.6.4. How to reduce the capacity of the rootfs partition in the TF card
After configuring the application program or other development environment in the Linux system of the TF card, if you want to back up the Linux system in the TF card, you can use the method in this section to reduce the size of the rootfs partition first, and then start the backup.

  • 1) First insert the TF card you want to operate in the Ubuntu computer (Windows not available)

  • 2) Then install the gparted software on the Ubuntu computer

    test@test:~$ sudo apt install -y gparted

  • 3) Then open gparted
    test@test:~$ sudo gparted

  • 4) After opening gparted, you can select the TF card in the upper right corner, and then you can see the usage of the TF card capacity


    Img 3.24

  • 5) Then select the rootfs partition (/dev/sdc1)


    Img 3.25

  • 6) Click the right mouse button again to see the operation options shown in the figure below. If the TF card has been mounted, first you need to Umount the rootfs partition of the TF card


    Img 3.26

  • 7) Then select the rootfs partition again, click the right mouse button, and select Resize/Move to start setting the size of the rootfs partition


    Img 3.27

  • 8) After theResize/Move option is turned on, the following setting interface will pop up


    Img 3.28

  • 9) Then you can directly drag the location shown in the figure below to set the size of the capacity, or you can set the size of the rootfs partition by setting the number in New sieze(MiB)


    Img 3.29

  • 10) After setting the capacity, clickResize/Move in the lower right corner


    Img 3.30

  • 11) After confirming that it is correct, click the green button shown in the figure below


    Img 3.31

  • 12) Then select Apply, and the expansion of the rootfs partition will officially start


    Img 3.32

  • 13) After the expansion is completed, click Close to close


    Img 3.33

  • 14) Then you can pull out the TF card, insert it into the development board and start it up. After entering the Linux system of the development board, if you can use the df -h command to see that the size of the rootfs partition is the same as the size set before, it means that the size has been reduced. capacity success

    root@orangepi:~# df -h
    Filesystem Size Used Avail Use% Mounted on
    udev 925M 0 925M 0% /dev
    tmpfs 199M 3.2M 196M 2% /run
    /dev/mmcblk0p1 7.7G 3.2G 4.4G 42% /

     <         > 


  • Страница:   25    26    27    28    29    30    31    32    33    34    35    36    37    38    39    40    41    42    43    44    45    46    47    48    49    50    51    52    53    54    55    56    57    58    59    60    61    62    63    64    65    66    67    68    69    70    71    72    73    74    75    76    77    78    79    80    81    82    83    84    85    86    87    88    89    90    91    92    93    94    95    96    97    98    99    100    101    102    103    104    105    106    107    108    109    110    111    112    113    114    115    116    117    118    119    120    121    122