只要在etc目录下搜索这个文件S10checkroot.sh 

然后把rw模式--->ro模式就可以了


内核启动的时候,在内核中把ubifs文件系统挂载为rw模式,然后系统启动后通过S10checkroot.sh 脚本修改为ro模式,

如果系统启动的进程太多的话,再去修改为ro模式,系统会报错busy

修改后通过mount命令查看,已经修改为只读模式

root@HDMTerm:~# mount
rootfs on / type rootfs (rw)
ubi0:rootfs on / type ubifs (ro,sync,relatime)
devtmpfs on /dev type devtmpfs (rw,relatime,size=114304k,nr_inodes=28576,mode=755)
proc on /proc type proc (rw,relatime)
none on /dev/shm type tmpfs (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
tmpfs on /var/volatile type tmpfs (rw,relatime,size=16384k)
tmpfs on /media/ram type tmpfs (rw,relatime,size=16384k)
tmpfs on /opt/tmp type tmpfs (rw,relatime,size=131072k)
tmpfs on /mnt/.psplash type tmpfs (rw,relatime,size=40k)
sysfs on /sys type sysfs (rw,relatime)
root@HDMTerm:~# 

GitHub 加速计划 / li / linux-dash
10.39 K
1.2 K
下载
A beautiful web dashboard for Linux
最近提交(Master分支:23 天前 )
186a802e added ecosystem file for PM2 4 年前
5def40a3 Add host customization support for the NodeJS version 4 年前
Logo

旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。

更多推荐