NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: corrupt /etc: how to gracefully shut down?



On Fri, 06 Nov 2026 12:04:05 -0500
Brad Spencer <brad%anduin.eldar.org@localhost> wrote:

> What I am going to suggest assumes you have console access.  If you do
> not, then it may be more challenging.
> 
> On the console as root:
> 
> kill -15 1    - this will bring you down to single user
> umount -a     - this will unmount as many of the filesystems as it can.
>               In particular the root filesystem won't be unmounted with this.
> poweroff      - or equivalent...  shuts the system down

Thanks, I did indeed have console access so I followed this, with the
change that I sent a SIGTERM to nfsd and its sibling processes and
unmounted the data partitions (and disabled swap) before sending the
SIGTERM to init.

I was under the impression that you had to disable the raid with raidctl
but could not find a trace of that in the missing rc scripts so I let
it be and let poweroff handle the rest. The system made a 'thunk' sound
when it powered off which was unnerving -- I expected to hear the hdds
spin down a few seconds before the actual power cut. Maybe I should've
used 'halt' instead and cut power manually. But I guess it worked out
all right in the end.


Home | Main Index | Thread Index | Old Index