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

recently I have bought a lenovo z580 with pre installed windows 8 and I have installed ubuntu 12.10 ( secure boot was enabled when I was installing ubuntu after the installation I disabled it) I can boot to ubuntu with out a problem but I cannot boot to windows 8 from any where ( grub menu or directly from the driver) .

the message from grub2 when I am trying to boot to windows 8 or windows 8 recovery is the same :

cannot find command 'drivemap';
invalid efi file path

if I try to boot directly to the hard disk then a blue screen popup with the message :

The boot configuration data for your pc is missing or contains errors

File \EFI\Microsoft\BCD
error code 0xc000014c

You will need to use the recovery disk tools on your installation media.

I did not make a recovery disk :( so I cannot fix it by this way .

I try to boot to a windows 8 installation disk from msdna to call the recovery console but there I gives me the following message other error

The boot configuration data for your pc is missing or contains errors

error code  0xc000000d  

I have try to use boot-repair but it does not solve my problem.

here is the boot info before running the boot-repair

here is the boot info after running the boot-repair

Also I have try solve this by this way here Dual boot Windows 8 ubuntu 12.10 UEFI but with no chance.

share|improve this question
up vote 1 down vote accepted

First, don't attempt to use the Windows 8 (loader) (on /dev/sda5) entry in GRUB to boot Windows; that's for a BIOS-mode installation of Windows, which you almost certainly don't have. The fact that this entry appears at all may be a bug in the GRUB configuration scripts. Instead, use the >>Windows 8<< entry. In theory, it should work -- although GRUB is finicky, so it might not, and your attempt to fix things from the Windows repair disk might have made matters worse.

If you can't seem to get GRUB working, you could try installing my rEFInd boot manager. Installing the Debian package from Ubuntu is the easiest way to do this. If this is successful, you'll see a rEFInd screen with an option to boot Windows and probably several options to boot Linux. If the Windows option and at least one Linux option work, you can trim the Linux options later by editing /boot/efi/EFI/refind/refind.conf. Pay particular attention to the dont_scan_files option, which you can use to eliminate whatever options don't work or that you don't want to use. (You'll need to write down their filenames as displayed by rEFInd.)

share|improve this answer
thanks for your answer i will try it in a month ! ( seriously ) – jkarr Mar 7 '13 at 19:03

Its very simple, this worked for me

insert Ubuntu cd and select try Ubuntu, connect to Internet open terminal ( Ctrl+Alt+T ),

login as root:

sudo -i

find out your linux disk :

fdisk -l

mount it:

mount /dev/sdaX /mnt


grub-install --root-directory=/mnt /dev/sda
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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