I have a dual-boot setup on my PC with Windows 10 and Ubuntu 22.04.
This PC contains a HDD, which I used as a SteamLibrary for Windows.
I recently wanted to experiment with Gaming on Ubuntu and tried adding it as a SteamLibrary there as well, but this had some issues.
I therefore tried to format the disk to use it in a different way via GParted, but something went wrong and doing anything with the drive now yields I/O errors. Ubuntu's "Disks" also assesses "Disk is OK, 64736 bad sectors", which is odd, as the disk didn't have any problems beforehand.
I tried recreating the file system with wipefs
and creating a new filesystem via GParted, but get I/O errors from Libparted. I also tried to initialize the disk via Windows and create a partition, but that didn't work either.
fsck
complains about a corrupted superblock:
fsck from util-linux 2.37.2
e2fsck 1.46.5 (30-Dec-2021)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sda
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
Found a dos partition table in /dev/sda
I now have a disk on which I am unable to create a filesystem or partition and there can't use it. Also my PC takes almost a minute longer to boot up, when it is connected.
Is there any way to completely reset everything (not just format partitions, but probably build, what tells the PC the kind of file system, etc. from scratch) to make the disk usable again?
Unforunately, I am not well versed in the terminology and mechanics of these things that exceed creating, formatting, and deleting partitions.
Edit: I also tried replacing the SATA cable, which had no effect.