• Home
  • Disclaimer
  • Contact
  • Archives
  • About
  • Subscribe
  • Support
  • Advertise

Kernel Talks

Unix, Linux, & Cloud!

  • How-to guides
    • Howto
    • Disk management
    • Configurations
    • Troubleshooting
  • OS
    • HPUX
    • Linux
  • Miscellaneous
    • Software & Tools
    • Cloud Services
    • System services
    • Virtualization
  • Certification Preparations
    • AWS Certified Solutions Architect – Associate
    • AWS Certified Solutions Architect – Professional
    • AWS Certified SysOps Administrator – Associate
    • AWS Certified Cloud Practitioner
    • Certified Kubernetes Administrator
    • Hashicorp Certified Terraform Associate
    • Oracle Cloud Infrastructure Foundations 2020 – Associate
  • Tips & Tricks
  • Linux commands
You are here: Home / Howto

How to enter single user mode in SUSE 12 Linux?

Published: November 17, 2018 | Modified: June 24, 2020



A Short article to learn how to enter a single-user mode in SUSE 12 Linux server.

Single user mode in SUSE 12 Linux

In this short article, we will walk you through steps that demonstrate how to enter a single-user mode in SUSE 12 Linux. Single user mode is always preferred when you are troubleshooting major issues with your system. Single user mode disables networking and no other users are logged in, you rule out many situations of the multi-user system and it helps you in troubleshooting fast. One of the most popular uses of single-user mode is to reset forgotten root password.

1. Halt boot process

First of all, you need to have a console of your machine to get into single-user mode. If its VM then VM console, if its physical machine then you need its iLO/serial console connected. Reboot the system and halt automatic booting of the kernel at the grub boot menu by pressing any key.

Kernel selection menu at boot in SUSE 12

2. Edit boot option of kernel

Once you are on the above screen, press e on selected kernel (which is normally your preferred latest kernel) to update its boot options. You will see be below screen.

grub2 edits in SUSE

Now, scroll down to your booting kernel line and add init=/bin/bash at the end of the line as shown below.

Edit to boot in single-user shell

3. Boot kernel with edited entry

Now press Ctrl-x or F10 to boot this edited kernel. The kernel will be booted in single-user mode and you will be presented with hash prompt i.e. root access to the server. At this point in time, your root file system is mounted in read-only mode. So any changes you are doing to the system won’t be saved.

Run below command to remount root filesystem as re-writable.

kerneltalks:/ # mount -o remount,rw /

And you are good to go! Go ahead and do your necessary actions in single-user mode. Don’t forget to reboot the server or type exit to boot into normal multiuser mode once you are done.

⇠ Previous article
Install and configure checkmk server on Linux
Next article ⇢
How to configure proxy for YUM in RHEL, CentOS ?

Related stuff:

  • How to move /tmp on a separate disk as a separate mount point
  • How to setup domain name in Linux server
  • How to find AWS resources that need to be tagged
  • How to change timezone in Linux server (RedHat, CentOS, Ubuntu)
  • How to disable GUI in SUSE Linux
  • How to execute command inside Docker container
  • How to list YUM repositories in RHEL / CentOS
  • bdf command formatted output in hpux
  • 5 ways to check swap on Linux
  • How to establish passwordless ssh between two servers
  • Hyperthreading in HPUX
  • Howto get Disk serial number in HPUX

Filed Under: Howto Tagged With: how to edit suse kernel boot option, login single user mode in suse 12, recover root password in suse 12

If you like my tutorials and if they helped you in any way, then

  • Consider buying me a cup of coffee via paypal!
  • Subscribe to our newsletter here!
  • Like KernelTalks Facebook page.
  • Follow us on Twitter.
  • Add our RSS feed to your feed reader.

Share Your Comments & Feedback: Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Get fresh content from KernelTalks

  • Email
  • Facebook
  • RSS
  • Twitter

Get Linux & Unix stuff right into your mailbox. Subscribe now!

* indicates required

This work is licensed under a CC-BY-NC license · Privacy Policy
© Copyright 2016-2023 KernelTalks · All Rights Reserved.
The content is copyrighted to Shrikant Lavhate & can not be reproduced either online or offline without prior permission.