You are Here:
Linux Lite 7.0 RC1 Released - See Release Announcement Section

How to repair grub

Author (Read 12066 times)

0 Members and 4 Guests are viewing this topic.

Re: How to repair grub
« Reply #2 on: May 29, 2022, 03:15:29 AM »


  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8810
  • Reputation: 804
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
Nice one :)

How to repair grub
« Reply #1 on: May 28, 2022, 09:30:49 AM »


  • New to Forums
  • *
  • 11
  • Reputation: 3
  • Linux Lite Member
    • View Profile

  • CPU: Intel Core 2 Quad Q9550 2.83GHz

  • MEMORY: 8Gb

  • VIDEO CARD: Gigabyte GT 1030

  • Kernel: 5.x
Hello everyone,

I would like to make this a topic that covers most of the basic grub problems and how to repair them

Your GRUB loader might have broken for a couple of reasons:
  • You messed with the boot partition
  • You installed Windows after GNU/Linux
  • Or something else...

Fortunately grub is easy to fix and it's not very complex. If you follow these simple steps it should be fixed in no more than 30 minutes(including USB loading):

First of all boot from a Linux Lite image to live mode.

Then open terminal and type:
Code: [Select]
sudo fdisk -lNow you need to note down two things. First the disk directory "/dev/sd[letter]" and then the Linux partition "/dev/sd[letter][number]"
/dev/sda - Disk
/dev/sda4 - Partition
Next you need to create a temporary directory
Code: [Select]
sudo mkdir /mnt/lnxNow mount the partition to that directory:
Code: [Select]
sudo mount /dev/sda4 /mnt/lnx
Now for the final part:
Code: [Select]
sudo grub-install --root-directory=/mnt/lnx /dev/sda
In case you broke grub by using Daz Windows Loader (im not promoting illegal stuff here) just make sure you check "Preserve boot code" and repatch.

I used part of this thread: link
and if you want to learn more about --root-directory option: link

Let me know if i missed something. Also comment if you have some other tips.
Have fun   :003: :048:


X Close Ad

Linux Lite 7.0 RC1 Released - See Release Announcement Section