My computer has been freezing up a lot lately and I am worried it's going to crash and cause me to lose everything. So, I am looking to purchase an External hard Drive to back-up my computer files...just in case. So, which type should I get...Portable or Desktop, and why?

Another question: If my computer crashes while the external hard drive is connected, will I lose all of that informational also?