It’s the harddisk of my laptop with opensuse/win10 installed.
Before the problem, did I do sth unusual? Yes, I boot to a portable drive with opensuse installed (which haven’t been used for several months) , and it required me to enable lagacy support in BIOS. So I boot it fine and used it for an hour.
Then I boot to my own laptop without problem and used it for a while too shut it done later. Till then, everything was working normally.
This morning, I found I couldn’t boot at all as the harddrive can’t seem to be detected. It isn’t shown in the boot menu either with UEFI mode or lagacy support mode.
I tried to fix it with the portable suse and boot the laptop from there. During boot time it showed several lines of “ATA6 comreset failed (errno=-16)”
Then the portable opensuse boot fine. However, when I do a “blkid” etc my own laptop harddrive isn’t even in the list.
After a little googling, it seems to be a bug but that’s all I know.
You could maybe try disconnecting all of the cables from the hard drive, and then connecting them again. It could be a connector seating problem. Or it could be a failed drive.
I’ve detached the drive and reinstalled it physically but still the drive couldn’t be detected anywhere.
I’ll try to place it in another computer and to see what is it to blame, the hard drive or the laptop IO. I’ll also try to update the firmware of the BIOS.
But before all those efforts, I’d like to know what diagnoses command I can try since I’m able to boot to a portable opensuse?
Go to the website of the drive manufacturer, check for a drive diagnostics disk. The good manufacturers supply that for free download. Create a boot disk or USB from it, as described by the manufacturer, boot with it and run the diagnostics.
This is the best way, since their diagnostics are designed for their disks.