Change default OS in grub from within grub
So I can't boot to a linux partition on my machine anymore and I just want to use windows and I'm too lazy to actually delete the partition and fix everything and I just want to make Windows my default OS on boot. I went into the grub commandline and changed the environment variable for "default" from 0 to 2 since windows is the 3rd entry, and then i did "save_env default" to try and save that variable. Unfortunately, upon reboot, the default variable has been set back to 0.
How can I permanently change the default boot device from within the grub commandline?
"The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One. 'Do it yourself'. Yes, that's it." - Linus Torvalds
Registered linux user # 296563