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

Thread: UEFI doesn't generate grub menu

  1. #1
    Join Date
    Mar 2010
    Location
    Zipangu
    Beans
    27
    Distro
    Ubuntu 16.04 Xenial Xerus

    UEFI doesn't generate grub menu

    I installed Ubuntu 16.04 LTS on a new PC which had Windows 10 installed by creating partitions for / and swap on C: which is 240GB SSD and /home on D: which is a hard drive. Installation was completed without problems but on the system boot we couldn't see the familiar grub menu for selecting what OS should be booted. I have selected the whole sda as the device for the boot-loader and I can only boot Ubuntu by setting UEFI booting priority to the whole sda. In a similar way, I can only boot Windows by resetting the UEFI priority to the Windows Boot Manager.

    How colud I regain the grub menu on the boot, preferably keeping the current Ubuntu install untouched?

  2. #2
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: UEFI doesn't generate grub menu

    I suspect that Ubuntu's update-grub does not see the Windows partition correctly. And with only one operating system, the grub menu will not be displayed.

    The reason might be that Windows is hibernated or semi-hibernated alias fast boot. So if you turn off fast boot in Windows and shut it down completely, the file system will be completely saved in a correct way, and you can reboot into Ubuntu and run

    Code:
    sudo update-grub
    and it will recognize Windows, create a menuentry for it and display the grub menu.

    If there are still problems, maybe the NTFS file system in the Windows partition is damaged. You repair that in Windows, either in a dospromt alias cmd window with

    Code:
    chkdsk /f X:
    where X: in the Windows partition, usually C: or with some GUI tool in Windows.

    Reboot twice into Windows to fix the file system completely and after that reboot into Ubuntu and run

    Code:
    sudo update-grub
    and it will recognize Windows, create a menuentry for it and display the grub menu.

  3. #3
    Join Date
    Mar 2010
    Location
    Zipangu
    Beans
    27
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: UEFI doesn't generate grub menu

    Thanks for the prompt reply.

    Then I did:
    * disabled 'fast boot' both on UEFI and on Windows.
    * run update-grub.
    --- they didn't work ---
    * run chkdsk /f C: which actually run on the outset of the next boot.
    * run update-grub again.
    --- still didn't work ---

    The word 'Windows' isn't found in the update-grub message.

    Hopeless again so far.
    Any other idea?

  4. #4
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: UEFI doesn't generate grub menu

    It seems we have to dig deeper into this problem.

    One way to get more knowledge about your system is to run Boot Repair. At this stage, do not let it try to repair, only run the diagnostic tool 'Create a BootInfo summary', and post the link to the uploaded result.

    https://help.ubuntu.com/community/Boot-Repair

  5. #5
    Join Date
    Mar 2010
    Location
    Zipangu
    Beans
    27
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: UEFI doesn't generate grub menu

    Thanks for an 'advanced' info.

    Here's the output from the diagnosis:

    https://www.dropbox.com/s/rla4jmn8st...epair.txt?dl=0

    (The tool didn't give an URL. We got a text output only.)

  6. #6
    Join Date
    Nov 2011
    Location
    /dev/root
    Beans
    Hidden!

    Re: UEFI doesn't generate grub menu

    Let us start with this piece of information from the BootInfo summary:

    Code:
    ADDITIONAL INFORMATION :
    =================== log of boot-repair 2016-08-28__09h53 ===================
    boot-repair version : 4ppa38
    boot-sav version : 4ppa38
    glade2script version : 3.2.3~ppa1
    boot-sav-extra version : 4ppa38
    boot-repair is executed in installed-session (Ubuntu 16.04.1 LTS, xenial, Ubuntu, x86_64)
    CPU op-mode(s):        32-bit, 64-bit
    BOOT_IMAGE=/boot/vmlinuz-4.4.0-34-generic root=UUID=0e6ccec8-b345-48e2-a163-2942a1ca5475 ro quiet splash vt.handoff=7
    Windows is hibernated, refused to mount.
    Failed to mount '/dev/sda4': 許可されていない操作です
    The NTFS partition is in an unsafe state. Please resume and shutdown
    Windows fully (no hibernation or fast restarting), or mount the volume
    read-only with the 'ro' mount option.
    mount -t ntfs-3g -o remove_hiberfile /dev/sda4 /mnt/boot-sav/sda4
    NTFS signature is missing.
    Failed to mount '/dev/sda3': 無効な引数です
    The device '/dev/sda3' doesn't seem to have a valid NTFS.
    Maybe the wrong device is used? Or the whole disk instead of a
    partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
    mount /dev/sda3 : Error code 12
    mount -r /dev/sda3 /mnt/boot-sav/sda3
    NTFS signature is missing.
    Failed to mount '/dev/sda3': 無効な引数です
    The device '/dev/sda3' doesn't seem to have a valid NTFS.
    Maybe the wrong device is used? Or the whole disk instead of a
    partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
    mount -r /dev/sda3 : Error code 12
    It seems you have not managed to get the NTFS partitions into a state, which can be mounted by Ubuntu. Please try again with /dev/sda4

    Code:
    /dev/sda4: LABEL="Windows" UUID="68128DDF128DB31C" TYPE="ntfs" PARTUUID="83650596-5d46-486e-a1f1-5ed4ed4a0856"
    which seems to contain Windows (the Windows system). I think you should try with /dev/sda3 too.

    Code:
    =================== Suggested repair
    The default repair of the Boot-Repair utility would purge (in order to fix packages sign-grub) and reinstall the grub-efi-amd64-signed of sda5, using the following options:        sda2/boot/efi,
    Additional repair would be performed: unhide-bootmenu-10s   fix-windows-boot use-standard-efi-file
    
    
    =================== Blockers in case of suggested repair
    The current session is in Legacy mode. Please reboot the computer, and use this software in an EFI session. これは、この機能が有効になります。 For example, use a live-USB of Boot-Repair-Disk-64bit (www.sourceforge.net/p/boot-repair-cd), after making sure your BIOS is set up to boot USB in EFI mode.
    
    
    =================== Advice in case of suggested repair
    警告:インターネット接続しないで継続すると、お使いのシステムはブート出来なくなるでしょう。 インターネットに接続してください。
    PCの起動は、Legacyモードになっています。EFIモードに変更した後に再試行することができます。
    続けますか ?
    
    
    =================== Final advice in case of suggested repair
    BIOSはsda2/efi/.../grub*.efiファイルにブートすることを忘れないでください!
    
    [今使っているOS - Ubuntu 16.04.1 LTS]のブートファイルが、ディスクのスタート位置から遠く離れた位置にあります。BIOSはこれを検知できないでしょう。 /bootパーティションを作ったあとで、再度試した方がいいかもしれません (EXT4, >200MB, ディスクの開始). これはgPartedのようなツールを介して実行することができます。 [ブート修復]オプションの [別パーティションに/bootを構成:] から、このパーティションを選択して下さい。 (https://help.ubuntu.com/community/BootPartition)
    
    If your computer reboots directly into Windows, try to change the boot order in your BIOS.
    If your BIOS does not allow to change the boot order, change the default boot entry of the Windows bootloader.
    For example you can boot into Windows, then type the following command in an admin command prompt:
    bcdedit /set {bootmgr} path \EFI\...\grub*.efi
    
    PCの起動は、Legacyモードになっています。EFIモードに変更した後に再試行することができます。
    
    
    =================== User settings
    The settings chosen by the user will not act on the boot.
    From this information (and from the beginning of the BootInfo script too), it seems you have booted in BIOS mode, while there is information about an EFI partition indicating that Windows was installed in UEFI mode. Please make the computer boot in UEFI mode and run BootRepair with its BootInfo summary again!

    Could one of the problems be, that you have installed Ubuntu in BIOS mode? In that case you should make the computer boot in UEFI mode and re-install Ubuntu. See this link, and the links from it about UEFI.

    Installation/FromUSBStick#UEFI

    -o-

    To other people reading this thread: Please chip in and suggest how to solve this problem

  7. #7
    Join Date
    Jul 2016
    Location
    Tropical Island
    Beans
    188
    Distro
    Ubuntu Studio 16.04 Xenial Xerus

    Re: UEFI doesn't generate grub menu

    The Boot-repair-summary tells that Grub is installed it the MBR of /dev/sda. That really means that Ubuntu has been installed in CSM- mode.
    Please run Boot-Repair again, but make sure that you boot in UEFI-mode.
    You may run the recommended repair with Boot-repair, that will install the needed files in ESP and add needed fstab-entries.
    Post URL from new summary.
    Please provide information about your hardware.

  8. #8
    Join Date
    Mar 2010
    Location
    Zipangu
    Beans
    27
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: UEFI doesn't generate grub menu

    > run Boot-Repair again, but make sure that you boot in UEFI-mode
    Can't do that. For a bootable USB stick, UEFI gives two boot menu entries:

    UEFI: ---usb device name---
    ---usb device name---

    But we can't select the former and the latter runs Ubuntu in bios mode.

    Might I change the nature of the problem as:
    How could we do a full clean install, or 'install from scratch', for both Win and Ubu?
    For their perfectly peaceful coexistence on a UEFI PC, of course.
    That might completely erase the current dragging problem(s).

  9. #9
    Join Date
    Jul 2016
    Location
    Tropical Island
    Beans
    188
    Distro
    Ubuntu Studio 16.04 Xenial Xerus

    Re: UEFI doesn't generate grub menu

    "UEFI: ---usb device name---"
    Yes, this is what you have to choose.
    If this doesn't work you may have to configure your UEFI-Bios-settings.
    You may have to disable Secure-Boot in UEFI-Bios.
    Refer to the manual of your motherboard-vendor.
    Please provide us some information about your hardware. Without information it is impossible to assist...
    Last edited by mook765; August 28th, 2016 at 01:12 PM.

  10. #10
    Join Date
    Jun 2014
    Beans
    5,576

    Re: UEFI doesn't generate grub menu

    How could we do a full clean install, or 'install from scratch', for both Win and Ubu?
    If you decide to go the reinstall route, the link below is the official Ubuntu documentation.

    https://help.ubuntu.com/community/UEFI

Page 1 of 2 12 LastLast

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
  •