My ubuntu partition was deleted and I can't boot from either a DVD or USB

9,978

The code that fits in the Drive MBR is very small. In the case of Windows, the bootloader is very simple and merely redirects to the bootsector of the partition with the boot flag set. Grub is a more complicated bootloader, but it's still limited by the space, so it has to load modules from a specific partition (the Ubuntu partition you deleted).

When Grub cannot find those modules (because the partition no longer exists), then you get a very limited grub rescue prompt. It can be used to load grub modules manually, but of course in your case, that's not possible because there is no partition. So there is really nothing you can do (that I am aware of) that will boot the remaining operating system (Windows).

In your case, the simplest way to fix it is to replace the Grub bootloader with a Windows bootloader. You mentioned you have problems booting from DVD and USB, in which case you'll have to figure that out or consider removing your drive to another machine. I think it's pretty unusual for a machine to no longer boot from USB or CD/DVD so I'd try troubleshooting that.

Then you can install the Windows bootloader from a Windows repair prompt (either by booting a Windows repair CD or a Windows Installation DVD) and running:

bootrec /fixmbr

Or you could boot an Ubuntu CD and install a bootloader with equivalent function...

sudo apt-get update
sudo apt-get install lilo
sudo lilo -M /dev/sda mbr

Lilo will give you a big warning after it's installed - but you can ignore that as when it is used as a Windows style bootloader, it works fine as written above.

Share:
9,978
ropudito
Author by

ropudito

Updated on September 18, 2022

Comments

  • ropudito
    ropudito over 1 year

    It's my first time installing ubuntu. I have Windows 7 and 8 before in my laptop (Acer Aspire 4752z). After Ubuntu (12.04) installed in my laptop, the Windows boot loader didn't recognize my Ubuntu so I updated grub from a live USB.

    And after grub updated, Ubuntu was booting perfectly but my Windows wasn't listed in the grub menu. So I follow someone instruction to update grub again. And after reboot, the grub menu didn't show anymore.

    After searching about this problem on the net and trying to update grub again and again, I decided to delete the Ubuntu partition from live USB. And shortly after, I booted to Windows with Hiren boot and I used mbrfix. But i think it failed. Now i cant show my BIOS setup or boot from DVD or USB.

    After that, the only screen i can see after booting is:

    error: unknown filesystem
    grub rescue>
    
  • ropudito
    ropudito about 11 years
    i cant booting from dvd rom so i cant use Windows Installation DVD.. and i cant boot from USB too.. is there any <rescue grub> command that i can use? I cant run into BIOS setup too.. i tried to press F2 before power button but its nothing..
  • bcbc
    bcbc about 11 years
    Usually you press F2 or Esc after the BIOS posts (after the power button). What computer is it? (Brand model etc)
  • ropudito
    ropudito about 11 years
    Acer Aspire 4752z, and i cant go to bios menu after pressing F2 or Esc button.. and in the Acer startscreen the word "press F2 to enter BIOS menu"(or whatever it is) is gone.. usually it appear in the left bottom of screen..
  • bcbc
    bcbc about 11 years
    Yes it's supposed to be F2 with this model. If that doesn't work, phone Acer or take it back to the store (if under guarantee) because it's basically bricked now. I just don't think a grub rescue prompt can boot windows. The only other option is to remove the hard drive and fix it from another computer.
  • ropudito
    ropudito about 11 years
    would you like to tell me how to do that? fix my laptop from other pc?
  • bcbc
    bcbc about 11 years
    You'd have to physically remove the hard drive. If you're not comfortable doing this or don't have the tools, maybe your local computer shop or ubuntu loco team can help. As I said earlier, my first approach would be to phone Acer support to find out what's going on with the BIOS.