Skip to content

Instantly share code, notes, and snippets.

@darkgeek
Created January 28, 2016 10:33
Show Gist options
  • Save darkgeek/abd7cb096f02849e6c33 to your computer and use it in GitHub Desktop.
Save darkgeek/abd7cb096f02849e6c33 to your computer and use it in GitHub Desktop.
How to do fsck rootfs on FreeBSD
1. Go into single user mode
# shutdown now
2. Mount / as read-only:
# mount -fr /
3. Run fsck to repair UFS:
# fsck -y
4. Remount / as read-write:
# mount -fw /
5. Reboot
# shutdown -r now
6. Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment