I have been running a dual-boot of Windows 10 and Ubuntu 20.04 on my pc. Ubuntu is installed on a 250gb m.2 ssd and Windows is installed on a 1tb hdd.
I was booted into Ubuntu and I was using the stock disks and partition tool to erase and reformat some flash drives. I was somewhat distracted by a telephone call and I accidentally erased a partition on my Ubuntu drive. Terrible mistake.
On the drive, there was a ~250gb partition that my files and the OS were installed on as well as another <1gb partition. I erased the smaller partition.
After realizing my mistake, I formatted the small partition to ext4. I then backed up some important files and rebooted the PC.
I am no longer able to boot into Ubuntu. I'm pretty sure that I'm going to have to reinstall Ubuntu, but I need to recover the files from the main partition.
I booted into Windows and mounted the drive but I am unable to access it due to security/permissions. I would say that I have intermediate computing skills but this issue is simply beyond my level of expertise.
I'm pretty sure that I could probably boot into Linux from a flash drive, mount the broken drive, access the files and back them up. Then I could reinstall the OS and that should fix the problem.
I wanted to post this to first help me understand the problem better. I want to know what exactly was on that partition and what was its function.
Secondly, I'd like a recommendation for a best course of action. I am self employed and I run my business from this PC. I was right about to set up a backup solution to prevent issues like this, but I guess I wasn't quick enough.
So what did I break? How do I fix it? Any and all responses are much appreciated. Thank you for reading and thank you for any assistance you may be able to provide.