I'm running Ubuntu as my only OS right now. I added elementary OS and decided I didn't like it. I then deleted the partition and added the space back to my main Ubuntu partition. This proceeded to wipe grub. I did the ls command on grub recovery mode found the ext2 partition my computer was running on but insmod came up with a error every single time. The only way I was able to get my machine running again was to install a second copy of ubuntu on a 20gb partition on my same drive and leave that on there. I'm going to be installing windows as a second OS in a day or two here and need the extra ubuntu gone cause its wasting space. I need help finding a way to ensure grub remains function after I delete the extra partition with ubuntu and before I restart my system and it loses track of my main ubuntu. I'm not sure what to do.
Thanks in advance!