nolan I prefer to use a virtual machine like virtual box so this wouldn't happen to me
I agree with you. VirtualBox is so simple and straightforward to use, it's almost no contest. And it's free to use, even commercially. And you don't need to be a GRUB expert to make it work.
By putting the OS that you use very little in a workspace of its own, you only need a mouse click to change from, say, Linux to Windows, and another mouse click takes you back again. Both systems are active at the same time.
That beats needing to shut down all your running applications in order to boot the second OS.
And if you have a need for it, you can have not just a dual boot, but a triple boot or a quadruple boot. When I was developing commercial software, I could run a server on my workstation, and three or four clients as VMs. It was easy to test their interactions, as they even shared their own network.
Another excellent feature ... by saving the state of a VM when you're done with it, you can shut it down, and when you need it again, you don't need to reload and reconfigure every thing that was running on that VM. Sometimes that can save a lot of time and work. You can save multiple states, give them names, and then choose which state to return to.