Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have been playing with Ubuntu for a few weeks now, and I'd like to revert my computer back to it's original - factory - defaults.

On the computer I have a recovery partition (it's a netbook). I went through the process of recovery and everything seemed fine. However, when I restart the computer I'm presented with

grub rescue >

Now, my understanding is that when I installed Ubuntu "side by side" it replaced the MBR or something like it, with GRUB.

I've read on a slew of forums, that I need to use a Windows Recovery Disk.

Here are my issues:

a) I don't have a recovery disk, I have a recovery partition - it's a netbook. b) I don't have an external cd drive.

What I do have is a USB key that has about 1gb of space on it.

Thanks in advance.

share|improve this question

4 Answers 4

up vote 9 down vote accepted

install Ubuntu LiveCD on your pendrive, boot from your pendrive, open terminal and type:

sudo apt-get install mbr
sudo install-mbr -i n -p D -t 0 /dev/sda

Replace /dev/sda with the name of your drive.

Another method:

sudo apt-get install syslinux
sudo dd if=/usr/lib/syslinux/mbr.bin of=/dev/sda
share|improve this answer
    
Instead of using the whole Ubuntu LiveCD, one may use more easily the boot repair disk that is mentioned in a different answer and just boot in that one. –  cipricus Feb 19 at 10:33

You may download the Boot-repair Disk iso images and burn it to a USB stick. Then, boot the stick and repair the MBR on the defected hard disk as you like. Both 32-bit and 64-bit versions are available.

enter image description here

It really works, I use it to repair a Win7 disk which MBR was accidentally over written by GRUB during the installation of Debian.

share|improve this answer
    
askubuntu.com/a/423061/47206 –  cipricus Feb 19 at 10:31

Consider Super Grub Disc as a solution. You can put it on your pendrive with Unetbootin and boot to your pendrive. Select Windows and then Fix boot of Windows to restore your Widows MBR(no Ubuntu access with this potion) or GNU/Linux followed by the Fix Boot option(If you want both Ubuntu and Windows). You may then reboot and get access to your OS's(depending on your choice, you may only get the Windows MBR). Note that although Super Grub Disk is outdated, Super Grub Disk 2 does not work, and so you should use Super Grub Disk.

share|improve this answer

Toshiba netbooks - just hold the 0 (zero) key down before turning the comp on, keep holding it down - after a few min a menu will come up enabling you to wipe the HD and revert to factory state, if you are game. AA

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.