• Can't boot Windows after installing Antergos


    Hi there,
    I recently installed Antergos over Ubuntu on a system that already was in dual boot with Windows. I’ve install several distros over the years and Windows has always been there in the Grub menu, but it does not now with Antergos.
    At first I tried to boot Windows from the one-time boot menu, where “Windows boot manager” – the entry that I previously had in Grub menu to boot Windows – is listed, but this leads to a Dell screen running memory tests leading nowhere.
    I tried adding the following – have no experties in this so don’t have the cluest if it’s of any good

    menuentry "Windows 10" --class windows --class os {
    	insmod part_msdos
    	insmod ntfs
    	insmod ntldr
    	search --no-floppy --fs-uuid --set=root 3E6E667F6E663037
    	ntldr ($root)/bootmgr
    	chainloader +1
    }
    

    to /etc/grub.d/40_custom which creates the entry, but when I select it, only thing I get is

    error: file `/boot/grub/x86_64-efi/ntldr.mod` not found.
    error: can't find command ntldr.
    error: invalid EFI file path.
    

    Really hope someone can help, thanks.

  • Startup Antergos, boot all partitions you have inside filemanager, open a terminal rewrite grub.cfg:
    sudo os-prober
    sudo grub-mkconfig -o /boot/grub/grub.cfg
    If your windows installation is fully functional it will be detected, and you will see this in the output of the command.

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • @lincoln_lee

    @joekamprad’s answer should make your system work again.

    Additionally, in general it is not a very good idea to modify files in /etc/grub.d, since they may conflict with some future system update. A better file for such modifications is /boot/grub/grub.cfg, it will not be overwritten by the system.

    And since you seem to have a UEFI system, here is an example menu entry:
    https://forum.antergos.com/topic/9039/grub-boot-examples-custom-cfg/6

    A tool for sending logs: https://forum.antergos.com/topic/10586/eat-logs
    Install eat: wget -q https://github.com/manuel-192/eat/raw/master/PKGBUILD && makepkg -sic

  • @joekamprad said in Can't boot Windows after installing Antergos:

    boot all partitions you have inside filemanager

    what exactly do you mean by boot? You mean windows’ partition should be mounted?

  • yes simple use filebrowser and mount them by doubleclick on them and give password, then type the commands inside a termibnal…

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • @joekamprad this is the result:

    λ marco [~] 
    →  sudo os-prober
    
    λ marco [~] 
    →  sudo grub-mkconfig -o /boot/grub/grub.cfg
    Generating grub configuration file ...
    Found theme: /boot/grub/themes/Antergos-Default/theme.txt
    Found Intel Microcode image
    Found linux image: /boot/vmlinuz-linux
    Found initrd image: /boot/initramfs-linux.img
    Found fallback initramfs image: /boot/initramfs-linux-fallback.img
    done
    

    Still no Win though.

  • 😞 May you can give sudo fdisk -l

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • @joekamprad here:

    Disk /dev/nvme0n1: 477 GiB, 512110190592 bytes, 1000215216 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: 50B27AD7-0306-4523-AA26-A9C229B9EE13
    
    Device             Start        End   Sectors   Size Type
    /dev/nvme0n1p1      2048    1026047   1024000   500M EFI System
    /dev/nvme0n1p2   1026048    1288191    262144   128M Microsoft reserved
    /dev/nvme0n1p3   1288192  252946431 251658240   120G Microsoft basic data
    /dev/nvme0n1p4 971659264  972605439    946176   462M Windows recovery environment
    /dev/nvme0n1p5 972605440  997812223  25206784    12G Windows recovery environment
    /dev/nvme0n1p6 997814272 1000214527   2400256   1.1G Windows recovery environment
    /dev/nvme0n1p7 252946432  567519231 314572800   150G Linux filesystem
    /dev/nvme0n1p8 567519232  601073663  33554432    16G Linux swap
    /dev/nvme0n1p9 601073664  971659263 370585600 176.7G Linux filesystem
    
  • @lincoln_lee said in Can't boot Windows after installing Antergos:

    /dev/nvme0n1p1

    can you show what is inside the EFI partition you can do a screenshot or ls /where/your/EFI/is/mounted (you can copy path from filemanager…

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • https://wiki.archlinux.org/index.php/GRUB#Windows_installed_in_UEFI-GPT_Mode_menu_entry

    I would say this will be right to read for doing a manual boot entry …

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • @joekamprad

    →  ll /boot/efi/EFI/*
    /boot/efi/EFI/antergos:
    total 120K
    -rwxr-xr-x 1 root root 120K Feb 10 23:57 grubx64.efi
    
    /boot/efi/EFI/antergos_grub:
    total 120K
    -rwxr-xr-x 1 root root 120K Feb  6 18:27 grubx64.efi
    
    /boot/efi/EFI/BOOT:
    total 4.0K
    drwxr-xr-x 2 root root 4.0K Feb  6 18:27 BOOTX64.efi
    
    /boot/efi/EFI/Dell:
    total 4.0K
    drwxr-xr-x 2 root root 4.0K Feb 10 23:59 logs
    
    /boot/efi/EFI/Microsoft:
    total 4.0K
    drwxr-xr-x 3 root root 4.0K Feb  6 18:27 Boot
    

    Since we’re talking /boot/efi, I set this mount point at installation, but I’ve never done it this way before, could this be the problem?

  • the structure looks a bit strange to me …

    you can give also ls from /boot/efi/EFI/Microsoft/Boot should have
    /EFI/Microsoft/Boot/bootmgfw.efi or similar inside

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • @joekamprad

    →  ll -R /boot/efi/EFI/Microsoft/Boot/         
    /boot/efi/EFI/Microsoft/Boot/:
    total 4.0K
    drwxr-xr-x 2 root root 4.0K Feb  6 18:27 bootmgfw.efi
    
    /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi:
    total 120K
    -rwxr-xr-x 1 root root 120K Feb  6 18:27 grubx64.efi
    
  • then you can follow the link on the archwiki i give you and add a new! /etc/grub.d/40_custom

    adding this:

    if [ "${grub_platform}" == "efi" ]; then
    	menuentry "Microsoft Windows Vista/7/8/8.1 UEFI-GPT" {
    		insmod part_gpt
    		insmod fat
    		insmod search_fs_uuid
    		insmod chain
    		search --fs-uuid --set=root $hints_string $fs_uuid
    		chainloader /EFI/Microsoft/Boot/bootmgfw.efi
    	}
    fi
    

    replace $hints_string and $fs_uuid

    with what you get from the two commands:

    The $fs_uuid command determines the UUID of the EFI partition:

    grub-probe --target=fs_uuid $esp/EFI/Microsoft/Boot/bootmgfw.efi
    

    The $hints_string command will determine the location of the EFI partition, in this case harddrive 0:

    grub-probe --target=hints_string $esp/EFI/Microsoft/Boot/bootmgfw.efi
    

    where $esp needs to be replaced with the path to your mounted EFI partition!!!

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • and then sudo grub-mkconfig -o /boot/grub/grub.cfg again 🙂

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • @joekamprad said in Can't boot Windows after installing Antergos:

    The $hints_string command will determine the location of the EFI partition, in this case harddrive 0:
    grub-probe --target=hints_string $esp/EFI/Microsoft/Boot/bootmgfw.efi

    I got the $fs_uuid but for the $hints_string I get:

    →  sudo grub-probe --target=hints_string /boot/efi/EFI/Microsoft/Boot/bootmgfw.efi
    grub-probe: warning: unknown device type nvme0n1.
    

    My Windows partition is mounted.

  • o.k. so it looks like grub-probe do not know how to handle nvme devices 😉

    but uuid is gettible with this too:

    ls -l /dev/disk/by-uuid/ or sudo blkid

    Same issue: https://bbs.archlinux.org/viewtopic.php?id=230961

    and here it works to detect after second try: https://bbs.archlinux.org/viewtopic.php?id=227241

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • so may try again or shoew me: cat /etc/fstab

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

  • @joekamprad no better luck; this is my fstab:

    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point>   <type>  <options>       <dump>  <pass>
    #
    UUID=69E1-D1D8 /boot/efi vfat defaults,relatime 0 0
    UUID=252aada7-36f0-4254-b380-82cad8c0782e / ext4 defaults,relatime,data=ordered 0 1
    UUID=adbb95dd-b95c-41c3-aced-6117131cdd8f /home ext4 defaults,relatime,data=ordered 0 0
    
  • totally o.k. …

    may you try to use some often used hints for creating a custom config:

    if [ "${grub_platform}" == "efi" ]; then
    	menuentry "Microsoft Windows 10 UEFI-GPT" {
    		insmod part_gpt
    		insmod fat
    		insmod search_fs_uuid
    		insmod chain
    		search --fs-uuid --set=root --fs-uuid --no-floppy --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1  $fs_uuid
    		chainloader /EFI/Microsoft/Boot/bootmgfw.efi
    	}
    fi
    

    [updates once a week] = [90% less problems]
    antergos:_rescue
    how to add system logs:
    wget http://bit.ly/2GCG9k2 && sh 2GCG9k2
    :handshake: donate antergos

boot256 installing106 windows58 Posts 27Views 1362
Log in to reply
Bloom Email Optin Plugin

Looks like your connection to Antergos Community Forum was lost, please wait while we try to reconnect.