User Tools

Site Tools


blog:reinstall_grub_after_installing_windows_xp_or_windows_7

This is an old revision of the document!


Reinstall grub after installing windows xp or windows 7

Start an ubuntu live system

Locate your linux partition

fdisk -l

Lets assume that your linux installation is in /dev/sda1 and that you want to install grub into the master boot sector of /dev/sda

mount your ubuntu partition

mount /dev/sda1 /mnt/sda1

install grub

grub-install --root-directory=/mnt/sda1 /dev/sda

boot into your system and update the menu

sudo update-grub

~~LINKBACK~~

Discussion

Enter your comment. Wiki syntax is allowed:
   ____  ____   ___    ___    ___ 
  / __/ /_  /  / _ |  / _ \  / _ \
 _\ \    / /_ / __ | / , _/ / ___/
/___/   /___//_/ |_|/_/|_| /_/
 
blog/reinstall_grub_after_installing_windows_xp_or_windows_7.1312623892.txt.gz · Last modified: 2011-08-06 11:44 by brb