Last Updated: 14 Oct 2023

   |   

Author: dordal

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
server-tech:centos:single-user-mode [May 14, 2008 12:52 AM]
dordal
server-tech:centos:single-user-mode [Oct 14, 2023 04:41 AM]
dordal old revision restored (Nov 21, 2020 10:39 PM)
Line 1: Line 1:
 += Getting into Single User Mode in CentOS 5=
  
 +
 +Unlike [[Server Tech:FreeBSD|FreeBSD]], which lets you boot into single user mode from a startup menu, getting into Single User Mode in CentOS is a little more complicated. Here's how:
 +
 + * Reboot the system:<code bash>bash# reboot</code>
 + * When the system reboots, it will say 'Press any key to enter the boot menu....'. Press a key, and you'll get to GNU GRUB.
 + * Choose the kernel you want (probably the one that's listed on top), and press ''e''
 + * Scroll down to the partition that has your kernel on it (it should start with ''kernel'') and press ''e'' again.
 + * It will now display something like:<code bash><0/LogVol00</code>Enter ''<space> single'' after that, so you've got:<code bash><0/LogVol00 single</code>That tells CentOS to boot at run-level 1 in single user mode. You can also type ''emergency'' instead of ''single'', which does the same thing but doesn't start any of your init scripts.
 + * Hit return to get back to the screen that lists your kernel, and then hit ''b'' to boot.
 +
 +More info on single user mode and rescue mode is [[http://www.centos.org/docs/2/rhl-cg-en-7.2/rescuemode.html|available from the CentOS docs]].