How to turn off recovery mode in Ubuntu 12.04 system

  
                

Many people may not know that the Ubuntu system has its own recovery mode. So what is the recovery mode? Anyone can change the computer password through the recovery mode. If you don't know the mode, you can turn it off and reduce the risk. The following small series will introduce you how to turn off the recovery mode under Ubuntu 12.04.

If you disable this mode, you will not be able to access your computer in recovery mode in an emergency. So if you need it, you can choose to disable Recovery Mode.

Ubuntu 12.04 follows:

Open terminal to execute: sudo vi /etc /default /grub (vi unfamiliar can be changed to gedit)

The [ #GRUB_DISABLE_RECOVERY=“true”]# before the line is highlighted (# represents a comment) (see Figure 1), save and exit, then execute sudo update-grub2, and you're done.

next start time boot menu will be no recovery mode a.

ps: If the recovery mode is disabled, there is a problem with the system, but I still want to modify some files of the system:

Very simple, use a USB disk to make a boot disk, then from the U disk Start, choose the trial, you can. You can also have root privileges.

Of course, if there is no special request, it is best not to do so.

PS:

If you want to use it again after you disable it, you can select the system you want to start in the grub2 selection interface, press e to enter the edit mode, and the line in the Load Kernel The line starting with linux is followed by a single, such as the last

linux /boot/vmlinuz-2.6.32-43-generic root=/dev/mapper/linux-lucid ro quiet splash single

Press Ctrl + B to start and you will be in recovery mode.

If you want the mode memtest86+,

enter the /etc/grub.d/directory and cancel the executable permission of 20_memtest86+.

sudo chmod -x 20_memtest86+

The above is the introduction of Ubuntu 12.04 shutdown mode. Other Ubuntu versions can be used as a reference. In order to prevent others from modifying user passwords, it is best to turn them off.

Copyright © Windows knowledge All Rights Reserved