Install Grub with Live CD

Some simple steps to install/recover Grub with a Linux Live CD/USB after installating another operating systems or when Grub doesn't load. It has been tested with Ubuntu and Debian.

First of all boot your Linux Live CD/USB, open Terminal and enter following commands:

  1. This command for root permissions:

    sudo -i
    
  2. Check the drives number in Partition Manager:

    fdisk -l
    
  3. Select the drive where your Linux installation resides. Change sda with your hard drive (it can be sdb, sdc, etc) and the 1 with your drive number:

    mount /dev/sda1 /mnt
    mount --bind /dev /mnt/dev/
    mount --bind /sys /mnt/sys/
    
  4. This command will chroot into your installation:

    chroot /mnt
    
  5. Install Grub and change sda with the hard drive where you want to install Grub:

    grub-install /dev/sda
    
  6. Optionally you might want or need to rebuild the Grub menu:

    update-grub
    

Now the installation is finished. Reboot your pc and Grub is back. That's it!

permalink · 1 comment · linux · · Johan

Johan is a 36 year old man from The Netherlands, currently living in Germany. His interests are music, universe & space, IT-technology, quantum mechanics, physics and electronics. After high school and college he has been working on IT-support for different companies. He is a fan of science fiction and is always excited to see technology evolve from idea to reality. Especially the developments for quantum computing to real life applications and new discoveries in space can always count on his attention.

361875870


Comments

Saved my Lubuntu install

My laptop wouldn't install grub during installation, but following these instructions my Lubuntu installation is working now. Thank you so much!

· Daniel

Leave a Comment

This will not be published.

You may use Markdown Syntax. HTML is not allowed.

CAPTCHA image

Click on the image to retrieve a new verification code.