• 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
  How to Install East Asian Language Support / Chinese Under Windows XP Mark 0 5,397 13-04-2012, 12:35 PM
Last Post: Mark
  How to install KDE 4 in OpenSuse 12.1 Mark 1 11,039 11-01-2012, 06:46 PM
Last Post: Drumm
  How to install and configure a FreeNAS 0.7.2 / 8.0 box - SMB, Local users and RAID 1 Mark 0 17,718 22-05-2011, 06:24 PM
Last Post: Mark
  Find your original install date and time (XP) Mark 5 12,980 10-12-2010, 06:09 AM
Last Post: Pack3t SynAck3r
  [TUT] How to install and burn CDs and DVDs with ImgBurn Mark 8 18,569 08-11-2010, 10:11 PM
Last Post: bigsharn

Forum Jump: