Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: UEFI Installing - Tips

  1. #1
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    UEFI Installing - Tips

    General UEFI install Info (not for Macs)
    Caution:
    New installs must use only current versions of Installer as old ones had major bug that erased all partitions even if it says it only over writes Ubuntu partition. Newest 16.04 or current 14.04 are fine, but not older versions of 14.04.
    If reinstalling Ubuntu only use Something Else (links to examples below).

    Backups are very important, see backup section below.

    UEFI is now a bit more complex than the old BIOS install as it includes both UEFI and BIOS as options. You must choose in UEFI and choose how you boot installs. Various settings in UEFI/BIOS may be required to enable correct boot mode. You do always want to boot in UEFI mode, but may not need nor want secure boot mode of UEFI.
    Install instructions for dual booting in UEFI apply with any current version of Windows in UEFI mode & Ubuntu in UEFI mode. Very minor differences with newer Windows (same settings required) and Ubuntu versions.

    Major Sections below:
    Summary UEFI install instructions
    Ubuntu UEFI install ISO Download link
    Windows 8 or 10 pre-installed with UEFI & secure boot, Windows 10 upgrade from Windows 7 probably BIOS with MBR partitions. No UEFI system, but if newer hardware it may be UEFI.
    Systems that only boot Windows from UEFI.
    Windows 7 with UEFI (only a few as most used BIOS), or new self built system - no secure boot issues
    Boot-Repair Should only be required if issues, will not fix Windows. Great for Summary Report.
    Partitioning - gpt required for UEFI
    Boot but black screen/Video issues

    Additional Info
    UltraBooks with Intel SRT(Seen as RAID) and dual video
    Two drive installs - both must be gpt partitioned
    efi Menu cleanup
    gpt partitioning
    Backup - Windows & efi partition
    Windows 8 repair links
    rEFInd Boot Manager may solve some issues
    Un-installing

    Examples - Some users have posted details of how they did it.
    Links to additional info & what UEFI is
    Acronyms

    Summary UEFI install instructions:
    Back up Windows, your data, and make a Windows repair flash drive.
    Download and create Ubuntu 64 bit installer, flash drive or DVD.
    Only use Windows own Disk Management tools to shrink Windows & reboot so it can run chkdsk.
    Turn off Windows fast startup in Windows.
    In UEFI turn off fast boot (different than fast start up) and often better but not required to turn off Secure boot (may be called "other" vs. "Windows"), some may need CSM mode on, but still select UEFI
    Some UEFI may need you to turn on or allow USB/DVD boot, especially if Secure boot is on.
    Boot Ubuntu installing in UEFI live mode, and verify your system works ok.
    Install Ubuntu.
    If Issue with install, more info needed, or terms not understood, see info & links below:

    Ubuntu UEFI install ISO
    Also link on install guide, from Windows or Ubuntu
    http://www.ubuntu.com/download/desktop
    Easy way to create UEFI only bootable flash drive
    http://ubuntuforums.org/showthread.php?t=2299040

    Windows 8 or 10 pre-installed & secure boot
    Since vendors also have bugs in UEFI, they are also updating regularly. Best to update to latest UEFI/BIOS version. You may have to make UEFI/BIOS settings changes also.
    You will need to use the 64 bit version of newest 16.04LTS (best for very new hardware) or 14.04LTS and from the UEFI menu, boot the flash drive or DVD in UEFI mode. That way it will install in UEFI mode. Very new hardware needs lastest version of Ubuntu and still may need ppa to update to even newer software/drivers not yet in distribution.

    Systems need Windows fast start up (hibernation) and UEFI/BIOS fast boot or quick boot UEFI settings turned off. Vital for some systems. UEFI fast boot may prevent or make it difficult to get into UEFI menu. Some systems need password set to allow settings changes (Acer for one).
    http://www.tenforums.com/tutorials/4...dows-10-a.html
    http://www.eightforums.com/tutorials...ndows-8-a.html

    Use Windows Disk Tools to shrink Windows main partition, but not to create any new partitions, if installing on same drive. Reboot into Windows after shrink so it can run its repairs to its new size.
    Backup efi partition and Windows partition before Install of Ubuntu.

    Shows install with screen shots. Both BIOS purple accessibility screen & UEFI black grub menu screen - Good first link to follow for UEFI install details:
    https://help.ubuntu.com/community/UEFI
    Also shows Windows 8 screeens, 10 should be similar
    http://askubuntu.com/questions/221835/installing-ubuntu-on-a-pre-installed-uefi-supported-windows-8-system
    How To Install Ubuntu Linux Alongside Windows 10 (UEFI)
    http://www.everydaylinuxuser.com/201...alongside.html

    UEFI install,windows 8 or newer with Something Else screen shots
    http://www.everydaylinuxuser.com/201...e-windows.html
    Linux on UEFI: A Quick Installation Guide
    http://www.rodsbooks.com/linux-uefi/
    Something Else or manual Install, essentially same for Windows 10 & Ubuntu 16.04.
    http://www.dedoimedo.com/computers/d...-8-ubuntu.html
    More info on Windows:
    http://www.eightforums.com/

    It is possible to install Ubuntu on UEFI systems with Secure Boot enabled (using signed versions of Shim, GRUB, and the Linux kernel). But best to use newest version to have latest software updates as UEFI fixes for newest hardware is more up to date in newer versions.
    16.04 Release Notes:
    https://wiki.ubuntu.com/XenialXerus/ReleaseNotes

    UEFI systems now have multiple ways to boot - UEFI w/Secure boot, UEFI (secure boot off) and BIOS/CSM. Some UEFI clearly have all 3 settings, others may default. Some are not clear that a Windows boot setting in UEFI means secure boot and you need to select "Other" for UEFI only or CSM- UEFI Compatibility Support Module (CSM), which emulates a BIOS mode. Also the mode you select to boot USB installer may not be the default you have set in UEFI/BIOS. Make sure all boot settings are UEFI.

    Systems that only boot Windows from UEFI.

    Per UEFI standard you should be able to boot any entry in UEFI boot menu. But some vendors have modified UEFI code to only boot the Windows efi file. The UEFI looks for the Windows file name and only boots it. (Note for Acer, it requires "trust" settings in UEFI)
    Installing Grub for UEFI secure boot is only possible if you have booted your system using EFI with the 64bit version with secure boot on. A few systems will only boot with UEFI and secure boot on or with CSM (BIOS) if secure boot is off. Best to test system to see which modes it boots in. In secure boot mode it will only show/allow systems that have secure boot. You may have to change UEFI settings or set password to allow other devices to boot.

    Backup entire efi partition before making changes.

    A: Manually rename files efi hard drive boot files in efi partition /EFI/Boot

    In Boot-Repair "Use the standard EFI file" Should do the same as these manual instrutions by copying shimx64.efi to /EFI/Boot/bootx64.efi for fallback or hard drive boot from UEFI menu.

    Rename /efi/boot/bootx64.efi, copy shim or grub into /efi/boot and name it bootx64.efi Then boot harddrive entry in UEFI menu.
    Older rename of Windows efi file not recommended anymore. (old versions of Boot-Repair did rename the Windows efi file)

    From live installer booted in UEFI mode, mount the efi partition on hard drive, lines with # are comments only: Mount ESP - efi system partition. check which partition is FAT32 with boot flag. Often sda1 or sda2 but varies.
    # if your ESP is not sda1 change this to correct partition
    sudo mount /dev/sda1 /mnt
    only if /EFI/Boot not already existing, run the mkdir command,
    sudo mkdir /mnt/EFI/Boot
    sudo cp /mnt/EFI/ubuntu/* /mnt/EFI/Boot
    # If new folder created, the bootx64.efi will not exist, skip backup command
    sudo mv /mnt/EFI/Boot/bootx64.efi /mnt/EFI/Boot/bootx64.efi.backup
    # make grub be hard drive boot entry in UEFI. Then boot hard drive entry in UEFI menu.
    sudo mv /mnt/EFI/Boot/grubx64.efi /mnt/EFI/Boot/bootx64.efi
    # You may need new hard drive entry (uses default of sda1 for ESP):
    sudo efibootmgr -c -L "UEFI Hard drive" -l "\EFI\Boot\bootx64.efi"
    # confirm entries:
    sudo efibootmgr -v

    More examples of users who manually moved efi files
    http://ubuntuforums.org/showthread.php?t=2101840
    http://ubuntuforums.org/showthread.php?t=2219452
    http://ubuntuforums.org/showthread.p...9#post13012109

    B: Edit Windows BCD to make Ubuntu default
    bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi
    https://coderwall.com/p/vfyqkg
    UEFI NVRAM boot entries are cached in the BCD store
    BCD has 1:1 mappings for some UEFI global variables
    Any time {fwbootmgr} is manipulated, NVRAM is automatically updated

    C: Use efibootmgr, if only Ubuntu install, not dual boot, install to make Windows UEFI description boot grub or shim file (Assumes default of sda1 for ESP, see links for added parameters for different drive or partitions):
    sudo efibootmgr -c -L "Windows Boot Manager" -l "\EFI\ubuntu\shimx64.efi"
    If you have Windows to restore Windows boot entry:
    sudo efibootmgr -c -L "Windows Boot Manager" -l "\EFI\Microsoft\Boot\bootmgfw.efi"

    D: Some install rEFInd which seems to be another workaround and has nice boot icons.
    See section below on rEFInd

    Other work arounds for UEFI that only boots Windows.
    http://ubuntuforums.org/showthread.php?t=2234019


    Windows 7 UEFI, or new self built system - no secure boot issues, new motherboards may now have Windows secure boot setting. Many call it "Windows" or "Other", "Other" also required for Windows 7.

    You should not have any of the secure boot issues, but still should use the newest versions of Ubuntu. They include many UEFI & grub install updates.
    You still have gpt partitioning and should use Windows disk tools to shrink Windows if you have Windows.
    If installing only Ubuntu (no Windows), see partitioning below. But you then can use either BIOS or UEFI, but probably should use gpt partitioning.
    How to Create a Bootable UEFI USB Flash Drive for Installing Windows 7, Windows 8, or Windows 8.1
    http://www.eightforums.com/tutorials...e-windows.html

    Boot Repair -Also handles LVM, GPT, separate /boot and UEFI dual boot, but not most Windows 7 or 8 issues:
    https://help.ubuntu.com/community/Boot-Repair
    If issues, run Boot-Repair's summary report and post a new thread in Ubuntu forums.
    http://ubuntuforums.org/newthread.ph...ewthread&f=326

    Boot-Repair will convert a BIOS install to UEFI by uninstalling grub-pc, and installing grub-efi, if gpt partitioned.
    It can update system to secure boot if you boot in secure boot mode. But then the grub entry for Windows may not work.

    If you have previous used Boot-Repair and it reported this: "Buggy" UEFI (At least some HP & Sony) and you have this menu entry and file in /EFI/Microsoft:
    menuentry "Windows UEFI bkpbootmgfw.efi" {
    With rename you cannot boot Windows directly from UEFI, but only the renamed file from grub menu.
    Best to undo this rename with Boot-Repair or manually and usually better to use other rename options.
    http://ubuntuforums.org/showthread.php?t=2267408
    If unsure of which file is orginal Windows boot file - Windows UEFI install should have backup of bootmgfw.efi here:
    C:\Windows\Boot\EFI\bootmgfw.efi from a working Windows x86_64 installation.
    New versions of Boot-Repair will also have an option for "Use the standard EFI file" which you should choose.

    Two Drive installs - See also examples below

    Both drives must be gpt partitioned. Best to include ESP - efi system partition as first partition on every gpt drive, even if booting from Windows efi partition. And grub only installs to ESP on sda.
    Once you are booting with UEFI, best to have all drives and larger external devices even larger flash as gpt partitioned with an efi partition first even if just for future use. May have to manually edit UUID of efi partition, but Boot-Repair updated for two drive installs.

    And Ubuntu's UEFI grub only installs to the ESP on sda, or not the external drive and not to /EFI/Boot/bootx64.efi. For my PC UEFI full install to a flash drive I manually copied /EFI/ubuntu on sda's ESP to flash drive's ESP. Then copied it again to /EFI/Boot and renamed shimx64.efi to bootx64.efi. I then updated fstab to have correct UUID for ESP on external drive.

    The version of grub in a full install is hard coded to find the rest of grub in /EFI/ubuntu so both copies are requried. There are ways to directly install grub as bootx64.efi, but then you have to manually maintain grub.cfg.

    Partitioning
    With UEFI, gpt partitioning is (almost) required. If multiple drives all bootable drives need to be gpt and best if data drives are also gpt in case later you want to make it bootable. With gpt there is no primary, extended, logical partitions as in MBR(msdos) nor the 4 primary partition limit.
    You can only have one efi partition per drive and with gparted you use the boot flag to assign it as the efi partition. No other partitions can have boot flag. Only if booting in BIOS mode with Ubuntu on gpt partitioned drive, you need a bios_grub partition.
    Windows will only boot in UEFI mode so you cannot install Windows to gpt drive unless booting with UEFI.
    I suggest 300MB efi partition - FAT32, 25GB /(root) - ext4, and then either /home - ext4, or /mnt/data partition(s). But you cannot do data partitions as part of install.
    If dual booting with Windows a shared NTFS data partition is also recommended.
    https://help.ubuntu.com/community/DiskSpace

    Black Screen/ Video Modes
    This usually required with AMD or nVidia.
    How to set NOMODESET and other kernel boot options in grub2 - both liveCD & first boot, but different
    http://ubuntuforums.org/showthread.php?t=1613132
    Newer systems may have this setting:
    Also turn off one Video mode or Intel settings in UEFI/BIOS like Intel NIC if USB flash not working.
    Some Laptops need this in place of quiet splash:
    acpi_osi=Linux acpi_backlight=vendor
    Some laptops just have backlight set way down, press f key to make it brighter

    Some new Intel may need above or this:
    i915.i915_enable_rc6=1
    Or Force Intel Video mode as boot parameter in grub menu - change to your screen size
    video=1280x1024-24@60

    New Haswell & Broadwell systems may need newest kernel in currently 14.04 or newer verisons to support newest video and other devices. Skylake may need even newer kernels & support software in 16.04.
    Also Ubuntu now has experimental ppa with newest nVidia drivers.
    https://launchpad.net/~graphics-driv...ive/ubuntu/ppa

    UltraBooks - Also see examples below Also see updated comment in post #5 below. Grub may correctly install now with 14.04 without much effort.

    Ubuntu now installs with Intel SRT on, but when grub sees the RAID grub will not install. So you have to turn the SRT off or set UEFI/BIOS to AHCI and remove the RAID meta data from the drives. Some install Ubuntu to SSD, others install to hard drive and turn SRT back on and have had it work.
    For Video with nVidia Optimus you need either nVidia Prime or Bumblebee:
    https://wiki.ubuntu.com/Bumblebee
    Some discussion of limits of new nVidia driver with some Optimus support
    http://ubuntuforums.org/showthread.php?t=2142215
    Intel Smart Response Technology
    http://www.intel.com/p/en_US/support...ts/chpsts/imsm
    Some general info in post #3
    http://ubuntuforums.org/showthread.php?t=2071242
    Uses larger SSD for both Intel SRT & Ubuntu
    http://ubuntuforums.org/showthread.php?t=2129157&page=2
    Ubuntu on hard drive, re-enable SRT post #19 details
    http://ubuntuforums.org/showthread.php?t=2129157
    If issues with RAID, disable the RAID, it was using the Intel rapid management in UEFI and telling it to disable the acceleration or the use of the SSD. If you have a different system, just disable the RAID system then install Ubuntu. Once installed you can then re-enable it.
    sudo dmraid -E -r /dev/sda
    sudo dmraid -E -r /dev/sdb

    Grub menu (# is comment)

    # You can add this line to grub configuration or turn off the execute bit on 30_os-prober
    gksudo gedit /etc/default/grub
    GRUB_DISABLE_OS_PROBER=true
    #or turn off executable bit
    sudo chmod a-x /etc/grub.d/30_os-prober
    # Then do:
    sudo update-grub

    # Edit descriptions used by Boot-Repair or remove entire boot stanza
    sudo cp -a /etc/grub.d/25_custom /etc/grub.d/bkup25_custom
    gksudo gedit /etc/grub.d/25_custom
    #Then do:
    sudo update-grub

    UEFI menu clean up (UEFI saves entries in its NVRAM)
    You first need to remove /EFI/ubuntu folder from efi(ESP) partition or else UEFI may add it back again. Best to fully backup efi partition before making any changes.
    If you cannot do change from UEFI menu, you can from command line with efibootmgr.

    # from liveDVD or flash booted in UEFI mode and use efibootmgr
    sudo apt-get install efibootmgr
    sudo efibootmgr -v
    ls /sys/firmware/efi/vars
    The "-v" option displays all the entries so you can confirm you're deleting the right one, and then you use the combination of "-b ####" (to specify the entry) and "-B" (to delete it). Examples #5 is delete:, with Ubuntu you need sudo, others must be at root.
    Eamples:
    http://linux.die.net/man/8/efibootmgr
    Really UEFI boot menu edits
    http://askubuntu.com/questions/63610...bios-boot-menu

    Remove Duplicate Firmware Objects in Windows BCD and NVRAM
    http://technet.microsoft.com/en-us/l...=ws.10%29.aspx

    gpt(GUID)) partitioning
    Required for UEFI, and for drives over 2.2GB.
    You can also use gparted but must change default partitioning first.
    Select gpt under device, advanced over msdos(MBR) default partitioning before starting.
    Or use gdisk which is in repositorym, now standard in newer installs:
    GPT fdisk Tutorial -srs5694 in forums
    http://ubuntuforums.org/showthread.php?t=1439794
    http://www.rodsbooks.com/gdisk/
    sudo apt-get install gdisk
    GPT Advantages (older but still valid) srs5694 post #2:
    http://ubuntuforums.org/showthread.php?t=1457901
    https://wiki.archlinux.org/index.php/GPT
    https://wiki.archlinux.org/index.php...antages_of_GPT

    Backup - Windows, data & efi partitions
    Backup windows before install - post by Mark Phelps
    http://ubuntuforums.org/showthread.p...0#post12611710
    http://www.macrium.com/reflectfree.asp
    Another suggestion by srs5694
    http://www.runtime.org/driveimage-xml.htm
    Microsoft Windows 8.1 reinstall/refresh
    http://windows.microsoft.com/en-us/w...-refresh-media

    Windows 8/10 UEFI Repairs
    How to: Create a Recovery Drive for reinstalling Windows 10 from Windows 10
    http://answers.microsoft.com/en-us/w...2-8bac34abc6c5
    Windows 10 repair disk
    http://www.tenforums.com/tutorials/3...dows-10-a.html

    http://superuser.com/questions/46076...efi-bootloader
    http://www.eightforums.com/tutorials/2269-system-recovery-options-boot-windows-8-a.html
    Create Windows 8 Repair flash drive, must be FAT32 to boot in UEFI mode:
    http://www.eightforums.com/tutorials...ndows-8-a.html
    http://www.ghacks.net/2012/11/01/how...m-repair-disc/

    rEFInd - Boot Manager
    rEFInd is a boot manager with graphical boot choices. UEFI and grub are also boot managers, but UEFI is limited and grub only has menu. You will still need grub2 as it is Ubuntu's boot loader but may want rEFInd. rEFInd also solves some issues with UEFI that will not correctly dual boot.
    http://www.rodsbooks.com/refind/
    https://wiki.archlinux.org/index.php...s#Using_rEFInd
    http://www.rodsbooks.com/refind/secureboot.html
    Now has a ppa to make it easy to install:
    http://www.rodsbooks.com/refind/getting.html

    Examples - some older, newer versions of Ubuntu should be easier as major updates to kernel, support software, video & UEFI drivers.

    Dell XPS13 - New Broadwell, not yet fully supported Feb 2015
    http://major.io/2015/02/03/linux-sup...43-2015-model/
    http://askubuntu.com/questions/39574...rsion-properly

    Toshiba Satellite P55-A 0[SOLVED] Dual boot Windows 8.1 and Ubuntu 14.10 rename bootx64.efi
    http://ubuntuforums.org/showthread.php?t=2267408

    Screenshots of secure boot settings Asrock, Asus, HP, Acer
    https://neosmart.net/wiki/disabling-secure-boot/

    Haswell Laptop - Toshiba P50
    http://ubuntuforums.org/showthread.php?t=2163854
    acer aspire s7 Dual SSD RAID - [SOLVED] Installed Ubuntu on Pre- UEFI Win
    http://ubuntuforums.org/showthread.php?t=2240043

    All Acer require supervisor password & enable "trust" on Ubuntu/grub efi files.
    More details:
    http://ubuntuforums.org/showthread.php?t=2297947


    How to install Ubuntu for dual-boot with Windows 8 on Acer Aspire V5-551G. Post #3
    http://ubuntuforums.org/showthread.php?t=2176273
    Ubuntu on the Precision M3800 or XPS15 Nov 2013 - Some Intel issues common to all Haswell systems
    http://en.community.dell.com/techcen...ion-m3800.aspx
    ASUS Zenbook Prime UX32VD
    http://www.phoronix.com/scan.php?pag..._ux301la&num=1
    https://help.ubuntu.com/community/AsusZenbookPrime

    HP to get into UEFI/BIOS menu - escape then f10 as soon as it starts.
    http://h10025.www1.hp.com/ewfrf/wc/d...roduct=5171079
    It seems hp firmware do not allow you to boot anything other than windows. Hence no ubuntu option in the UEFI. To work around it
    http://ubuntuforums.org/showthread.php?t=2227889

    http://ubuntuforums.org/showthread.php?t=2185869
    Dell UltraBook - Instructions & Details in Post #15 & 16 Devine Shine
    http://ubuntuforums.org/showthread.php?t=2144853

    Lenovo T540 works but UEFI settings critical or it may brick
    https://docs.google.com/document/d/1...m0k/edit?pli=1
    Lenovo Thinkpad E531 - turn off locked boot order setting in UEFI
    http://ubuntuforums.org/showthread.php?t=2255746
    Lenovo Ideapad Y500 LiveUSB Problem
    http://ubuntuforums.org/showthread.php?t=2095063
    Samsung Ativ Book 9 Plus UEFI Install Troubles - manual copy of grub to /EFI/Boot
    http://ubuntuforums.org/showthread.php?t=2230919
    Sony Vaio Pro 13 - To get into UEFI press this "Assist" button BEFORE starting
    http://askubuntu.com/questions/45841...on-a-sony-vaio
    [SOLVED] Trouble installing Xubuntu 14.04 on Toshiba Satellite P55-A (UEFI) - file rename
    http://ubuntuforums.org/showthread.php?t=2247186

    Two Drive UEFI installs, Internal, external or flash drive
    You must partition in advance including ESP - efi system partition on second drive, then use Something Else to install.
    Install Ubuntu in UEFI mode on second HDD without affecting first HDD
    http://ubuntuforums.org/showthread.php?t=2305876
    http://askubuntu.com/questions/59119...-and-dual-boot
    http://ubuntuforums.org/showthread.php?t=2192378

    Samsung Series 7 laptop - Ubuntu UEFI install to sdc (ignore CSM sidetrack)
    http://ubuntuforums.org/showthread.php?t=2135459
    Installing Ubuntu 12.10 alongside Windows 8 on Asus K95V laptop HD/SSD (EFI) Two drives. Details in post #6
    http://ubuntuforums.org/showthread.php?t=2116610
    UEFI dual boot two drives - HP
    http://ubuntuforums.org/showthread.php?t=2072950
    UEFI dual boot two drives see #14 on how edit UUID to Windows efi partiton
    http://ubuntuforums.org/showthread.php?t=2031836

    Links to more Info
    Background and details of what UEFI is.
    https://wiki.archlinux.org/index.php/UEFI
    Matthew Garrett's Blog
    http://mjg59.dreamwidth.org/
    Details on Ubuntu's shim with 12.10
    http://falstaff.agner.ch/2012/12/12/...antal-quetzal/
    They land alongside their unsigned variants in /boot with the file suffix “.efi.signed”.

    Video Older versions still similar UEFI install process
    Intel - Install Ubuntu 12.10 part 3 of series for new system w/secure boot, part one install keys, part 2 install Windows 8
    https://www.youtube.com/watch?v=_cEwj8bBBC4

    Acer Windows 8 Video on getting into UEFI
    http://www.youtube.com/watch?v=QGiG1oljjZI
    Dual-Boot Windows 8 and Ubuntu 12.10 (BIOS)
    http://www.youtube.com/watch?v=wNCSbTyUzoM
    Technical info on Legacy BIOS and UEFI AMI AptioMar 2012 - 20 MIn
    http://www.youtube.com/watch?v=dRMIvY7BiL4

    Acronyms:
    UEFI https://wiki.archlinux.org/index.php...ware_Interface
    ESP/efi - Efi System Partition http://en.wikipedia.org/wiki/EFI_System_partition
    BIOS - Basic Input/Output System http://en.wikipedia.org/wiki/BIOS
    CSM - UEFI Compatibility Support Module (CSM), which emulates a BIOS mode, only available with secure boot off.
    Secure Boot - https://wiki.ubuntu.com/SecurityTeam/SecureBoot
    grub2 https://wiki.archlinux.org/index.php/GRUB2
    gpt(GUID) http://en.wikipedia.org/wiki/GUID_Partition_Table
    MBR(msdos) http://en.wikipedia.org/wiki/Master_boot_record
    SSD https://wiki.archlinux.org/index.php/Solid_State_Drives
    RAID http://en.wikipedia.org/wiki/RAID
    LVM Logical Volume Management https://wiki.ubuntu.com/Lvm
    Ubuntu http://en.wikipedia.org/wiki/Ubuntu_%28philosophy%29
    http://www.ubuntu.com/about/about-ubuntu
    Windows BCD - Boot Configuration Data
    Last edited by oldfred; 2 Days Ago at 07:43 PM. Reason: Updates 16.04
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  2. #2
    Join Date
    May 2013
    Beans
    2

    Re: UEFI Installing - Tips

    I thought this should be meantioned somewhere like here, by the "Boot-Repair will convert a BIOS install to UEFI" bit, or on https://help.ubuntu.com/community/UE..._into_EFI_mode .

    Main Point:
    While trying to Convert Ubuntu into EFI mode, If there is a bios_grub flagged partition, it needs to be removed before running boot-repair.

    Background:
    I was installing and trying various Ubuntu + Mint flavours on my new Samsung 3 series laptop, in dual-boot with Win8. Somewhere along the line I picked up a small (1mb) grub_bios flagged partition, as at least one of the installations happened in legacy mode.

    SecureBoot was always disabled. UEFI only, CSM, and legacy were changed as neccessary to get my various Install Media to boot.

    Although EFI was detected by boot-repair, grub persisted in looking in this grub_bios partition and not the EFI partition after running boot-repair (with various options including a purge of grub). I confirmed that the grub on the EFI partition was good by "SET"ting it from the grub_rescue prompt and booting the pc to both win8 + linux thereafter.

    I eventually fixed my problems by;
    - booting a "live" disk in EFI mode.
    - deleting the bios_grub flagged partion with gparted.
    - running boot-repair again.

    This was far easier than most of the googled "help" which was mostly about installing and configuring some other EFI bootmanager manually. As a linux newbie, I wasn't prepared to put the time into learning all that. I was just going to delete linux partitions and re-install (after ensuring the DVD booted in EFI mode), when I noticed the extra partition.


    P.S. Thanks a lot for the consolidated info in your post, it was very helpful.

  3. #3
    Join Date
    Nov 2008
    Location
    Arizona, USA
    Beans
    6

    Re: UEFI Installing - Tips

    One thing that threw me, when setting up my newly-bought UEFI system for dual-botting Ubuntu (13.04, Raring) is when you use boot repair, it lets you know that you need to go into your UEFI setup (I guess you can't call it BIOS, if you have UEFI) and mark the correct .efi file as trusted, if you have secure boot enabled (My Win8 woudn't boot unless Secure Boot was enabled).
    It makes sense, now that I think about it after the fact, but in order to enable the UEFI setup to mark anything as trusted (and do a few other things), you have to have a password set in the UEFI Setup; on my Acer laptop (InsydeH2O firmware) it was the "Supervisor" password. there's nothing stopping you (with my system, yours may vary) from unsetting the password after you've made your changes and saved them, though I decided to leave it.
    Also, unless you need to set it, if the hard disk password setting says "Frozen", you can ignore it. The hard disk password can only be set/reset if you did a cold boot. I assume that's probably true for all dydtems, though they may call it something else on other UEFI formware.

    It was pretty frustrating that while I know the "help" within the UEFI firmware is limited, it couldn't have at least given a clue that some settings had to be changed (set a Supervisor password, in this case) in order for other settings to be available to even be selected. I wasn't able to find a mention of anything about the UEFI setup on Acer's official site, but I got a clue when someone on their Acer User's site happened to mention that he had to set the password in order to get to the additional settings.

    Again, in retrospect, given the purpose of SecureBoot, this actually makes sense, where you have to have changing settings that would get around SecureBoot password-protected by default. But at 11:30 at night when I had finally gotten to that point in my Ubuntu install, it didn't occur to me to try setting a password to see if that enabled changing any of the settings associated with SecureBoot.

  4. #4
    Join Date
    Mar 2014
    Beans
    1

    Re: UEFI Installing - Tips

    Here is my info on how to set up Toshiba p-50 dual boot in EFI mode with NIK working properly:


    Bios is set to secure boot enabled and nik on.
    Latest 13.10 as of today boots OK when secure boot is enabled and fails to boot when it off on this Toshiba P-50 laptop. BIOS has been updated with latest firmware but I think it did not make any difference.
    Boot USB stick with ubuntu 13.10 into live boot and at terminal start 'gparted'.

    Do not touch any partition except for the one where windows 8 is installed. It is partition #4 from disk start, ntfs resize it down to around 250 gigs
    Next after on empty space create Data partition NTFS for around 500 gigs for data storage. It will be partition #5 from disk start.
    Next after on empty space create primary partition around 190 gigs ext4 type for Ubuntu install. It will be partition #6 from disk start.
    Use the rest of empty space for linux swap partition.

    Now reboot into windows 8 - it should be ok on resized partition and it should see 500 gigs Data partition from windows explorer.
    Reboot with orange usb stick with ubuntu 13.10 and choose install into ext4 and swap partitions that you done previously.
    Choose to install boot loader into linux dedicated partiton.
    Linux will not boot after install as grub is not installed yet. Boot with usb stick again , mount EFI partition with 'disks' and back up all content.
    In case boot config goes wrong you can just delete everything on EFI partition and put backed up files and folders back.
    After that run
    sudo add-apt-repository -y ppa:yannubuntu/boot-repair && sudo apt-get update
    Press Enter, then type the following command:
    sudo apt-get install -y boot-repair && boot-repair

    choose 'recommended repair' and disregard it's whining about 'you should disable secure boot' as it will install.
    The problem with grub2 installed on toshiba p50 that it will ask you for F12 key for 6 seconds then it will try to boot from network if nik is enabled for couple of
    minutes first with version 6 then with version 4 network boot even when network boot is on the last position in BIOS. It just disregards bios settings and you can
    disable nik in bios to fix that. That is the huge problem of toshiba p-50 and to fix that permanently mount EFI partition with linux 'disks',
    ( bios set to EFI boot, NIK enabled, secure boot enabled )
    run
    'sudo nautilus'
    to be able to edit it. EFI parttion was mounted on /boot/efi
    go to /boot/efi/EFI/Boot/ and rename bootx64.efi to bootx64-GRUB.efi
    now copy
    /boot/efi/EFI/ubuntu/shimx64.efi and paste it as
    /boot/efi/EFI/Boot/bootx64.efi


    Reboot and enjoy. GRUB will load instantly now without trying network boot and windows and ununtu will boot without any problem.
    Last edited by nik6; March 15th, 2014 at 04:50 AM.

  5. #5
    Join Date
    Sep 2010
    Location
    Brisbane, Australia
    Beans
    31
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: UEFI Installing - Tips

    Thank you. This, again, is one of those clear and simple things one needs to do to have eg. Kubuntu 13.10 installed and running on modern hardware - especially one with ATI graphics card installed.

    What I did in the end I just installed Kubuntu 13.10 fresh, and instead of trying to boot it from the disk I shoved Boot Repair and repaired the grub mess. It worked nicely.
    Last edited by Sciezyna; April 7th, 2014 at 06:02 PM.
    Intel, Kubuntu 12.04 LTS, Oracle V-Box, AMD Ubuntu 8.04 Gnome.

  6. #6
    Join Date
    Oct 2007
    Location
    Yaffo
    Beans
    106
    Distro
    Ubuntu Development Release

    Thumbs up Re: UEFI Installing - Tips boot repair

    https://help.ubuntu.com/community/Boot-Repair
    This was very Helpfull!
    Thanks
    Uncle Sam
    Last edited by lisati; June 28th, 2014 at 07:15 PM. Reason: Fix font

  7. #7
    Join Date
    Jul 2013
    Beans
    14

    Re: UEFI Installing - Tips

    Recently purchased Acer E1-510, pre-installed with Windows 8. Bios (v 2.02) was unable to read USB iso Ubuntu 14.04 from UEFI.
    I downloaded Bios (v 2.07) and changed it to bootable via Unetbootin. Installed/updated Bios, which then gave UEFI/Legacy option. Then installed Ubuntu via Bios Legacy option.

  8. #8
    Join Date
    Sep 2010
    Location
    Beta Testing in Canada
    Beans
    8,020
    Distro
    Ubuntu Development Release

    Re: UEFI Installing - Tips boot repair

    Quote Originally Posted by sam-c View Post
    https://help.ubuntu.com/community/Boot-Repair
    This was very Helpfull!
    Thanks
    Uncle Sam

    Checked this out in the USC 14.04.1 Not there. So .. in a way .. not trusted?? Does'nt that defeat the whole security concept of UEFI?
    This is Rolling Release
    Warnings for New Beta Testers& Helpful Terminal Commands:
    Running 15.10 on Mobo: MSI model: B85-G41 PC Mate(MS-7850) v: 1.0

  9. #9
    Join Date
    May 2005
    Location
    Staffordshire UK
    Beans
    308
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: UEFI Installing - Tips

    UltraBooks[/B] - Also see examples below

    Ubuntu now installs with Intel SRT on, but when grub sees the RAID grub will not install. So you have to turn the SRT off or set UEFI/BIOS to AHCI and remove the RAID meta data from the drives. Some install Ubuntu to SSD, others install to hard drive and turn SRT back on and have had it work.
    That's not actually correct in all cases. Grub will install perfectly OK without disabling RAID. You need to install Grub on the EFI partition. Works perfectly OK with my Lenovo U410 Ultrabook.

  10. #10
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: UEFI Installing - Tips

    Needs a bit of updating. While Boot-Repair is useful especially for its summary report or understanding what issues there are, it is not now essential in most cases.

    Main issue still is many vendors creating systems that require Windows in the UEFI entry.
    Vendors violated UEFI specs - http://hwe.ubuntu.com/docs/ubuntu-bi...quirements.pdf
    Firmware should not enforce any boot policy other than the mechanism specified in Section 3 of the
    UEFI 2.3.1 specification [UEFI 2.3.1]. Specifically, firmware should not modify boot behaviour de-
    pending on the Description field of the EFI_LOAD_OPTION descriptor.
    And many of the work arounds for systems that only boot Windows:

    http://ubuntuforums.org/showthread.php?t=2234019
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

Page 1 of 2 12 LastLast

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
  •