4

I have recently bought a Lenovo thinkpad edge with Windows 8 preinstalled on it, and I installed Ubuntu 12.10

I mostly followed the instructions under 'General instructions' here: https://help.ubuntu.com/community/UEFI except I chose 'Something else' as an option when installing and then didn't create a new efi partition for Ubuntu, only one swap and one ext4 as root.

Problem: when I turn on the computer and it enters grub menu (i have grub2) these are the options:

  • Ubuntu;
  • Advanced options for ubuntu;
  • Windows 8 (loader) (on /dev/sda4);
  • System setup

and ubuntu starts up normally, but when I choose windows I get:

cannot find command 'drivemap';
invalid efi file path

However, when I alter the startup order in BIOS, options are: 1) Ubuntu, 2) Hard disk, 3) Windows 8 setup, so my hard drive, or Windows 8 setup be loaded first, Windows 8 starts up normally (without showing the grub menu)

I have found simmilar problems, and followed this instruction https://wiki.archlinux.org/index.php/GRUB2#Multiboot_in_BIOS

I found here Grub errors during UEFI dual boot for Windows 8 (can't find command 'drivemap') though I didn't directly edit the grub.cfg file, I edited 40_custom file in /etc/grub.d. I had some errors in writting though (they showed as I ran grub-mkconfig -o grub.cfg) so I didn't go through with it...

I shall appretiate any help. Mostly it concerns me that I cannot yet really pinpoint the problem.

4 Answers4

1

You need to purge and reinstall GRUB this way:

  1. run Boot-Repair --> Advanced options
  2. go to the "GRUB options" tab, tick "Purge GRUB then reinstall it"
  3. click Apply

Indicate the new URL that will appear if any problem.

LovinBuntu
  • 3,785
0

Have you tried the solution given in After installing Ubuntu I can't boot Windows 8 anymore ? It says to disable SecureBoot and FastBoot in your BIOS and then run Boot-Repair.

Nufail
  • 831
0

yeah reinstall Ubuntu on the partition where it is now. Yes it is doable...when you are installing Ubuntu click on the option "something else" and then format the drive where you had installed Ubuntu and reinstall it on the same partition.

Mukund
  • 2,122
0

You could try installing my rEFInd boot manager to supplement or replace GRUB. Be aware, though, that the "boot repair" utility others have been recommending renames the Windows boot loader file in a standards-violating way, which means that rEFInd won't be able to locate the Windows boot loader. If you haven't run the boot repair tool, this shouldn't be an issue; but if you have, you'll have to rename what is, in Linux, /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi.bkp to /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi, overwriting the file that currently uses the second name (it's a duplicate of GRUB). If the former file doesn't exist, this isn't an issue.

Rod Smith
  • 45,120
  • 7
  • 66
  • 108