If your data partition is not encrypted you can have a look at this topic:
This way you can avoid a factory reset.