---
title: 'Linux Cookbook 1: Update or Repair your GRUB installation'
url: 'https://helu.cz/blog/linux-update-or-repair-your-grub'
markdown: 'https://helu.cz/blog/linux-update-or-repair-your-grub.md'
date: '2014-02-01'
description: "You never know when this can come in handy! Sometimes, something just go wrong, and you won't boot your Linux machine anymore, and you will need to restore your GRUB to boot your lovely Linux again. Back then this could happen for example when you installed the Windows that completely rewritten your bootloader. This i"
taxonomy:
  category:
    - blog
  tag:
    - How-To
    - Linux
    - GRUB
  archives_month:
    - feb_2014
  archives_year:
    - '2014'
---

# Linux Cookbook 1: Update or Repair your GRUB installation

This is my first blog posts from a distant past! One of first articles I ever tried to write. It is more like a cookbook for me, as I wanted to store this information somewhere and I used it many times in my past. You never know when this can come in handy! Sometimes, something just go wrong, and you won't boot your Linux machine anymore, and you will need to restore your GRUB to boot your lovely Linux again. Back then this could happen for example when you installed the Windows that completely rewritten your bootloader.

I am too lazy to anyhow edit this post, so here it is, in the old good raw form:

(Tested on Linux MINT 16 - CINNAMON 64bit edition)

1\) Chose partition for **GRUB** installation. For list of partition use `lsblk`:

```
sudo lsblk -o NAME,FSTYPE,LABEL,UUID,SIZE
```

My output:

```
NAME   FSTYPE LABEL  UUID                                  SIZE
sda                                                        931,5G
├─sda1 vfat          9829-0270                             100M
├─sda2                                                     128M
├─sda3 swap          99ec4b59-15c7-4e2e-9753-e27c6e55aa30  7,5G
├─sda4 ntfs          6C4E4EDA4E4E9CA8                      146,5G
├─sda5 ntfs Data     FAF4BF3CF4BEF9C9                      638,6G
└─sda6 ext4          223e82d3-c489-4b28-864d-b3d8a89a9946  138,8G
sdb                                                        3,7G
└─sdb1 vfat          AAF7-477E                             3,7G
sr0
```

Let's say we will use: `/dev/sda6`.

2\) Mount chosen partition:

```
sudo mount /dev/sda6 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /sys /mnt/sys
sudo mount --bind /proc /mnt/proc
```

3\) Enter Chroot for `/mnt`, update **GRUB** and exit Chroot:

```
sudo chroot /mnt
sudo update-grub
exit
```

4\) Un-mount at the end:

```
sudo umount /mnt/dev
sudo umount /mnt/sys
sudo umount /mnt/proc
sudo umount /mnt/
```

5\) You are done. Just restart system, **GRUB** should be there :)

 [Next Post ](https://helu.cz/blog/streamlining-android-helu-videoview)

---

#### Popular Tags

  [How-To](https://helu.cz/blog/tag:How-To) [DIY](https://helu.cz/blog/tag:DIY) [Android](https://helu.cz/blog/tag:Android) [Boosted](https://helu.cz/blog/tag:Boosted) [Scooter](https://helu.cz/blog/tag:Scooter) [Battery](https://helu.cz/blog/tag:Battery) [Repair](https://helu.cz/blog/tag:Repair) [Linux](https://helu.cz/blog/tag:Linux) [Laser](https://helu.cz/blog/tag:Laser) [Engraving](https://helu.cz/blog/tag:Engraving) [Painting](https://helu.cz/blog/tag:Painting) [Art](https://helu.cz/blog/tag:Art) [GRUB](https://helu.cz/blog/tag:GRUB) [Bluetooth](https://helu.cz/blog/tag:Bluetooth) [Windows 10](https://helu.cz/blog/tag:Windows%2010) [Fix](https://helu.cz/blog/tag:Fix) 

#### Related Posts

- 75 

     [Linux Cookbook 2: Migrate your installation to another machine](https://helu.cz/blog/linux-migrate-your-installation-to-another-machine "Linux Cookbook 2: Migrate your installation to another machine")
- 50 

     [Boosted Rev: Battery Cells Replace - Part 4](https://helu.cz/blog/boosted-rev-battery-cells-replace-part-4 "Boosted Rev: Battery Cells Replace - Part 4")
- 50 

     [Boosted Rev: Battery Cells Replace - Part 3](https://helu.cz/blog/boosted-rev-battery-cells-replace-part-3 "Boosted Rev: Battery Cells Replace - Part 3")
- 50 

     [Boosted Rev: Battery Cells Replace - Part 2](https://helu.cz/blog/boosted-rev-battery-cells-replace-part-2 "Boosted Rev: Battery Cells Replace - Part 2")
- 50 

     [Boosted Rev: Battery Cells Replace - Part 1](https://helu.cz/blog/boosted-rev-battery-cells-replace-part-1 "Boosted Rev: Battery Cells Replace - Part 1")

#### Archives

- [ 4 July 2022 ](https://helu.cz/blog/archives_month:jul_2022)
- [ 1 April 2021 ](https://helu.cz/blog/archives_month:apr_2021)
- [ 1 November 2020 ](https://helu.cz/blog/archives_month:nov_2020)
- [ 1 July 2020 ](https://helu.cz/blog/archives_month:jul_2020)
- [ 1 September 2019 ](https://helu.cz/blog/archives_month:sep_2019)
- [ 4 January 2019 ](https://helu.cz/blog/archives_month:jan_2019)
- [ 1 February 2014 ](https://helu.cz/blog/archives_month:feb_2014)

---

## Navigation

- Parent: [Blog](https://helu.cz/blog.md)
- Previous: [Streamlining Android Development 1: HELU VideoView](https://helu.cz/blog/streamlining-android-helu-videoview.md)
