I want to know if there is a way to switch to console mode from the boot menu. I have an NVIDIA 1070 and every time there is an update, the GUI stops working. All I need to do is re-install the drivers; however, to do that I need to be in console mode.
EDIT: I should have added more information to this question but I'll comment on all answers. In short: I've tried text
instead of quiet splash
I do see booting activity in text mode; however, I don't get a login screen and ctrl + Alt + F1 doesn't help because GDM keeps trying to restart. Previously I managed to kill GDM through multiple tries but is not working since the latest update.
EDIT: After searching for runlevel, I've found How do I change the runlevel on systemd? but I think it required me to have a running system to make changes -- please correct me if I'm wrong.
Yes you can. As described here (ubuntuhandbook.org - Boot into text console ubuntu) you need to edit
/etc/default/grub
to have the next boot end up in text mode. In summary you will set these parameters:After saving changes you need to run:
Undoing text-mode
To undo
sudo systemctl set-default multi-user.target
simply typeBoot into recovery mode
Immediately after the motherboard / computer manufacturer logo splash screen appears when the computer is booting, with BIOS, quickly press and hold the Shift key, which will bring up a GNU GRUB menu screen. With UEFI press (perhaps several times) the Esc key to get to the GNU GRUB menu screen. Sometimes the manufacturer's splash screen is a part of the Windows bootloader, so when you power up the machine it goes straight to the GNU GRUB menu screen, and then pressing Shift is unnecessary.
The timing when to press the left Shift key can be tricky, so sometimes if you miss it you need to try it again. If that doesn't work try the answers to I can't get the GRUB menu to show up during boot.
You will see a GNU GRUB menu screen that looks like this. Select Advanced options for Ubuntu and press Enter.
A new purple screen will appear showing a list of kernels, which includes options of booting the kernels normally or in recovery mode.
Press the down arrow key until you select the 2nd entry from the top (the one with the recovery mode in the description) and then press Enter twice.
Now you should see this recovery menu:
Using the arrow keys scroll down to network (the third entry from the bottom in the Recovery Menu) and then press Enter.
Using the arrow keys scroll down to root (the second entry from the bottom in the Recovery Menu) and then press Enter.
You should now see a root prompt and you can run commands from it.
lightdm is called lightdm because it is a lightweight application compared to GDM which is heavy and takes longer to load. If you still have lightdm installed you can switch back to using lightdm as the default login display manager with the command:
sudo dpkg-reconfigure gdm3
. This will open up a new window allowing you to select either gdm3 or lightdm as the default login display manager.Reboot the computer with the command
reboot
After that the keyboard shortcutCtrl+Alt+F3 may start to work properly, and allow you to start Ubuntu from the console.
Start Ubuntu from a virtual console
Open a text-only virtual console by using the keyboard shortcut Ctrl+Alt+F3.
At the
login:
prompt type your username and press Enter.At the
Password:
prompt type your user password and press Enter.Now you are logged in to a text-only console, and you can run terminal commands from the console. To reboot the system run the command:
sudo reboot
. Press the keyboard shortcut Ctrl+Alt+F7 to exit the virtual console. In Ubuntu 17.10 and later press the keyboard shortcut Ctrl+Alt+F2 to exit from the virtual console.After you have logged in in the terminal type
sudo systemctl start graphical.target
and press Enter to bring up your default login screen, and then login to your Ubuntu desktop environment as usual.Press CTRL+ALT+F1 or any other function (F) key up to F7, which takes you back to your "GUI" terminal. These should drop you into a text-mode terminal for each different function key.
Otherwise you can boot into recovery mode if you need:
https://wiki.ubuntu.com/RecoveryMode
Basically hold down SHIFT as you boot up to get the Grub menu.
Editing
/etc/default/grub
gave me the boot menu that I needed to boot in recovery mode.These were my steps:
/etc/default/grub
and setGRUB_TIMEOUT
to-1
(the documentation also mentions that you need to comment out any setting ofGRUB_HIDDEN_TIMEOUT
). This will allow the boot menu to pop up and stay there until you take action.sudo update-grub
for changes to take effect.