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

Possible Duplicate:
Grub rescue - error: unknown filesystem

I was previously using Win7 and had two partitions on my hard disk. After learning about Ubuntu I decide to remove Windows and install Ubuntu 11.10 instead. All my important files and documents are stored in my second partition. After successful installation, during restart I get the error :

error: unknown filesystem grub rescue>

Please help me to resolve the problem, and note that I don't want dual boot my machine.

share|improve this question

marked as duplicate by jokerdino, devav2, con-f-use, stephenmyall, Jorge Castro Oct 31 '12 at 9:13

This question was marked as an exact duplicate of an existing question.

First Method

  1. First completely uninstall Grub.

  2. Then use the Ubuntu 9.10 Live CD to boot. Use the following command to boot the CD

    $ sudo fdisk -l

  3. After the complete boot check where the Ubuntu is installed and note down the location. Then mount it using this command:

    $ sudo mount -t ext3 /dev/sda2 /mnt

  4. Next change the Location or Directory which is of your choice.

    $ /dev/sda2

  5. Now install the Grub again

    $ sudo grub-install --root-directory=/mnt/ /dev/sda

Second Method

  1. Restart the system and boot from Ubuntu 9.10.

  2. After the boot you will need to edit the grub.

  3. Now the computer is booting to grub. Create new command line to edit the grub. Use these commands as given below:

    root (hd0,0)

    kernel /vmlinux-version ro root = /dev/hdaN

    initrd /initrd-version

  4. At the end press Ctrl+x to boot it properly.

  5. In the system level you will need to upgrade the GRUB. To do this use the following command:

    $ upgrade-grub

share|improve this answer

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