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.

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, Stephen Myall, Jorge Castro Oct 31 '12 at 9:13

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.

1 Answer 1

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.