You are not logged in.

#1 2018-02-18 11:36:49

ruyj
Member
Registered: 2018-02-18
Posts: 5

Adding windows 10 grub entry (Invalid symlink)

Hi, I am new to this forum, portuguese, 23y, student, installed arch this week, asus rog gl552vw.
Have 2 disks. one with arch and one with windows.
Trying to add windows one to grub (bios stopped reccon him)

this is my entry after following grub docs

cat /etc/grub.d/40_custom 
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
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 --hint-ieee1275='ieee1275//disk@0,gpt3' --hint-bios=hd0,gpt3 --hint-efi=hd0,gpt3 --hint-baremetal=ahci0,gpt3 5002647202645ECA
		chainloader /Windows/Boot/EFI/bootmgfw.efi
	}
fi

when i select windows 10 in grub boot menu it says error symlink invalid
"error: symlink type invalid (80000017)"
i can only boot into arch
I am not finding information about this error and i must use windows in short time, hence my post to get some help.
thank you in advance.

Last edited by ruyj (2018-02-18 11:50:26)

Offline

#2 2018-02-18 12:58:42

lo1
Member
Registered: 2017-09-25
Posts: 584

Re: Adding windows 10 grub entry (Invalid symlink)

--hint-ieee1275='ieee1275//disk@0,gpt3'
chainloader /Windows/Boot/EFI/bootmgfw.efi

I think both of these are incorrect, where did you get them from?

Refer to https://wiki.archlinux.org/index.php/GR … _UEFI_mode

Offline

#3 2018-02-18 22:13:15

ruyj
Member
Registered: 2018-02-18
Posts: 5

Re: Adding windows 10 grub entry (Invalid symlink)

lo1 wrote:
--hint-ieee1275='ieee1275//disk@0,gpt3'
chainloader /Windows/Boot/EFI/bootmgfw.efi

I think both of these are incorrect, where did you get them from?

Refer to https://wiki.archlinux.org/index.php/GR … _UEFI_mode

I didnt find that path on my partitions
I guess its sda3 i have to mount, because there is the windows folder there and the programs system etc

fdisk -l
Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: E6F688DA-EDD6-4BEB-AEDA-90383CFD5BDE

Device          Start        End    Sectors   Size Type
/dev/sda1        2048 1336211455 1336209408 637.2G Microsoft basic data
/dev/sda2  1336211456 1336244223      32768    16M Microsoft reserved
/dev/sda3  1336244224 1952572531  616328308 293.9G Microsoft basic data
/dev/sda4  1952573440 1953521663     948224   463M Windows recovery environment


Disk /dev/sdb: 119.2 GiB, 128035676160 bytes, 250069680 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: F552C64C-4255-486B-A2F3-B88E30752317

Device        Start       End   Sectors  Size Type
/dev/sdb1      2048   1128447   1126400  550M EFI System
/dev/sdb2   1128448  73404415  72275968 34.5G Linux root (x86-64)
/dev/sdb3  73404416 250069646 176665231 84.2G Linux home

inside the only logic path to boot i found it was the one i used
this is ls of sda3

ls /mnt/
 AGE_DEBUG_LOG.txt	   Python27
 Autodesk		   Recovery
 bootmgr		  '$Recycle.Bin'
 BOOTNXT		
'Documents and Settings'   SLAMBSCPRJ_DEBUG_LOG.txt
 hiberfil.sys		   SLAMIDE_DEBUGGER_LOG.txt
 Intel			   SLAM_IDE_LOG.TXT
 MSOCache		   Spacekace
 pagefile.sys		   swapfile.sys
 PerfLogs		  'System Volume Information'
 PREMIUM.sln.buildlog	   Users
 Programas		   Volumes
 ProgramData		   Windows
'Program Files'		   Windows.old
'Program Files (x86)'	  '$WINRE_BACKUP_PARTITION.MARKER'

as you can see there is no EFI folder here sad

Offline

#4 2018-02-18 22:46:35

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: Adding windows 10 grub entry (Invalid symlink)

/dev/sdb1      2048   1128447   1126400  550M EFI System

What is in the the ESP directory of the partition which is designated as the ESP?

Offline

#5 2018-02-18 22:49:43

ruyj
Member
Registered: 2018-02-18
Posts: 5

Re: Adding windows 10 grub entry (Invalid symlink)

loqs wrote:
/dev/sdb1      2048   1128447   1126400  550M EFI System

What is in the the ESP directory of the partition which is designated as the ESP?

That is the partition i created for arch to boot

cat /proc/mounts | grep sdb1
/dev/sdb1 /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0

Offline

#6 2018-02-18 22:58:33

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: Adding windows 10 grub entry (Invalid symlink)

That is the only ESP from the the output of fdisk -l you posted if there is no EFI/Microsoft/ directory present then windows can not boot from that ESP.
If windows could not use the only ESP present then was there another ESP that was removed or was sda converted from MBR to GPT?

Offline

#7 2018-02-19 00:15:11

ruyj
Member
Registered: 2018-02-18
Posts: 5

Re: Adding windows 10 grub entry (Invalid symlink)

loqs wrote:

That is the only ESP from the the output of fdisk -l you posted if there is no EFI/Microsoft/ directory present then windows can not boot from that ESP.
If windows could not use the only ESP present then was there another ESP that was removed or was sda converted from MBR to GPT?

Before i had only windows
maybe i did something wrong without knowing it sad like what you said
i am not a expert in this field, trying to be
How can i add windows now?

Last edited by ruyj (2018-02-19 00:15:55)

Offline

#8 2018-02-19 00:33:39

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Adding windows 10 grub entry (Invalid symlink)

ruyj wrote:

How can i add windows now?

https://wiki.archlinux.org/index.php/Du … FI_systems

Please make more of an effort to help yourself.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#9 2018-02-19 00:38:06

loqs
Member
Registered: 2014-03-06
Posts: 17,321

Re: Adding windows 10 grub entry (Invalid symlink)

@jasonwryan that will work if there is the windows EFI is present on the ESP.   If ruyj wiped a previous ESP or convert sda from MBR to GPT then it would probably need some windows tool to repair the issue.
However without ruyi stating or showing what is on the ESP I can only speculate.

Offline

#10 2018-02-19 00:40:46

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Adding windows 10 grub entry (Invalid symlink)

loqs wrote:

If ruyj wiped a previous ESP or convert sda from MBR to GPT then it would probably need some windows tool to repair the issue.

If that is the case, it is offtopic here anyway.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2018-02-19 15:50:41

ruyj
Member
Registered: 2018-02-18
Posts: 5

Re: Adding windows 10 grub entry (Invalid symlink)

Well after reading more about this, one of the partitions is the mbr windows, the one with 16mb.
i never had efi on windows sad
i am trying to find a safe way to make efi partition for the existing windows, i dont want to fix the mbr, because it conflicts with grub

Offline

Board footer

Powered by FluxBB