View Full Version : [ubuntu] O/S Grub issue

March 23rd, 2010, 12:48 AM
Linux Crew,

Well, i had a dual O/S win Vista 64bit & unbuntu 9.10 64bit.

1. Had a virus on my Win vista side, anti virus could help (virus kept replicating itself - to halt all progs from running).

2. In the End Win Vista would start & was only used Unbuntu for about 2 days.
3. Tried to repair Win Vista, but noting worked.
4. Couldn't mount Win partition through unbuntu either - needed to copy some files across.
5 Eventually formatted Win partition side & re-installed Win Vista 64bit.
6 The problem now is that the grub option to select the O/S choice isn't there, thus i can't use Linux.
6b. The computer loads only Win vista 64bit (Like there usn't a Linux)
7 Checked at the disk management prog - could see my linux space but have no access.
8. Used a live Linux cd to access linux partition, just to check - it worked.
9. how can i acccess the Linux O/S as normal?


March 23rd, 2010, 01:07 AM
Do you see a Grub menu at all? If you were using Grub 2 and want to reinstall G2, boot to the Live CD Desktop and open a terminal, then run:

sudo mount /dev/sdXY /mnt
sudo grub-install --root-directory=/mnt/ /dev/sdX
Note you mount the partition (e.g. sda5 but you install to a drive (sda) and not the partition).

You may need to run "sudo update-grub" after you boot into linux for the first time to let Grub 2 find your Windows install.

Here is the community doc section on reinstalling Grub 2 from the LiveCD: