EasyManua.ls Logo

Orange Pi Zero2 - Start RootFS in Auto-Expanding TF Card; Modify Linux Log Level (loglevel)

Orange Pi Zero2
88 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...
27
3.6. Start the rootfs in the auto-expanding TF card for the first
time
1) When the TF card starts the Linux OS 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 OS, 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.7. How to modify the linux log level (loglevel)?
1) The log level of the Linux OS is set to 1 by default. When using the serial port to
view the startup information, the kernel output log is as follows, basically all shielded
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
Orange Pi 2.0.8 Bionic ttyS0
orangepi login:

Table of Contents

Related product manuals