If there are relevant documents on the original computer, you can talk to the teacher and then find a maintenance point for maintenance.
If the hard disk is broken and it is troublesome to recover the data, do it again. After all, it's just homework, not a paper or something.
If it is an important file, it is recommended to make a cloud disk backup.