0

My rootserver's power supply died the day before and the hoster had to replace it. Since then, the server does not boot correctly anymore. Because of the sudden powerloss, it starts right in some kind of maintenance mode.

The hoster is not able to further help me and sent me the screenshot.

enter image description here I can login to the server using a remote "recovery" image (I have no access to KVM, only the hoster does) which I think is some kind of rescue image that allows me to mount my original sda (which I can do successfully).

How can I turn off the maintenance mode and boot into default mode using the rescue image? When I enter any systemctl command, it does not apply to my real system but apparently to the resuce image in RAM. I think I have to change a file on the mounted disc or something.

Please guide me out of this :-(

Update:

The support team sent me another screenshot: enter image description here

Daniel W.
  • 1,439
  • 4
  • 23
  • 46
  • 1
    Slightly above what's on the screen it should say something about what caused it to enter the emergency shell. Can you get a new screenshot after having the hoster press shift-pageup to scroll back? – Tollef Fog Heen Jun 22 '17 at 19:31
  • That maintenance mode usually has to do with filesystems not found, or were unmounted improperly (which may be your case, since the server lost power suddenly). As @TollefFogHeen said, I would try to guess the error from output that came before what you are showing. Also, check if you have a `chroot` utility on that rescue image you are booting. For instance, Hetzner has `chroot_prepare` (which mounts `/dev`, `/sys`, et. al.) and `chroot`, which allow to "get into" your server after you mounted its root filesystem. There you can perpaps run the recommended `journalctl -xb` and gather info. – Pablo Jun 23 '17 at 03:14
  • No success yet. Is there a file where I can set `boot_in_emergecy_mode=false` or something? – Daniel W. Jun 23 '17 at 07:42
  • @TollefFogHeen They sent me a screenshot but I don't know how this error did not come up earlier or don't know how to solve it-- – Daniel W. Jun 23 '17 at 08:41
  • It's right in your screenshot. `Type "systemctl default" to try again to boot into default mode"`. Before doing this in your chroot environment you should run fdisk on your disks, check logs etc. – Gerald Schneider Jun 23 '17 at 09:21
  • @GeraldSchneider the command is useless when I can only boot from the rescue cd. Or maybe `chroot` then `systemctl` ? – Daniel W. Jun 23 '17 at 09:37
  • Yes, as I said, it should work from within chroot. – Gerald Schneider Jun 23 '17 at 09:39
  • @GeraldSchneider When I do this, it sais `Running in chroot, ignoring request.` – Daniel W. Jun 23 '17 at 09:53

3 Answers3

1

Problem solved..

the second SSD in the server is damaged or not properly connected (thus the error A job is still running... for sdb).

I can mount sda but sdb is not in /dev.

Daniel W.
  • 1,439
  • 4
  • 23
  • 46
0

Once you logged into maintenance mode, You should open vim /etc/fstab and uncomment # all the lines except UUID line. then run below commands

$systemctl daemon-reload $systemctl default

-1

If the server turn into recovery mode thats mean you have a bug somewhere on the boot.

Here is a common problem with some hardware.

Just boot from a CD and install driver-nonfree package to fix the boot. Maybe chroot can help you to make things work.

P0pR0cK5
  • 290
  • 1
  • 6