When you get a new computer, the first thing you do should be to resize the primary partition and clone it to a flash drive. Then if anything gets messed up you can always clone FROM the flash drive back to the computer, resize and keep running.
Of course it's too late now, but something to keep in mind for the next computer you get.