Emergency mode after reboot stuck on "Failed to start switch root"

Issues related to applications and software problems
Post Reply
dontharoz
Posts: 5
Joined: 2019/12/20 12:44:08

Emergency mode after reboot stuck on "Failed to start switch root"

Post by dontharoz » 2019/12/20 12:54:12

Hello guys, Please I need help
the server was working fine, something happens don't know after I've rebooted the server
its boot on Emergency mode I've attached screen from " journalctl ".

Image

Image


how can I fix it? and boot the server normally

THanks

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Emergency mode after reboot stuck on "Failed to start switch root"

Post by TrevorH » 2019/12/20 13:02:09

Try booting the rescue kernel and if that fails then you will need to boot from alternative media like the install DVD in rescue mode (an option off the initial menu's Troubleshooting option).

It's complaining that /etc/os-release does not exist. Check in your root filesystem's /etc/for that file and see if it exists and is valid.

Or perhaps your disk is not being seen at all - for example, maybe your CMOS battery ran out and your BIOS forgot all its settings so the disk is now using different settings e.g. RAID instead of AHCI and is not being seen properly?
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

dontharoz
Posts: 5
Joined: 2019/12/20 12:44:08

Re: Emergency mode after reboot stuck on "Failed to start switch root"

Post by dontharoz » 2019/12/20 13:10:48

Hello TrevorH,

/etc/os-release it seems there but not valid, its clean file. dunno
here is an image

Image

how can i check ? BIOS

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Emergency mode after reboot stuck on "Failed to start switch root"

Post by TrevorH » 2019/12/20 13:23:42

Each machine has its own way to enter the BIOS settings though most use either Del or F2 during POST.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

dontharoz
Posts: 5
Joined: 2019/12/20 12:44:08

Re: Emergency mode after reboot stuck on "Failed to start switch root"

Post by dontharoz » 2019/12/20 13:32:56

The server already have 2 hards and using Raid1 for them

Image


they are not shown here
!!

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Emergency mode after reboot stuck on "Failed to start switch root"

Post by TrevorH » 2019/12/20 13:37:11

Do you have a separate hardware RAID card? If so then it may have its own setup but if you do then it makes it less likely to be a settings change as it should also have its own battery.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

dontharoz
Posts: 5
Joined: 2019/12/20 12:44:08

Re: Emergency mode after reboot stuck on "Failed to start switch root"

Post by dontharoz » 2019/12/20 13:42:30

Yes, the server has its own raid card, I will try to boot a usb DVD with centos ( as rescue didn't boot ) and try troubleshooting options.

dontharoz
Posts: 5
Joined: 2019/12/20 12:44:08

Re: Emergency mode after reboot stuck on "Failed to start switch root"

Post by dontharoz » 2019/12/20 14:34:58

I've mounted a USB with centos 7 iso and tried to boot rescue but stuck here
Image

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Emergency mode after reboot stuck on "Failed to start switch root"

Post by TrevorH » 2019/12/20 14:51:09

How did you create the USB stick? Did you check the sha256sum of whatever iso file you downloaded against the list in the relevant version of the CentOS release notes? See https://wiki.centos.org/HowTos/InstallFromUSBkey for a list of broken utilities that should not be used.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply