I've had this problem for a few days now and I can't seem to find a solution that works among all the answers online, plus they all date from around 2012.
So, I have a 1Tb hard disk where I allocated about 70 giga for ubuntu and the rest is used by windows BUT it is not where windows is installed. Windows is installed on my 120 Go SSD. I decided to make a bit more room for ubuntu and tried to shrink the partition to the left of it which is a big 700 Go chunk of my HDD. I did it with MiniTool Partition Wizard. I told me that I had to reboot in order to carry out the modifications so I did. But since then when my PC boots up and I try to boot into windows it says
error: can't find command 'parttool'
error: can't find command 'drivemap'
error: invalid EFI file path
I tried many times to add an entry to grub manually (using "menuentry {...}" in /etc/grub.d/40_custom) but that always gave me the same error.
I then tried with boot-repair (on a boot drive) and it still doesn't work but at least the error with the missing command 'parttool' disappeared now. Boot-repair would tell me that errors are fixed and I just had to reboot and run sudo update-grub
and it would add the windows boot entry but it doesn't work.I only have now the ubuntu entry and a windows entry if I add one manually (but doesn't work)
Let me know if you need more info.
Thanks for any help!
Update
Here's the summary from boot-repair : https://paste.ubuntu.com/p/7VS6qTV5hf/
It might be worth mentioning that I also have a NVMe drive that I installed about a week ago to which I assigned a letter in Windows but there's no OS installed on it, just a few files.