Created
January 28, 2016 10:33
-
-
Save darkgeek/abd7cb096f02849e6c33 to your computer and use it in GitHub Desktop.
How to do fsck rootfs on FreeBSD
This file contains 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
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