How To: Repair a Broken Bootloader

Write tutorials for Linux Mint here
More tutorials on https://github.com/orgs/linuxmint/discu ... /tutorials and (archive) on https://community.linuxmint.com/tutorial
Forum rules
Don't add support questions to tutorials; start your own topic in the appropriate sub-forum instead. Before you post read forum rules
Locked
cypher-neo

How To: Repair a Broken Bootloader

Post by cypher-neo »

I've seen so many users need this advice, I decided to write a tutorial about it.
This is a common problem, especially for users who dual-boot with Windows. Windows loves updating itself with innocent sounding updates, but occasionally on these innocent updates Windows will overwrite the bootloader (rendering the computer unbootable, or only able to boot Windows). Here's the fix!

You will need a Mint Live disc, or Live USB.
  1. 1. Boot into your Linux LiveCD (best to use the same version as the one you are recovering).
  • 2. Open Terminal and type:

Code: Select all

sudo fdisk -l
  • 3. Under this list you can see which one is the Linux Mint partition. It’s usually /dev/sda1/ unless you are dual-booting.
    You need to mount the Linux Mint partition so you can access it. To do this, type:
(Replace X with the correct letter, and Y with the correct number)

Code: Select all

sudo mount /dev/sdXY /mnt
  • 4. Now you need to tell Linux Mint to install grub2 to the partition you just mounted. To do this, type:
(replace X with correct letter) (It is IMPORTANT that you do NOT enter any number, just the letter of the partition)

Code: Select all

sudo grub-install --root-directory=/mnt/ /dev/sdX
  • 5. Now reboot the computer. You should see a GRUB menu pop up when the reboot is done.
  • 6. If the list is not complete, or if you are dual-booting you may need to refresh GRUB so it detects any Windows partitions. To do this, log in, and open a Terminal and type:

Code: Select all

sudo update-grub
jimvgill
Level 1
Level 1
Posts: 6
Joined: Fri Feb 26, 2016 2:39 pm

Re: How To: Repair a Broken Bootloader

Post by jimvgill »

This was an excellent tutorial! Solved my problem. Thank you!@ :D
ibmjayhill
Level 1
Level 1
Posts: 1
Joined: Sun Jul 18, 2021 10:24 pm

Re: How To: Repair a Broken Bootloader

Post by ibmjayhill »

Thank You!! Worked like a champ. :)
User avatar
AndyMH
Level 21
Level 21
Posts: 13743
Joined: Fri Mar 04, 2016 5:23 pm
Location: Wiltshire

Re: How To: Repair a Broken Bootloader

Post by AndyMH »

I believe this will only work with legacy boot, UEFI is a bit more complicated.
Thinkcentre M720Q - LM21.3 cinnamon, 4 x T430 - LM21.3 cinnamon, Homebrew desktop i5-8400+GTX1080 Cinnamon 19.0
drrummer

Re: How To: Repair a Broken Bootloader

Post by drrummer »

Sudo not found.
User avatar
all41
Level 19
Level 19
Posts: 9520
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: How To: Repair a Broken Bootloader

Post by all41 »

drrummer wrote: Sat Oct 02, 2021 1:37 pm Sudo not found.
sudo should not be capitalized
Now days just boot into live desktop mode using your install .iso flash or dvd
and run the Boot Repair utility from the menu
Everything in life was difficult before it became easy.
drrummer

Re: How To: Repair a Broken Bootloader

Post by drrummer »

I didn't when I typed in the cmd window.
User avatar
all41
Level 19
Level 19
Posts: 9520
Joined: Tue Dec 31, 2013 9:12 am
Location: Computer, Car, Cage

Re: How To: Repair a Broken Bootloader

Post by all41 »

drrummer wrote: Sat Oct 02, 2021 3:27 pm I didn't when I typed in the cmd window.
cmd window?? Did you try to run those commands in Windows? (cmd.exe)
The tutorial instructs those to be run while booted to a live desktop using your install flash/dvd
Everything in life was difficult before it became easy.
t42
Level 11
Level 11
Posts: 3743
Joined: Mon Jan 20, 2014 6:48 pm

Re: How To: Repair a Broken Bootloader

Post by t42 »

you are here:
Board index - Main Edition Support - Tutorials
Forum rules
Please don't add support questions to tutorials,start your own thread in the appropriate sub-forum instead. Before you post please read this
-=t42=-
drrummer

Re: How To: Repair a Broken Bootloader

Post by drrummer »

all41 wrote: Sat Oct 02, 2021 5:53 pm
drrummer wrote: Sat Oct 02, 2021 3:27 pm I didn't when I typed in the cmd window.
cmd window?? Did you try to run those commands in Windows? (cmd.exe)
The tutorial instructs those to be run while booted to a live desktop using your install flash/dvd

No. I used the Linux cmd window.
User avatar
Moem
Level 22
Level 22
Posts: 16233
Joined: Tue Nov 17, 2015 9:14 am
Location: The Netherlands
Contact:

Re: How To: Repair a Broken Bootloader

Post by Moem »

Mod note:
This is a tutorial topic, which means it's not a place to ask questions (see the hint in the pink box near the top of the page). It's also years old and may be outdated. Locking the thread now.
Image

If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
Locked

Return to “Tutorials”