(Edit: leaving the original question for background; skip down to below the divider if you aren't interested.)
My residence recently experienced a power outage. Unfortunately, as I was out at the time, I was not able to cleanly shut down my system before the UPS ran out of battery.
My Linux machine seems fine, but my FreeBSD (12.1) machine won't boot. Instead of a login prompt, it drops me straight into an unprivaleged shell that won't even let me su.
I have inspected both the tty boot messages (as best I can, given that they scroll away) as well as /var/log/messages, but the only potential indications of a problem are:
- An angry beep (lower and slightly longer than the POST beep)
- An error message about "MSI-X tables"
/is mounted read-only
I've manually run fsck (booting in single-user mode seems to work okay, except the system isn't really usable like that) is clean. I'm running a zpool scrub on the storage array (the OS is on UFS, but this box is essentially a NAS) but don't anticipate any errors. Other than some open sshfs connections, the system would not have been doing anything at the time it lost power.
Other notes:
- The system was originally installed as FreeBSD 12.0, and it's quite possible it has never been booted since upgrading.
- The root FS mounts and "looks" intact. (Read: I ran
lson a couple directories and expected files seem to be present. - I've installed some stuff from ports (mostly GNU CLI tools), but AFAIK no kmods or anything like that. The system is a fairly basic budget AMD+APU.
- It appears that all physical keypresses are being recorded in
/var/log/messages?
What could be wrong?
Edit: Well... I'm sort of an idiot, although this is still a WTF? situation. However, I'm now less certain the machine hasn't been doing this since installation; now that I realize what's happening, I think I've seen this before, so it probably has nothing to do with the power loss. (Did I mention it doesn't get rebooted often?)
I finally noticed something funny about the shell I was getting dumped in. Can you spot it? Here's the last few lines after boot:
Updating motd:. Mounting late filesystems:. Security policy loaded: MAC/ntpd (mac_ntpd) Starting ntpd. [ntpd@<redacted> /]$ █ ...and that's it; no login, no errors, no network, just the completely nerfed command prompt shown above.
So why the heck is it doing this? (Hint: ^D "fixes" it, as you might expect if you've noticed what's wrong, but why does it do this? I'd like my system to boot up without needing its hand held! I suspect this also means I have a non-working daemon 😢.)
ntpdas user.