IT/Software/System Config/grub: Difference between revisions

From msgwiki
Jump to navigation Jump to search
Access restrictions were established for this page. If you see this message, you have no access to this page.
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 6: Line 6:
BECAUSE you normally should not be messing around in here.  
BECAUSE you normally should not be messing around in here.  


=== Make the menu appear ===
===Make the menu appear===


* If only linux is instsalled the menu will not appear by default
*If only linux is instsalled the menu will not appear by default
** There are several menus/Interfaces during bootup.
**There are several menus/Interfaces during bootup.
** BIOS
**BIOS
*** This is very low level where the computer looks for hard drives
***This is very low level where the computer looks for hard drives
*** It checks to make sure everything is in place to boot.
***It checks to make sure everything is in place to boot.
** Grub
**Grub
*** This is the screen where you can pick what Operating System to Boot
***This is the screen where you can pick what Operating System to Boot
*** You can perform some recovery operations
***You can perform some recovery operations
*** Hitting any of the arrow keys will stop the timer so you can look at it.
***Hitting any of the arrow keys will stop the timer so you can look at it.
** Login
**Login
*** Here is where you login to the operating system that your or Grub chose
***Here is where you login to the operating system that your or Grub chose
* There are many cases where the menu will not appear.   
*There are many cases where the menu will not appear.   
** I don't know exactly why the defaults are chosen and why they seem to be random.  
**I don't know exactly why the defaults are chosen and why they seem to be random.
* UEFI
*UEFI
** You have to hit the escape key after bios and before grub.   
**You have to hit the escape key after bios and before grub.   
*** VERY TRICKY
***VERY TRICKY
* Non-UEFI (legacy)
*Non-UEFI (legacy)
** Hold down the shift key from power on.  
**Hold down the shift key from power on.
**  
**


===Change the boot order===
===Change the boot order===


====Boot the last booted====
====Boot the last booted====
this is handy for Windows 10 update reboots.


*Open the file for editing
*Open the file for editing
Line 36: Line 37:
<code>sudo nano /etc/default/grub</code>
<code>sudo nano /etc/default/grub</code>


*Now add the following two lines <br>
*Now add or edit the following two lines


<code>GRUB_DEFAULT=saved<br>GRUB_SAVEDEFAULT=true</code>
<code>GRUB_DEFAULT=saved<br>GRUB_SAVEDEFAULT=true</code>
*Now update the grub program.
<code>sudo update-grub</code>


====Boot anything in the list====
====Boot anything in the list====
Get a list of what choices grub has to boot from.
<code>sudo update-grub</code>
<code>sudo update-grub</code>


*Take note of the items.
*Take note of the items.
*It is zero based indexing so the first entry is zero and so on.
*It is zero based indexing so the first entry is zero and so on.
*Now open the grub file and change the DEFAULT to the one you want.
*Now open the grub file and change the DEFAULT to the number you want.
*Update Grub again
*Update Grub again


<code>sudo update-grub</code>
<code>sudo update-grub</code>

Latest revision as of 05:47, 17 February 2022

Grand Unified Boot Loader

this is the default in linux.

Runs really well but has never been really intuitive to make changes

BECAUSE you normally should not be messing around in here.

Make the menu appear

  • If only linux is instsalled the menu will not appear by default
    • There are several menus/Interfaces during bootup.
    • BIOS
      • This is very low level where the computer looks for hard drives
      • It checks to make sure everything is in place to boot.
    • Grub
      • This is the screen where you can pick what Operating System to Boot
      • You can perform some recovery operations
      • Hitting any of the arrow keys will stop the timer so you can look at it.
    • Login
      • Here is where you login to the operating system that your or Grub chose
  • There are many cases where the menu will not appear.
    • I don't know exactly why the defaults are chosen and why they seem to be random.
  • UEFI
    • You have to hit the escape key after bios and before grub.
      • VERY TRICKY
  • Non-UEFI (legacy)
    • Hold down the shift key from power on.

Change the boot order

Boot the last booted

this is handy for Windows 10 update reboots.

  • Open the file for editing

sudo nano /etc/default/grub

  • Now add or edit the following two lines

GRUB_DEFAULT=saved
GRUB_SAVEDEFAULT=true

  • Now update the grub program.

sudo update-grub

Boot anything in the list

Get a list of what choices grub has to boot from.

sudo update-grub

  • Take note of the items.
  • It is zero based indexing so the first entry is zero and so on.
  • Now open the grub file and change the DEFAULT to the number you want.
  • Update Grub again

sudo update-grub