Simple single user mode on Fedora 12
Recently I had a problem with my nvidia driver and kernel which crippled my machine at boot-up. After the grub screen the pretty plymouth eye candy never appeared, the monitor went into power-saving mode, and I couldn’t even access a local console with Ctrl-Alt-F2.
Normally I would have reverted to a previous kernel, but in this instance the machine had just been clean installed with web repositories, so it only had the broken kernel. To make matters even worse, the DNS server refused to return information about the machine, which had registered with DHCP, but hadn’t sent the host name. Since I didn’t know the IP, I couldn’t log in with SSH.
Single User mode to the rescue! This is the perfect use for a single user login. The procedure is pretty simple, as far as Linux recovery steps go.
- Interrupt grub at startup and press ‘
a‘ to edit the kernel line. - Remove the ‘
rhgb‘ and ‘quiet‘ options and replace them with ‘single‘ - Boot the kernel with your modified options
- Once the kernel boots, you can run disk checks or other repair activities.
- In this case, I wanted to continue to a normal boot prompt, which is run-level three. On Fedora and other RedHat-derived systems simply type ‘
init 3‘ at the single user prompt.
The machine will immediately continue with the boot sequence, starting other necessary services. The process stops at a login prompt. Hopefully you have instructions to assist in fixing the problem from there. When you are done you can issue a ‘reboot‘ and find out if you’ve fixed the problem!
