Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This question already has an answer here:

I am a totally new Ubuntu user.

I had Windows 7 and Ubuntu 14.04LTS side by side.I have 2 HDD- one 160 GB and 1TB.

  • I decided to delete ubuntu and change to ubuntu 12.04 as 14.04 does not have much softwares..
  • I opened Disk Management and deleted two partitions which were unnamed(so they belonged to Ubuntu).(Three of the local disks changed to dynamic)
  • I forgot to proceed to the further steps which said to fix MBR(I got no idea what it is).
  • I restarted the machine and I got this:

    error:no such device .........

    Entering rescue mode...

    grub rescue>_

  • I tried to use Boot Repair and upgrade grub,but Boot Repair is giving an error and grub update says there is not enough space.

I don't know what to do.

Please help me .. Please !!

share|improve this question

marked as duplicate by i08in, Eric Carvalho, bain, bodhi.zazen, psusi Jun 20 '14 at 3:15

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

@Jobin link In Step 6, I can't proceed.. it says: Installing for i386-pc platform. grub-install: error: cannot open directory `/home/ubuntu/temp/boot/grub/locale': No such file or directory. – user289245 Jun 7 '14 at 9:09
Do you have a separate /boot partition? If so, you will need to mount it on /home/ubuntu/temp/boot before running grub-install – bain Jun 19 '14 at 9:39

I decided to delete ubuntu and change to ubuntu 12.04 as 14.04 does not have much softwares..

First, this is a mistaken assumption. I haven't checked the package manifests of the two versions of Ubuntu, but I'd be surprised if less was available for 14.04 than for 12.04. There's a lot of software available for Ubuntu (and for Linux generally). If you need a specific type of program and can't find it, post a question about that rather than do something radical (more radical than you realize; see below....).

I opened Disk Management and deleted two partitions which were unnamed(so they belonged to Ubuntu).(Three of the local disks changed to dynamic)

If attempting to downgrade from 14.04 to 12.04 was your first mistake, using the Windows Disk Management tool was the second one. You've identified the reason: That tool changed, without asking you, your disk from a standard partitioning setup to one that uses Logical Disk Management (LDM), aka dynamic disks. The trouble is that Ubuntu can't install to a disk that uses LDM, so by doing this, you've created a new hurdle for yourself.

There are lots of questions here that address this issue, such as:

The good news is that you can convert back, but you'll need to use third-party tools to do so -- see the earlier questions for links.

In the future, do not use the Windows Disk Management tool to do anything but shrink your Windows partition. It's got numerous known bugs that Microsoft refuses to fix and it tends to pull stunts like this one. Instead, use GParted, parted, fdisk, gdisk, or other Linux tools; or perhaps third-party Windows tools (with which I'm relatively unfamiliar) for disk partitioning. Shrinking the Windows partition is a possible exception to this rule, since it's likely to be a little safer to use Microsoft's tool for this task. If you do that, though, do not create additional partitions in the free space; leave that task to the Linux installer or do it manually with a Linux program.

Once you've fixed your LDM problem, re-install 14.04. That will install a fresh copy of GRUB, which should work.

Incidentally, the problem with the grub rescue> prompt is caused by the way GRUB works. Specifically, GRUB relies on files in the Linux partition, so as soon as you deleted the Linux partition, GRUB could no longer work properly -- but as the way you deleted Linux left GRUB in control of the MBR, GRUB still tried to work. If you wanted to delete Linux and continue using Windows, you'd need to re-install the Windows boot loader to the MBR, which you'd do either with a Windows recovery tool or by restoring a backup (if you'd had the expertise and foresight to create one; most people don't).

share|improve this answer

Problem could be with those dynamic drives. I don`t use Windows at all, but once i tryed to make dual-boot on w7 machine and, if i recall correctly, all partitions were primary. Chance is that you cannot have anymore primary partitions.

I changed those drives to whatever was that other(other than dynamic) disk setup. Make sure that you got maximum 2 primary partitions, because you need third one for Ubuntu installation.

But first of all - 12.04 instead of 14.04? Sorry, but that was strange move. Install 14.04 again. I really don`t understand what you mean by :" 14.04 does not have much softwares". I got 14.04 and all software is here.

share|improve this answer

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