TEXT   35

lubuntu

Guest on 2nd June 2022 01:45:11 AM

  1. A. List your current menu items
  2.  
  3. sudo update-grub
  4.  
  5. B. Edit setup file
  6.  
  7. sudo gedit /etc/default/grub
  8.  
  9. Set the boot default to your Windows boot partition (eg.)
  10.  
  11. GRUB_DEFAULT=埜indows 7 (loader) on /dev/sda1?
  12.  
  13. WARNING: Just setting 'GRUB_DEFAULT=n', will NOT work after kernel updates, etc.
  14.  
  15. (Save the file and close.)
  16.  
  17. C. Update grub settings
  18.  
  19. sudo update-grub
  20.  
  21. Now, on boot, you will AUTOMATICALLY default to MS Windows.
  22.  
  23. PART 2: (Optional Extra)
  24.  
  25. Hide the Grub2 menu, and use the default menu option.
  26.  
  27. Description: This both hides the startup menu, and shortens the (usually 10 second) timeout. The PC will auto-launch whatever the default option is on startup.
  28.  
  29. NOTE: The user just needs to hold down the Shift key (on startup), to again see the Grub2 menu.
  30.  
  31. STEPS:
  32.  
  33. D. Edit setup file
  34.  
  35. sudo gedit /etc/default/grub
  36.  
  37. Uncomment the line '#GRUB_HIDDEN_TIMEOUT=0', to look like:
  38.  
  39. GRUB_HIDDEN_TIMEOUT=0
  40.  
  41. (Save the file and close.)
  42. E. Update grub settings
  43.  
  44. sudo update-grub
  45.  
  46. Now, on boot, you will AUTOMATICALLY boot to the default menu option, UNLESS you hold down the Shift-key at boot time. Then the grub2 menu will re-appea

Raw Paste


Login or Register to edit or fork this paste. It's free.