okay so i installed ubuntu 14.04 way back but wanted to uninstall it because battery drains very quickly.so i decided to reinstall the old 12.04.03 lts.so i formatted the the drive on which ubuntu was installed. i thought this would work but when i started to install the version 12.04.03(without swap memory), at the end of installation i got an error saying "grubx64.efi was not installed in /target/". i checked boot options and there was still a entry of ubuntu when i selected that option it takes me to grub console that one which says "minimal bash like line editing".i have tried everything like fixmbr,fixboot,bootrepair in ubuntu which created another grub entry,os uninstaller. i have also tried deleting the ubuntu entry with easy bcd & easy uefi but it comes back after i reboot. so my guess is that when i installed 14.04 the grub file got installed in hidden drive.you know the one of three PBRIMAGE,WINRETOOLs,DIAGS because in easy bcd ubuntu entry shows the path:
Entry #2 Name: Ubuntu BCD ID: {42e514bc-8835-11e4-bf2d-806e6f6e6963} Device: \Device\HarddiskVolume1 Bootloader Path: \EFI\ubuntu\grubx64.efi
i have even tried deleting ubuntu entry "0000 -b B" by using live usb of ubuntu.my laptop is dell inspiron 5520 and i have turned off secured boot off .please any help would be appreciated.this problem is really frustrating.