EasyManua.ls Logo

Orange Pi R1 Plus - Start Rootfs in Auto-Expanding TF Card

Orange Pi R1 Plus
115 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
range Pi 用户手册 深圳市迅龙软件有限公司版权所有
www.orangepi.cn
52
www.xunlong.tv
5.4. Start the rootfs in the auto-expanding TF card for the first
time
1) When the TF card starts the linux system for the first time, it will call the
orangepi-resize-filesystem script through the orangepi-resize-filesystem.service
systemd service to automatically expand the rootfs, so there is no need to manually
expand
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@orangepir1plus:~# 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
following method to prohibit
a. First burn the linux image to the TF card, after burning the image to the TF,
remember not to start the linux system
b. Then insert the TF card into the Ubuntu PC (Windows does not work), the Ubuntu
PC will usually automatically mount the TF card partition, if the automatic mounting
is normal, use the ls command to see the following output, the TF card partition
name and the following command The names shown are not necessarily the same,
please modify according to the actual situation
test@test:~$ ls /media/test/27e62f92-8250-4ef1-83db-3d8f0c2e23db/
bin boot dev etc home lib lost+found media mnt opt proc root run
sbin selinux srv sys tmp usr var
c. Then switch the current user to root user in Ubuntu PC

Table of Contents

Related product manuals