SUSE Support

Here When You Need Us

How to boot up in single user mode or other run levels

This document (7001985) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 11
SUSE Linux Enterprise Server 10
SUSE Linux Enterprise Server 9
SUSE Linux Enterprise Desktop 11
SUSE Linux Enterprise Desktop 10
 

Situation

Under certain circumstances, the system needs to be booted up in single user or other run levels.

Resolution

On SUSE Linux, the method of starting a server in different run levels is similar. SLE 10 and 11 support the SLE 9 methods.

SLE 9
When the boot loader screen is presented type:
  • "single" for single user mode
  • "init X", where X is the run level number that needs to be booted
  • "/bin/bash" for more advanced rescue methods and where init or inittab is bad

SLE 10 and 11
When the boot loader screen is presented type:
  • "s" or "single" for single user mode
  • "X" or "init X", where X is the run level number that needs to be booted
  • "/bin/bash" for more advanced rescue methods and where init or inittab is bad

Xen para-virtual SLE (all versions), first method
This method uses the legacy installation file. Any hardware changes made to a managed domain via "YaST", "virt-manager" or "xm commands" will not be present.  Replace "DOMU" with the name of your DomU.
  1. Go to "/etc/xen/vm"
  2. Locate the installation file, usually the name of the Xen DomU
  3. Use the "xm create" command. (The "-c" will connect to the console, and "xencons=xvc0" will use the Xen frame buffer for SLES 10 SP1 and higher, and SLES 9 SP4. Use "xencons=tty" for SLES 10).
    xm create -c DOMU extra=" init 1 xencons=xvc0"
  4. Shutdown the DomU after making changes
  5. Start the DomU normally

Xen para-virtual SLE (all versions), second method
This method uses the managed domain configuration store in the XenStore. This method should be used when a hardware change has been made using "YaST", "virt-manager" or "xm commands." If you are are unsure as to what method to use, use this method. Replace DOMU with the name of your DomU.
  1. Export the configuration for the DomU.
    "xm list -l DOMU > domu.py"
  2. Start the DomU using the "xm create" command.  (The "-c" will connect to the console, and "xencons=xvc0" will use the Xen frame buffer for SLES 10 SP1 and higher, and SLES 9 SP4. Use "xencons=tty" for SLES 10).
    xm create -c -F domu.py extra="  single xencons=xvc0"
  3. Shutdown the DomU after making changes
  4. Start the DomU normally

Commonalities
Under all versions of SLES, booting into single user mode will present the user with a prompt for the root password.

Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7001985
  • Creation Date: 21-Nov-2008
  • Modified Date:24-Mar-2021
    • SUSE Linux Enterprise Desktop
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.