Why does the RHEL 8 system boot into emergency mode with `Failed to switch root` error ?

Solution Verified - Updated -

Issue

  • During boot system goes to Emergency mode with Failed to switch root error. Observing below error in the rdsosreport.txt file :

    localhost systemd[1]: Starting Switch Root...
    localhost systemctl[1027]: Failed to switch root: Specified switch root path '/sysroot' does not seem to be an OS tree. os-release file is missing.
    localhost systemd[1]: initrd-switch-root.service: Main process exited, code=exited, status=1/FAILURE
    localhost systemd[1]: initrd-switch-root.service: Failed with result 'exit-code'.
    localhost systemd[1]: Failed to start Switch Root.
    
  • The root file system is not showing under /sysroot in the Emergency mode.

    # mount -o remount,rw /sysroot
    # ls 
    /var/lib/nfs/rpc_pipefs
    

Environment

  • Red Hat Enterprise Linux 8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content