The most important thing is to turn off the computer immediately and not load the operating system you just installed until the recovery process is complete. Then you have to boot your computer from the live USB of the operating system you are switching to. Testdisk and photoRec tools help recover deleted data when switching operating systems. We recommend saving the recovered data on external drives.