range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn 38 www.xunlong.tv
3.7. The first time the Linux5.4 system starts to automatically
expand rootfs
1) When the linux5.4 system is started for the first time through the TF card, the
orangepi-resize-filesystem script will be called through the
orangepi-resize-filesystem.service systemd service to automatically expand the rootfs
2) After logging in to the system, you can use the df -h command to check the size of
rootfs. If it is consistent with the actual capacity of the TF card, it means that the
automatic expansion is running correctly
root@orangepi:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 430M 0 430M 0% /dev
tmpfs 100M 5.6M 95M 6% /run
/dev/mmcblk0p1 15G 915M 14G 7% /
tmpfs 500M 0 500M 0% /dev/shm
3) It should be noted that the Linux system has only one partition in ext4 format, and
does not use a separate BOOT partition to store files such as kernel images, so there is no
problem of BOOT partition expansion
4) In addition, if you do not need to automatically expand rootfs, you can use the