one of my really old drives fell to the floor i am not sure if it broke as it works fine with just a raw read error but recuva found 100 000 files in including bitcoin files and a wallet.dat file so i recovered it but electrum can't open it which means it is likely corrupted but i tried to open it here and got both private keys and a private adresses
https://privatekeys.pw/wallet-parser/bitcoin/so to be sure if the file was corrupted it wouldn't actually show these? as i don't want to lose sleep over this.
It worked in that site so the file shouldn't be corrupted, you'll get an "
error parsing wallet" message or similar if it's corrupted.
I advice you to send the balance in case there's any or you may lose your funds (
even the site has that warning).
Problem is you've opened it in Electrum which wallet file format has no extension, just create a copy of the original wallet.dat (
not the one opened by Electrum) and open that copy in Bitcoin core.