Friday, April 19, 2024
 Popular · Latest · Hot · Upcoming
15
rated 0 times [  15] [ 0]  / answers: 1 / hits: 37733  / 2 Years ago, fri, february 18, 2022, 9:20:05

I am making installation for school computers. I would like to remove single user mode booting, which can make student root user. How to permanently remove single user / recovery mode from GRUB? I am also concerned with updating kernel (update-grub)



I DO need GRUB for booting into Windows installation.


More From » grub2

 Answers
1

  1. Open a terminal with Ctrl+Alt+T shortcut and type this command and then hit Enter.



    gksu gedit /etc/default/grub

  2. The above command will open GRUB default file in gedit text editor. Search for a section like this one:



    # Uncomment to disable generation of recovery mode menu entries
    #GRUB_DISABLE_RECOVERY="true"

  3. Remove the # mark from the line #GRUB_DISABLE_RECOVERY="true". The changed section should look like this:



    # Uncomment to disable generation of recovery mode menu entries
    GRUB_DISABLE_RECOVERY="true"


    Save the file by pressing Ctrl+S, then exit gedit.


  4. Then again going to the terminal, execute the below command:



    sudo update-grub



Restart to see that the recovery option has gone.


[#35640] Saturday, February 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ingsta

Total Points: 391
Total Questions: 103
Total Answers: 124

Location: Bonaire
Member since Wed, Mar 29, 2023
1 Year ago
;