How to check filesystem?
-
So, I have a new roommate. He’s used to commercial routers that you can just power off and on when something is amiss. I’m used to having a roommate that knows you can’t do that on these routers.
I just caught him unplugging the router due to internet issues at 1 AM. He apparently has done this several times before. How do I run fsck on my box at boot time? I’m on an 1100.
Failing that, where do I download the reinstall image for PfSense+?
-
For what it’s worth, the box does boot, but I’m nervous about letting it run with a potentially corrupt FS.
-
Here is the official pfSense documentation for running a manual file system check: https://docs.netgate.com/pfsense/en/latest/troubleshooting/filesystem-check.html#filesystem-check-manual. Google searches can be your friend . This is the first returned hit from a search with these terms: "pfsense repair filesystem"
You can't directly download pfSense Plus images (and that is what any Netgate-branded appliance runs). You must request those images directly from Netgate TAC here: https://www.netgate.com/tac-support-request. Fill in the requested information (being sure to include the Netgate ID of your SG-1100), and the support group will send you an email with a link to the installer image for your box.
-
Hmm. Sorry, it was after 1 AM. I don’t do my best thinking after 9 PM.
On the other hand, the instructions need to be updated.
There is no option for a filesystem check in Diagnostics->reboot menu in the GUI, and fsck gives an error about unsupported filesystem or something. Sorry, not sitting in front of it right now.
-
@aaronouthier said in How to check filesystem?:
Hmm. Sorry, it was after 1 AM. I don’t do my best thinking after 9 PM.
On the other hand, the instructions need to be updated.
There is no option for a filesystem check in Diagnostics->reboot menu in the GUI, and fsck gives an error about unsupported filesystem or something. Sorry, not sitting in front of it right now.
The link should have taken you direct to the "Manual File System Check" section (the one a little farther down the page), but it may have dropped at the "Automatic Check" instead.
While I would not expect it to be, is your appliance perhaps using ZFS instead of UFS? That might help explain why it has survived those "pulled the plug" events better than expected.
-
Yes! Running “mount” from an ssh prompt shows / is mounted as zfs.
-
@aaronouthier said in How to check filesystem?:
Yes! Running “mount” from an ssh prompt shows / is mounted as zfs.
Okay, then
fsck
, or any other conventional filesystem check, is not supported.ZFS is fairly resilient, so the system is likely okay. You can run the ZFS scrub command as explained at the very top of the page I linked, but that is not exactly the same as
fsck
on the old UFS systems. -
@bmeeks
Good to know!