If your D: partition was assigned to an external hard drive, ensure the hard drive is securely connected. Next, you can check Disk Management to see if the partition is there. If it is, try assigning a drive letter. If it’s not there, recover it with TestDisk or recreate it from scratch after recovering the data.