EasyManua.ls Logo

Orange Pi R1 Plus - How to Modify the Linux Log Level (Loglevel)

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
53
www.xunlong.tv
test@test:~$ sudo -i
[sudo] test password
root@test:~#
d. Then enter the root directory of the Linux system in the TF card and create a
new file named .no_rootfs_resize
root@test:~# cd /media/test/27e62f92-8250-4ef1-83db-3d8f0c2e23db
root@test:/media/test/27e62f92-8250-4ef1-83db-3d8f0c2e23db# cd root
root@test:/media/test/27e62f92-8250-4ef1-83db-3d8f0c2e23db/root#
touch .no_rootfs_resize
root@test:/media/test/27e62f92-8250-4ef1-83db-3d8f0c2e23db/root# ls .no_rootfs*
.no_rootfs_resize
e. Then you can delete the TF card, then unplug the TF and plug it into the
development board to start. When the linux system starts, when the
file .no_rootfs_resize in the /root directory is detected, the rootfs will no longer
be automatically expanded
f. After prohibit automatic expansion of rootfs, you can see that the available
capacity of the TF card is only about 168M
root@orangepir1plus:~# df -h
Filesystem Size Used Avail Use% Mounted on
udev 417M 0 417M 0% /dev
tmpfs 98M 2.9M 96M 3% /run
/dev/mmcblk0p1 1.3G 1.1G 168M 87% /
tmpfs 490M 0 490M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 490M 0 490M 0% /sys/fs/cgroup
tmpfs 490M 4.0K 490M 1% /tmp
/dev/zram0 49M 1.3M 44M 3% /var/log
tmpfs 98M 0 98M 0% /run/user/0
5.5. How to modify the linux log level (loglevel)?
1) The loglevel of the linux system 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 ...

Table of Contents

Related product manuals