Reinstalling GRUB2 from Live CD.

Tarun Mall         1 comment

Hello again :)

Today I'll tell you how to install grub from the ubuntu/kubuntu live-cd.

If you browse into your root folder you can see /boot directory this the place where grub is installed. In case you have a separate boot partition then that partition is mounted on /boot and then you can access grub from here.

So what we have to do is we have to boot from the live-cd, mount your root partition at any place where we can access it, in case separate boot partition we have to mount that partition over previous-mount-point/boot.

Then we'll install grub there :) simple isn't it.

Let's do it then :)

-> Boot from ubuntu live-cd

-> Choose the option try without installing.

-> You can list your partition table by
sudo fdisk -l or df

-> Now mount your system partition
sudo mount /dev/sda1 /mnt

-> If you are not sure about mounting the correct partition then you can browse into /mnt by using nautilus or by terminal and check you root partition files.

-> If you have a separate boot partition say /dev/sda3 mount it as well
sudo mount /dev/sda3 /mnt/boot

-> Now reinstall grub2
sudo grub-install --root-directory=/mnt /dev/sda
(Note: its /dev/sda and not /dev/sda1 or 2 or 3 DO NOT INCLUDE PARTITION NUMBER)

-> If you have a separate boot partition unmount it first
sudo umount /mnt/boot

-> Unmount the system partition
sudo umount /mnt

-> REBOOT :)

Done!! :)

Published by Tarun Mall

A blogger by passion.You can find me tucked in my bed and blogging on weekends when not roaming around. Besides blogging, I love music and you can find my songs on my fb page:PraveenUnplugged
Follow on Youtube : Videos On Latest Happenings |ThingsToKnow
Follow us Talend In Action

1 comment:

  1. finally if you want to update your grub with windows,

    run command

    sudo update-grub

    and reboot to get windows in the menu. :)


© 2015 Techie's House. Designed by Bloggertheme9