armbian修改/var/log并保护emmc

搞机&折腾 · 2021-11-24 · 225 人浏览

https://blog.csdn.net/a1647800606/article/details/103684528

用途:玩客云等arm设备刷armbian后操作

修改zram0大小、禁用zra0:

sudo nano /etc/default/armbian-ramlog

禁用write写入同步缓存日志数据:

sudo nano /usr/lib/armbian/armbian-ramlog

.....
syncToDisk () {
    # no sync to protect emmc
    **return 0**
    isSafe
 
.....
Theme Jasmine by Kent Liao
beian
皖公网安备34122202000364号