Explorer/RaspberryPi/PowerOffProtection
Jump to navigation
Jump to search
- Install
git clone https://github.com/marklister/overlayRoot.git cd overlayRoot sudo bash install
sudo dphys-swapfile swapoff;\ sudo dphys-swapfile uninstall;\ sudo update-rc.d dphys-swapfile remove
- Check
check: reboot, create file, reboot, file is not here
/boot/cmdline.txt remove "init=/sbin/overlayRoot.sh"
check: reboot, create file, reboot, file is here
- Usage
sudo mount -o remount,rw /ro sudo chroot /ro