I have tried all of the tips on grub, but without success. I managed to boot both debian and windows with rEFInd but after installing rEFInd to disk, it was not possible to at all boot windows.
So then it was just a matter of backing up the files on win10; reinstall windows, and suddenly it was fine to boot windows with rEFInd. Back to debian, start grub optimizer (!), and add windows, then everything works.
Lesson learned: don't be too quick to upgrade your OS; in this case to Ubuntu 22.04. DO NOT mess with grub! REFInd became a friend in need, but did not solve the problem.
The problem that remains: How to find the product key for my win10? The PC was bought with windows 8 pre-installed, can't track it down.
So then it was just a matter of backing up the files on win10; reinstall windows, and suddenly it was fine to boot windows with rEFInd. Back to debian, start grub optimizer (!), and add windows, then everything works.
Lesson learned: don't be too quick to upgrade your OS; in this case to Ubuntu 22.04. DO NOT mess with grub! REFInd became a friend in need, but did not solve the problem.
The problem that remains: How to find the product key for my win10? The PC was bought with windows 8 pre-installed, can't track it down.