I have installed ubuntu 12.04 on my Thinkpad Edge (UEFI) using an USB-Stick. I guess it has been botted using EFI since a GRUB menu appeared with the options to boot a live system, install, or check the disk.
When I boot my laptop, grub only shows its command line prompt "grub>".
After manually running grub-install /dev/sda
+ update-grub
within a chrooted environment it boots grub in recovery mode saying "File not found."
The disk is partitioned as follows:
/dev/sda1: ntfs, 1.5GB, SYSTEM DRV
/dev/sda2: ntfs, 150GB, Windows7 OS
/dev/sda3: extended
/dev/sda6: ext4, 140GB, Ubuntu 12.04
/dev/sda5: ntfs, 10.7GB, Lenovo Recovery
/dev/sda4: ntfs, 16.8GB, a custom additional partition
I guessed that the partition labelled "SYSTEM DRV" may be the EFI partition, but then I read that the EFI partition is of type FAT32. I don't have any FAT32 partition here!
So I can't follow any How-Tos explaining how to install Grub2 with EFI support. They all want me to mount my EFI partition at /boot/efi. I also can't just create an EFI partition since in most How-Tos they say that it should be the first partition (at least it has to be a primary partition), but as you see I already have a partition 1.
Isn't it possible to just use the normal Grub2 tool on EFI hardware?
If not, will creating an EFI partition solve the problem? Can I use partition 4 for that?
My BootInfo as created by using this article can be found here: http://paste.ubuntu.com/1011739/. Note that is being made from a Ubuntu Live USB drive which was at /dev/sdb
, so you should ignore this drive.
UPDATE:
As EFI doesn't seem to be the problem here, I reinstalled (non-EFI-)grub using boot-repair
.
New BootInfo can be found here: http://paste.ubuntu.com/1012223/.
Problem is now, that BIOS doesn't boot but gives the error:
Operating system not found.
UPDATE 2 (SOLUTION):
When you read this question when having the same issue (Operating system not found.), you might miss the forest for the trees when reading the answers, so I repeat the solution here:
The problem in my case was, that I accidently changed the boot flag of the drive to /dev/sda6
, which is a logical partition. BIOS searches for boot flags on a hard drive it wants to boot from, but only looks in primary partitions. If it can't find a boot flag, it skips the hard drive. If it doesn't find any drive or media to boot from, you see the error "Operating system not found."
Operating system not found.
" I'm confused. If you were able to boot as far as GRUB command line before, what changed? I updated my answer with a variation to try on re-installing GRUB from you Live session.grub>
". Are you sure that was the prompt? I would expect you to instead see the messageerror: file not found.
followed by the promptgrub rescue>
.Operating system not found.
" This was after reinstalling grub usingboot-repair
. See the difference between the two BootInfos. I guess that now it's something wrong with how BIOS tries to boot my MBR now. The message means that BIOS can't even boot into grub itself, so the error can't be in grub itself. Am I right? So I'm confused too :( -- Re: "In the first part...": I'm not 100% sure but I remember that the first mistake was that Grub was installed on /dev/sdb isntead of /dev/sda by the automatic setup. So this (grub>
) is irrelevant now.