Created
August 6, 2016 09:17
-
-
Save alecthegeek/21aabe4ef4ecde8c308162570c2ef786 to your computer and use it in GitHub Desktop.
Make a Rasbperry Pi always perform a file system check and repair on boot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Make the pi run file system check/repair on every boot (need to clear out old settings 1st) | |
sudo sed -i -e 's/ fsck\.\(repair\|mode\)=[^ ]*//; | |
s/$/ fsck.mode=force fsck.repair=yes/' /boot/cmdline.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment