Boot my Gen 4 VPS into single-user mode
Warning: This article covers an advanced technical topic where it's possible to make unwanted changes that GoDaddy cannot help you fix (see our Statement of Support). Before making changes, we strongly recommend downloading a backup.
When you can't access your server using normal methods like SSH or the control panel (WHM/cPanel or Plesk), you may be able to boot into single-user mode using your Recovery Console.
- Go to your GoDaddy product page and select Manage for your server.
- Select the Server Actions dropdown menu, and then Recovery Console.
-
Send Ctrl+Alt+Delete through the console.
- If you see a selectable menu: Select through the menu to send Ctrl+Alt+Delete.
-
If you don't see a selectable menu and you're using:
- Mac: Select the focus of the console and then select Ctrl+Option+Cmd+Delete.
- Windows: You must pass Ctrl+Alt+Delete through your browser's Developer Tools.
- In the Recovery Console, the GRUB menu should quickly appear in the SPICE window. Stop the boot process by selecting the focus of the window and selecting Esc.
- Select the Up and Down arrow keys to navigate to the entry you wish to edit, and select the E key to edit the GRUB entry (this is not persistent).
-
In the line that starts with
linux
orlinux16
, replacero
withrw init=/sysroot/bin/bash
.
Required: For Ubuntu servers, updatero
torw
in the same place butinit=/bin/bash
(no sysroot) should be added instead and it must be added to the end of the line after any other kernel commands. - Remove any param for
console=
. - Select Ctrl+X.
- At the prompt, start a new shell with the correct root with
chroot /sysroot
(unless on Ubuntu).
Once in single-user-mode, you can change the root password, enable direct root SSH access, delete files or disable the firewall. When you’re ready to boot into multi-user mode, you can use reboot –f
.