also @ TechSpot: Fair Labor Association begins inspections of Foxconn at Apple's request
Welcome to the TechSpot OpenBoards. Please read the FAQ if you have any questions. Sign up or Login to participate.

Go Back   TechSpot OpenBoards > Software > The Alternative OS

Collaborate in the cloud with Office, Exchange, SharePoint, and Lync

Rescue MBR in Ubuntu?

Thread Tools Search this Thread
  #1  
Old 10-30-2009
Newcomer, in training
 
Member since: Oct 2009, 2 posts
Rescue MBR in Ubuntu?

I made a stupid mistake and can't seem to rectify it. I have a dual-boot Win XP/Ubuntu 9.04 system. This morning I tried to upgrade the Ubuntu partition to 9.10 UNR, but the installation instead created a new partition for 9.10 alongside the existing ones. Here is where I did something dumb and things went badly wrong. Seeing no easy way to undo the installation, I deleted the 9.10 partition. When I rebooted, I got the message

GRUB loading
error: no such partition
grub rescue>

The grub rescue> prompt does not seem to recognize any commands. Using a live installation USB stick, I can get to a regular Ubuntu command prompt and can also load a desktop using the startx command. 'boot.ini' looks fine, as does menu.lst. The Windows partition is is sda1 and is flagged as bootable. The Linux partition is extended partition sda2 with sda5 as the subpartition where the file system sits and sda6 as the swap file.

I assume there is a straightforward way to recreate the MBR, and need someone to point me to it.
  #2  
Old 10-31-2009
WinXPert's Avatar
TechSpot Booster
 
Location: Philippines
Member since: Oct 2009, 519 posts
System specs
Try GAG http://gag.sourceforge.net/
  #3  
Old 10-31-2009
Newcomer, in training
 
Member since: Oct 2009, 2 posts
Thanks WinXPert, but I found the solution, which turns out as I thought it might be to be very simple. I post it here for others who might find themselves in this situation.

Boot a live CD to a command line or open a terminal.

Start grub with:

sudo grub

to get the grub prompt grub>

Type:

find /boot/grub/stage1

Using the informaton reported, type:

root (hd0,n)

to set the root device. Then type:

setup (hd0)

When it finishes installing, exit:

quit

and reboot. That's it.
Closed Thread

Similar Topics
Topic Replies Forum
Dual Boot Vista and Ubuntu 9.10: No Internet Connection in Ubuntu 10 The Alternative OS
Ubuntu is the best: Asus G1S works well with Ubuntu 6 The Alternative OS
Rescue CD 1 Windows OS
Rescue Data Help! 8 Storage and Networking
P.E. Builder- Rescue Disk 5 Software Apps

Thread Tools Search this Thread
Search this Thread:

Advanced Search
All times are GMT -4. The time now is 12:12 AM.