Wednesday 12 February 2014

Reinstalling grub2 after installing an OS on a new partition

On my test system there is linux mint 16, and just finished installing kali.

I made a mistake of overwriting grub on /dev/sda and this has inverted boot order.

Boot order can be changed easily, but instead I want the original boot loader list provided by linux mint.

https://help.ubuntu.com/community/Grub2/Installing

So, boot into the mint 16, I just want to overwrite everything for simplicity.

$sudo grub-install /dev/sda

/usr/sbin/grub-bios-setup: warning: Sector 50 is already in use by the program 'FlexNet'; avoiding it.
This software may cause boot or other problems in future.
Please ask its authors not to store data in the boot track.
Installation finished. No error reported.

$sudo reboot

Now on the boot list, there is no kali install, but the original list shows.

On booting into mint,

$sudo update-grub
$sudo reboot


Now kali shows up as 'Debian GNU/Linux (Kali Linux 1.0.6)'

No comments:

Post a Comment