Issues rebooting with Pi3b

I moved my Raspberry Pi 3b last night to the server cabinet I have in my basement. But it wouldn’t come back online after that. However I was able to ping it. So I took it back upstairs and hooked up the Pi to a TV and booted it again. All seems fine and I can also login to the console as root. Non of the commands that are displayed seem to have any result.

I’ve had this before and reinstalled it. But I’d like to figure out a better sollution. I don’t feel like doing a reinstall every time I unplug it for whatever reason.

I’ve searched the forums but can’t find any topics that help me with this.