From the details in your post, it sounds like your drive is damaged and nearing failure.
Error splicing file input/output error
Input/output errors are basically what happens when the system tells a drive to read or write some data, and the drive tells the system "Yeah I ain't doin' that." It is a usually irreparable problem when it results from trying to read data from the drive. Once the drive starts throwing out I/O errors when trying to read some data, it's over. Whatever bit of data was on the sector in question, is now gone. [1]
Video files In disks it says partition okay with 45 bad sectors is there anything i can do?
If this is the drive that you are trying to copy from, then yes and no. As you have already discovered, just trying to copy the files will probably fail. You may be able to use a tool like ddrescue
to recover the files that can't be copied, though. (You can install it with sudo apt install gddrescue
, the "g" is important.) ddrescue
can work around I/O errors, recovering as much data as possible from the drive and leaving the bad sectors behind. However, this solution comes with some disadvantages - you will still lose the data in the bad sectors, and depending on what's happening to the drive internally, the activity from copying the files may actually make the drive break further before it finishes recovering data. Still, if you must attempt data recovery yourself, this is probably the best solution.
If that sounds too risky, the other solution would be to take the damaged drive to a professional data recovery lab. They may be able to recover data even from the bad sectors, however they almost certainly will charge an extremely high fee for doing so, sometimes thousands of dollars. If the data on the drive just isn't that important, and you can't recover it yourself well enough, you may elect to just discard it.
Obviously, if you have backups of your data, then it's going to be way easier to just restore from backups. I assume you don't have backups, however.
In any event, once you have recovered/discarded/retrieved the data, the hard drive with the I/O errors should no longer be used for data storage. If it's eating your data now, there's no good reason to trust it with more of your data in the future.
Footnotes:
[1]: OK so technically the data may still be there, but to the drive, it's not accessible anymore. So unless you intend on taking the drive to a data recovery lab, the data can be treated as gone.