Generally the longest you can get a hardship deferment is 3 years, assuming your loans are post 1993 or 94 (somewhere around there the rules changed). 5 years isn't really possible, but you can sign up for income dependant repayment, so your payment will be low for the remaining 2 years of residency.