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