User Tools

Site Tools


blog:reinstall_grub_after_installing_windows_xp_or_windows_7

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

Ref: http://www.ubuntugeek.com/how-to-restore-grub-boot-loader-after-installing-windows.html

~~LINKBACK~~

Discussion

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