I have a very urgent problem as I need to access my windows os for work soon, and I am quite lost.
I have had a Kali/Windows dual boot (yes, now I know kali shouldn't be used as a daily driver); this installation led to me having grub as my bootloader on my ssd. After a while Kali broke and at some point i installed Ubuntu on another ssd. This led to a setup where I had two separate Grub installations on my PC:
- When booting windows ssd, i had the option to choose between kali and windows
- when booting ubuntu ssd, i had the option between ubuntu, kali and windows (windows
doesnt boot from here due to the bug mentioned here: Can't boot Windows 10 anymore)
Yesterday my ubuntu device filled up all the disk space due to a /var/log/ bug.
I couldnt even boot, therefore i decided i dont need kali no more and its time for ubuntu to suck the partition up. I therefore deleted the kali partition and increased the ubuntu one.
What I didnt think about is that my grub installation on the windows disk, depended on several files in the kali partition; therefore i now only boot into grub rescue, while ubuntu on the other drive works and boots just fine.
BUT i need to access windows for several work related things and my question is how to I fix this? I dont mind removing grub from the windows disk, as i have a working grub installation on my other disk.
I have spent many hours researching this and my conclusion is that I have one of the following options:
- use windows live usb to enter repair mode
- fix the broken grub installation on my windows disk (not sure if this is possible due to me using legacy windows)
- fix the windows entry in the grub installation of ubuntu
I have tried to edit the windows entry from the new ubuntu grub installation, but it didnt work!
I have a photo of the old grub windows entry, which I always used to boot windows: https://imgur.com/a/xsetJpU
But if I write exactly the same entry into the ubuntu grub, it does not boot... anyone knows why or should I just try another approach? Can't use the windows repair currently as i have no usb stick and no windows machine to install.
Here is my boot-repair output: https://paste.ubuntu.com/p/n5tkj6Brwn/
Thanks for reading this far, and any advice would be highly appreciated!!
EDIT:
i tried several things; the first thing was to use the tool boot-repair and it said that it should be used in a live cd enviroment; which I did: then it still didnt work as it required a small extra partition, which i didnt do because i was scared of breaking my windows which would be quite detrimental to me..
therefore i proceeded to use the broken grub rescue menu and tried to boot manually, but i got filesystem unkown-error on very partitition..
then i tried to edit the other (working) grub installation and added the old entry from my kali installation directly in the grub menu and later in the grub_custom_40.d; but it still does not boot as it said command drivemap unkown..
i am not sure which approach would be right, but as i didnt change any windows files, I think the easiest approach would be to fix the windows entry in the working grub installation?