Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Read-only file system

Featured Replies

Hello there,

I'm trying to do is read-only  system. My system will only work nginx and cron.
I do not want to system update.
I made some sets available below. Do you think I'm doing all right?

 

apt-get remove logrotate
apt-get install busybox-syslogd
dpkg --purge rsyslog

disable swap     /etc/sysctl.conf in  ` vm.swappiness=0 `

remove fake-hwlock, install ntpdate update clock boot and every hour

rm -rf /var/lib/dhcp/
ln -s /tmp /var/lib/dhcp


rm -rf /var/run /var/spool /var/lock
ln -s /tmp /var/run
ln -s /tmp /var/spool
ln -s /tmp /var/lock

insserv -r bootlogs
insserv -r alsa-utils

fstab edit
/dev/mmcblk0p1  /           ext4    defaults,noatime,nodiratime,data=writeback,ro <- add ro
#/var/swap none swap sw 0 0 <- disable swap

disabled service:

armhwinfo,unattended-upgrades,ntp

rm /etc/cron.daily/*
rm /etc/cron.weekly/*


Is there something else I can add to you ?
Do you have a configuration can suggest



thanks

 

 

I would better do a web search for 'overlayfs initramfs debian' and then ask if OverLayFS is available for H3 and if Armbian supports initramfs. That would be a sane approach to mount the rootfs on SD card read-only without breaking anything.

Guest
This topic is now closed to further replies.

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.