Howto reinstall GRUB in Kubuntu the easy way
March 14, 2006 on 1:58 pm | In Computing |Okay, here I have my shiny Kubuntu Linux sitting on hdb and the need to reinstall Windows on hda. This will overwrite the MBR, of course, so one will have to reinstall GRUB later. This is how it’s being done:
- If you haven’t got one already, download the Kubuntu LiveCD.
- Unplug your harddisks featuring Linux. We know Microsoft doesn’t like other OSs, so we disable physical access to your Linux just to be save.
- Install Windows as usual.
- When Windows is all fine, grab a Kubuntu LiveCD and boot from it.
- Open a shell and do the following
sudo mkdir /media/real_linux
##substitute hdb1 with the root partition of your Linux system
sudo mount /dev/hdb1 /media/real_linux
sudo chroot /media/real_linux
sudo grub
##very important: grub has to probe your drives now
##substitute hd0,1 with the numbers for your root partition
root (hd0,1)
##this will replace the Windows bootloader with GRUB
setup (hd0)
Reboot and enjoy your dual boot again. ![]()
No Comments yet
Sorry, the comment form is closed at this time.
Powered by WordPress. The parcival.org theme is a knock-off from the Pool Theme by Borja Fernandez.
Entries and comments feeds. ^Top^