Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Secure Boot [ACCESS DENIED] Error After UBUNTU 12.04 Install

  1. #11
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Secure Boot [ACCESS DENIED] Error After UBUNTU 12.04 Install

    Sorry post #9 was about repairing Windows but you have erased it.

    The live installer has this menu entry.
    menuentry 'System setup'
    { fwsetup }

    And should be able to run the code to get into the UEFI menu. Does that work?

    Since you only have Ubuntu, it will not show a grub menu unless you hold shift key down from BIOS/UEFI. Some have reported with UEFI that shift does not work but escape key does work. Do either of these give you a grub menu when booting without flash drive installer?
    Last edited by oldfred; June 30th, 2013 at 08:21 PM.
    For info on UEFI boot install & repair - Updated Mar 2015:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  2. #12
    Join Date
    Mar 2011
    Beans
    657

    Re: Secure Boot [ACCESS DENIED] Error After UBUNTU 12.04 Install

    As long as you can boot your Ubuntu live media, you can fix things. As a background task, next time you boot or next get into UEFI settings/BIOS, try to see what your machine's firmware version is, and do check the vendor web site for any updates. Taking a look at OldFred's suggestions, try the efi boot, which you should be able to start with a function key (each machine is different, can't say which one). The correct function key should list the boot devices for you to choose -- if you just see a hard disk (HDD) choose it, and you should then get to choose ubuntu or windows. Try Windows, but after running boot-repair, you will probably get the grub menu, just like you should when you select ubuntu. That's because boot-repair has renamed the windows boot files, and put a copy of shim.efi in their place. You can rename them back yourself, or run boot-repair and "restore backup files". The backup files all have bck in their names, so it's easy to tell what they should be (same name without the bck). So, where are these files you ask? They are in the EFI boot partition, which MAY be automatically mounted by the live media. Such automounts are done in /media, so look for any subdirectories in /media:
    Code:
    ls /media
    Expect a directory with 8 or 9 numbers and letters, look into it:
    Code:
    ls /media/????-????
    Expect to fine a directory named EFI. Look into it and you should see directories named "Boot", "Microsoft", and "ubuntu", and may others which the vendor may put there. The Windows files are under Microsoft in another directory named Boot, so
    Code:
    ls /media/????-????/EFI/Microsoft/Boot
    should list all the (renamed and backed up) windows boot files.
    You can look into the ubuntu directory, and see the shimx64.efi and grubx64.efi, and grub.cfg files ubuntu needs to boot.
    use the -l switch after the ls above to see the sizes of the files -- since they have been renamed, you can tell what they really are by their size, expect many files to be the same size as the shim.efi file -- they're copies. Now, your efi boot menu probably points to /EFI/Microsoft/Boot/bootmgfw.efi (or bootmgr.efi I don't know what they do differently). but both are probably copies of shim. I'd guess the original bootmgfw.efi is now named bckbootmgfw.efi, so just copy it back to it's original name (overriding the shim copy):
    Code:
    cd /media/????-????/Microsoft/Boot
    sudo cp bckbootmgfw.efi bootmfgw.efi
    sudo cp bckbootmgr.efi bootmgr.efi
    OK, now you can try the efi boot menu again and see if you have windows back. If you can run boot-repair, all those renames should be done for you by checking the restore backup files, but now you know what's going on under the hood so to speak.
    One step at at time, and you'll get there. Your Windows install probably is fine, just the booting was messed up.

  3. #13
    Join Date
    Jun 2009
    Location
    Chicago Suburbs
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Secure Boot [ACCESS DENIED] Error After UBUNTU 12.04 Install

    @ubfan1
    If you look at pastebin in first post, JaneNova has totally deleted Windows. Only the boot files in the efi partition are left, but no Windows partitions.
    For info on UEFI boot install & repair - Updated Mar 2015:
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to close thread when/if answered completely.







  4. #14
    Join Date
    Mar 2011
    Beans
    657

    Re: Secure Boot [ACCESS DENIED] Error After UBUNTU 12.04 Install

    Sorry about prev post, didn't look carefully enough at history.
    Missing grub menues may also be caused by the /etc/grub.d/30_os-prober script setting the timeout to 0 when no Windows is found. You can remove the executable flag on the script and it won't run in the future:
    Code:
    sudo chmod -x /etc/grub.d/30_os-prober
    You can edit the grub.cfg file to remove the unwanted timeout code between the lines:
    ### BEGIN /etc/grub.d/30_os-prober ###
    <snip>
    ### END /etc/grub.d/30_os-prober ###
    Rerunning "sudo update-grub" would also fix the grub.cfg file.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •