Reinstall GRUB

duragezic

Lifer
Oct 11, 1999
11,234
4
81
Ok so I got a 80gb drive as Primary Master with XP on it. I also have a 10gb (from an Xbox, I was kind enough to give up my 60gb for it :)) for Ubuntu linux. So all was well until in a haste of trying to copy things back and forth (to put an external 120gb into the Xbox and trying to find room for everything still), when I unplug the 2nd linux-only drive, GRUB is unable to load. I made sure when I installed it that I wanted it in the MBR, but still when I unplugged the linux hard drive, it couldn't find GRUB and therefore wouldn't boot. Since I was in a rush I just put in the XP cd to recover with fixmbr since all I cared about was booting XP. But now I would like to get GRUB back so I can access my linux boot again. How would I go about doing this?
 

GhettoFob

Diamond Member
Apr 27, 2001
6,800
0
76
I just did this over the weekend for my system, I formatted and reinstalled XP and it wiped out GRUB. I used the Gnoppix live cd, booted it up. Then I mounted my Ubuntu installation and chrooted into it. Then I ran grub-install and then update-grub. Everything seems to be working nicely now.
 

duragezic

Lifer
Oct 11, 1999
11,234
4
81
So I will either have to use a live cd distro or get off my lazy ass and get a floppy drive in my rig?
 

CheapBastardo

Member
Nov 22, 2004
98
0
0
i think you can use the live cd distro. Just go into ur bio and set first boot to cd-rom and it'll boot from the cd.
 

duragezic

Lifer
Oct 11, 1999
11,234
4
81
Hmm it appears the Knoppix 3.7 that I got is too large to fit on a regular 700mb CDR. WTF?