By restoring to factory settings you would have lost all your data.
D drive on laptops usually contains the restore partition and shouldn't be used for saving files to. A restore partition would be about 10 GB, could be less.
If that's the case with yours, create a set of restore disks (if you havn't already done so) before doing anything further.
Save your data files to your C: drive and backup to external devices.