USB Unformatted when it was fine not 2 hours ago
So i plug in my thumb drive with nothing too important on it you know, just some finals that could mean the difference between a good grade or not, and i get a pop-up in windows that says "this drive is unformatted, do you wanna format it?" This scares me a lot. So i boot into linux and in "df -h", all it shows is "/dev/sdb", with no partitions on it.
I did some research, found this program called TestDisk. I ran the test and I got a "partition sector doesn't have the endmark 0xaa55" error.
Doing some more research, finding out that 0xaa55 is the last part of the boot sector, I told it to write to the MBR... the default....
How do i make it so that I can get my files? What causes this so i can avoid it?