Yikes! You chose the dirtiest method. At least try logging off any logged-in user in case your blockage problem is caused by some active user process. And if the problem, whatever it is, is still not fixed, try going single user. Hopefully this will properly sync everything (write caches) that needs syncing and avoid data corruption/loss and process crashes.Just had to add -f, then it works.
-f [...] The root file system cannot be forcibly unmounted, so I don't what's happening (or not happening) here.Go single user (kill -TERM 1) first if you don't want to force mount readonly.
# shutdown now is considered to be a more graceful method.Use ZFS for the root file system? No fsck required. But you're probably interested in the leanest and fastest system.
Maybe a stripped down install that takes everything via nfs... Make a 1st image and when things go wrong, overwrite the partition with the original again. A basic FreeBSD system is +/- 450MB. You can still make a lot of it remote. I think 200MB for the entire system must be possible. That's a few seconds recovery.I need the system in multi user mode with me logged in.
The background is that I do very panic()iky kernel work and don't want to go through fsck when I reboot.
Maybe a stripped down install that takes everything via nfs... Make a 1st image and when things go wrong, overwrite it with the original again. A basic FreeBSD system is +/- 450MB. You can still make a lot of it remote. I think 200MB for the entire system must be possible. That's a few seconds recovery.
That doesn't bring the system down to single user mode. Also note that (from a FS perspective) reboot is good enough now (instead of "shutdown now").# shutdown nowis considered to be a more graceful method.
I've used it for just that for years. And the Handbook seems to agree:That doesn't bring the system down to single user mode.
15.2.4.1. Single-User Mode
[...] It can also be reached by runningshutdown nowfrom multi-user mode.
Since there are no other users on my machines and since it splats a message on every logged in virtual terminal I usually don't bother with it!The shutdown utility provides an automated shutdown procedure for super-
users to nicely notify users when the system is shutting down, saving
them from system administrators, hackers, and gurus, who would otherwise
not bother with such niceties.
Is it? It's been a while since I actually did that, but wasn't the purpose of that getting to single user mode if for some reason you want to do so before/without rebooting? It seems sensible enough to me that it would default to the thing that's the least likely to cause extra problems as you can still shutdown or reboot from there without an real headaches.Seems strange that shutdown without options doesn't actually shut the system down!
From its man page:
Since there are no other users on my machines and since it splats a message on every logged in virtual terminal I usually don't bother with it!