• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to install / repair your Grub (1.98) install from the Ubuntu 10.04 live CD
#1
How to install / repair your Grub (1.98) install from the Ubuntu 10.04 live CD

With the recent saga of my XP install failing.
http://mcompute.co.uk/showthread.php?tid=836

I re-installed Windows XP, and as we know the rule of thumb is install the older version of Windows first then Linux. So installing Windows XP when Ubuntu is install is going to wipe Grub out and replace it with Windows MBR, (which doesn't recognise Linux installs). Problem.. you can now only boot into Windows.


Solution

1) Boot off the Live CD and click "Try it"
2) When In the desktop environment, open a terminal and escalate to root. (sudo su)
3) Find out with partition your Linux install in on, (can do this using gparted)
4) mount /dev/sda3 /mnt
5) grub-install --root-directory=/mnt /dev/sda
6) umount /mnt
7) exit
8) reboot

Now, you can boot back into your Linux install, but not your Windows ! So, go ahead and boot back into your Linux install as normal then open a terminal and type

9) sudo update-grub

It should now recognise you have Windows installed and update Grub for you.

Job done.
  Reply


Messages In This Thread
How to install / repair your Grub (1.98) install from the Ubuntu 10.04 live CD - by Mark - 17-03-2011, 03:33 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Ubuntu KDE? DerpyTurtle1337 1 7,183 11-11-2012, 02:10 PM
Last Post: Mark
  How to Install East Asian Language Support / Chinese Under Windows XP Mark 0 5,714 13-04-2012, 12:35 PM
Last Post: Mark
  How to install KDE 4 in OpenSuse 12.1 Mark 1 11,419 11-01-2012, 06:46 PM
Last Post: Drumm
  How to use Gnome instead of Unity in Ubuntu 11.04 Mark 1 8,115 13-10-2011, 06:01 PM
Last Post: Drumm
  Setting DNS in Ubuntu Pack3t SynAck3r 8 25,757 30-08-2011, 10:42 PM
Last Post: pat778mal

Forum Jump: