Difference between revisions of "Explorer/RaspberryPi/PowerOffProtection"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
* Install | |||
git clone https://github.com/marklister/overlayRoot.git | git clone https://github.com/marklister/overlayRoot.git | ||
cd overlayRoot | cd overlayRoot | ||
Line 9: | Line 9: | ||
sudo update-rc.d dphys-swapfile remove | sudo update-rc.d dphys-swapfile remove | ||
* Check | |||
check: reboot, create file, reboot, file is not here | check: reboot, create file, reboot, file is not here | ||
Line 15: | Line 16: | ||
check: reboot, create file, reboot, file is here | check: reboot, create file, reboot, file is here | ||
* Usage | |||
sudo mount -o remount,rw /ro | |||
sudo chroot /ro |
Revision as of 02:13, 23 June 2020
- 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