I've been having issues with graphics card drivers that have gotten so complicated that I eventually have to completely reinstall Ubuntu to resolve them. However, due to my UEFI setup, the Ubuntu installer fails after it has already been installed once and leaves my GRUB install completely unusable (and sending me into grub rescue upon boot), and I have to do a total factory restore to be able to continue. This is not ideal, as I have to reinstall and set up everything on each OS I have in use.
How can I restore Ubuntu to the state that it was in upon install? If this is not possible, then how can I do a reinstall of Ubuntu over the same partition without reinstalling GRUB? Thanks to anyone who can help.