You are Here:
Download Linux Lite 5.6 Final today - See Release Announcements



X Close Ad
X Close Ad
How to configure Grub to boot instead of Windows

Author (Read 246 times)

0 Members and 3 Guests are viewing this topic.

How to configure Grub to boot instead of Windows
« on: November 24, 2021, 09:53:26 AM »
 

adrianhouse78

  • New to Forums
  • *
  • 9
    Posts
  • Reputation: 0
  • Linux Lite Member

  • Linux Lite: 5.6 64bit
Hi everyone,

Very new to Linux Lite. I have a dual install of LL and Windows, and can't get LL to boot. The only way I can use Linux Lite is by booting up Windows and then going Settings > Recovery > advanced Restart > Restart from USB etc and then I select Ubuntu, and it restarts and boots Linux instead of Windows. Not what I want to be doing every time obviously!

I already posted on this and had some suggestions but no fix. I think what I need to do is configure Grub so that it boots first instead of Windows. One user told me to input sudo nano /etc/default/grub , but then I wasn't sure what to do after that.

Any help appreciated, many thanks!

Adrian
 


Re: How to configure Grub to boot instead of Windows
« Reply #1 on: November 25, 2021, 01:32:46 AM »
 

stevef

  • Occasional Poster
  • **
  • 98
    Posts
  • Country: gb
  • Reputation: 14
  • Linux Lite Member

  • Linux Lite: 5.2 64bit

  • CPU: Intel Core i5-4460

  • MEMORY: 16Gb

  • Kernel: 5.x
'grub' is a system file so take care editing and consider making a back up copy before changing anything.

When you type in 'sudo nano /etc/default/grub', you are opening the system file called grub using nano.  Nano is a simple terminal based text editor similar to notepad but without the mouse options.  Because 'grub' is a system file, you need 'sudo' to allow you to save any changes you make.

The cursor will appear over the start of the first line.  Press the down arrow to move it to the line you wish to change so that the first letter of the line is highlighted. Press the '#' hash key.  This should move the whole line to the right and insert a # at the start of it.  The # causes the line to be treated as a comment rather than an instruction so this is referred to as 'commenting out' the instruction.

If you are happy with the change press 'CTRL' and 'o' .  This prompts you for a 'File Name to Write:' and will suggest '/etc/default/grub' so pressing return here will save your change to that file.  Then press 'CTRL' and x to leave nano

To complete the change you need to type

Code: [Select]
sudo update-grub
and press return.
 

Re: How to configure Grub to boot instead of Windows
« Reply #2 on: November 26, 2021, 02:32:16 AM »
 

stevef

  • Occasional Poster
  • **
  • 98
    Posts
  • Country: gb
  • Reputation: 14
  • Linux Lite Member

  • Linux Lite: 5.2 64bit

  • CPU: Intel Core i5-4460

  • MEMORY: 16Gb

  • Kernel: 5.x
As far as I can see, even if you edit grub, your boot manager is still pointing to windows. To access to the boot manager on power up requires pressing the correct key at the right time which is deliberately made difficult.  Without the same hardware it is difficult to advise much.  To get into the system boot manager have you tried

Windows Start
Settings
Update & Security
Recovery
Restart Now
Troubleshoot
Advanced
UEFI Firmware Settings
Restart

This should reboot into the boot manager.  The acer boot manager *may* allow you to re-order boot options and shift grub (or ubuntu) to the top.  If not, the best bet (in my view) is to look for a way to make the boot manager reliably accessible by hot key on each boot.  Look for something like a 'hot key delay'.  Setting a power on password might help as you know to press the hot key immediately after the password.

If you can't progress this route, the windows tool bcdedit might be worth looking at.
 


Tags:
 

X Close Ad
X Close Ad

Download Linux Lite 5.6 Final today - See Release Announcements