Hi.
After about 1-2 months of not using bitcoin core in my Ubuntu 20.04 machine, I relaunched it using bitcoin-qt in the terminal as I always do.
It began synchronizing until it gave me this "Error reading from database, shutting down." error.
So I tried re-synching as I saw suggested in several references online, most of them are from about 5 years ago. After about 7 hours, the same error popped and had to shut it down again.
I tried one more time which isn't very practical since each time it takes many hours until it stumbles upon the same error when I'm not even looking.
So I didn't care if I had to wait to download it again. I deleted the blockchain and had it download it again. Same error after perhaps 9 hours.
I deleted, uninstalled bitcoin core 25.0 which I had previously gotten from bitcoin.org, and tried installing it again. When I reinstalled, It didn't prompt what drive I wanted to download the blockchain to, it just assumed the previous one like I never uninstalled it.
This is a 1TB Samsung drive, the famed samsung SSDs that are reputable as the best make. I bought it only to store blockchains.
So I ran it again after reinstalled and after many hours I got the same error again. Each time it would be at a different block; running Core again will give me the same error at the same block, except for when I re-download the blockchain again, then it fails at a different one and stays on it.
So I tried deleting that particular block, and ran it again. After several hours, got the same error this time at a different block.
This entire debugging process as you can see has been taking days, days me trying to fix.
I downloaded the new version at bitcoin.org, 27.0, and installed that one. Again it didn't launch as when I first installed it, it assumed everything as the previous 25.0 installation was configured. Which is strange because nothing in my computer that says "bitcoin", no file at all, is left each time I uninstall it again.
Of course, I tried again with 27.0 and it did the same thing.
I tested my hard drive and apparently it is healthy.
I just want to get over this I need to use it. I don't even understand why each installation doesn't seem to be fresh. I haven't been able to find any references online to any of its behaviours.
The console says:
"Corruption: block checksum mismatch: [some block file]
Error: Error reading from database, shutting down."
That's the recurrent error of the nightmare.
I hope you have great insights as to why this keeps happening. I also would like to know if there's a more efficient way of safely downloading the blockchain, maybe torrent, and then have it indexed by Bitcoin Core or something. I just don't know what is actually legit. The references I found are from last year which sound like going through the hassle again for it to jump at me with the same error anyway.
Thank you.