sg_format --format /dev/sdX
It take time!
It is useful when failing to read, but not write. Rationale: the device was in the disk array controller before.
Check dmesg
$ dmesg
blk_update_request: protection error
sg_format -v --format --size=512 /dev/sdX
## Get Serial Number for Disks
$ lsblk --nodeps -o name,serial
$ lsblk --nodeps -no serial /dev/sdX
$ udevadm info --query=all --name=/dev/sdX | grep ID_SERIAL
Get-PhysicalDisk -DeviceNumber 0 | Get-StorageReliabilityCounter | Select-Object DeviceId, Temperature, Wear