Skip to content

Instantly share code, notes, and snippets.

@alecthegeek
Created August 6, 2016 09:17
Show Gist options
  • Save alecthegeek/21aabe4ef4ecde8c308162570c2ef786 to your computer and use it in GitHub Desktop.
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
# 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