How to fix Grub2 error 15 in Ubuntu

Error 15 "file not found" in Grub2 mostly occurs when you have installed grub2 to /boot but the grub legacy is still installed in MBR (Master boot record). This mostly happens when you are upgrading and while installing grub2 you didn't select the drive when running "update-from-grub-legacy". This howto gives you a fix for this problem.

Follow the steps given below step by step:

1) Boot from Live CD in to a Live session and run this command in the terminal (Applications-> Accessories-> Terminal).

[shredder12]$ sudo fdisk -l

2) The above command will give you a list of partitions. You will have to recognize the concerned linux partition and mount it in /mnt using the following command. I am assuming /dev/sda1 as the concerned partition.

[shredder12]$ sudo mount /dev/sda1 /mnt

3) If you have a separate /boot partition then you will have to mount it too. I will assume that /dev/sda2 is the /boot partition and you can mount it using this command. Please be careful while doing this, make sure that the partitions are recognized and mounted correctly.

[shredder12]$ sudo mount /dev/sda2 /mnt/boot

4) Now, mount the rest of the devices.

[shredder12]$ sudo mount --bind /dev /mnt/dev

5) Now, we will be running commands to reconfigure grub2 as root of the linux installed partition. So, we will chroot command to change the linux root directory to /mnt. In this way , we will be get a root prompt to execute the commands as the root user of the linux installed partition.

[shredder12]$ sudo chroot /mnt

Since, we get a root prompt so now on we won't need sudo to execute commands with root priviliges.

6) Tell grub which drive it should install itself to. Use spacebar to select and don't continue without selecting one.

[root]$ dpkg-reconfigure grub-pc

7) Either press Ctrl-D to exit the chroot or type exit.

8) Unmount the partitions we mounted.

[shredder12]$ sudo umount /mnt/dev

9) Unmount /mnt

[shredder12]$ sudo umount /mnt

Now, when you will restart your system you will be able to boot using Grub2 directly into the linux installed partition.

5 Comments

Anon Linuxer's picture
Anon Linuxer (not verified)
November 9th, 2009 01:06 pm
Thank you very much! You saved my life!
Anon Linuxer's picture
Anon Linuxer (not verified)
December 11th, 2009 09:40 pm
thank you for this clear, effective and to the point tutorial i followed it step by step and now bunty 9.10 is working. i wish that in the future you write "how to get windows back in the boot menu" thank you AL
Anon Linuxer's picture
Anon Linuxer (not verified)
December 26th, 2009 03:21 am
helped me, thanks a lot mate!
stav's picture
stav (not verified)
January 4th, 2010 06:13 am
Thanks for helping and please excuse my ignorance when it comes to Linux. I got down to the "dpkg-reconfigure grub-pc" command but I get an error, something like command not valid or such. Any help at this point much appreciated, Gosh I'm so close..! Thanks
crash's picture
crash (not verified)
February 17th, 2010 05:43 am
I'm having the same issue as stav. When I get to "dpkg-reconfigure grub-pc" I'm told that 'grub-pc' is not installed and no info is available. So then I tried to install grub-pc: sudo aptitude install grub-pc And the installation failed with a package issue. E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/g/grub2/grub-pc_1.97-beta4-1... Could not resolve 'security.ubuntu.com' Can anyone help? I have searched all over the web for hours and have not found an answer to this anywhere.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <img> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <h1> <h2> <h3> <h4> <h5> <h6> <p> <br>
  • Image links with 'rel="lightbox"' in the <a> tag will appear in a Lightbox when clicked on.
  • Search Engines will index and follow ONLY links to allowed domains.

More information about formatting options

CAPTCHA
No Bots - Only Humans And Aliens
3 + 10 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.