Event ID 7 (disk): The device has a bad block
Most likely cause: The drive has physically failing sectors (most common on older hard drives, also SD cards and USB sticks)
Try first: Back up the files on that disk now
Likely causes
- The drive has physically failing sectors (most common on older hard drives, also SD cards and USB sticks)most likely
- A bad SATA cable, port or USB enclosure corrupting or dropping readspossible
- An SSD firmware or controller faultless likely
- A sudden power loss during a write left a sector unreadableless likely
Why this happens
Every drive keeps spare sectors and error correction. When a read fails even after the drive's own retries and correction, it reports an error back to Windows, and the disk driver logs Event 7 naming the device. The path \Device\Harddisk1\DR1 is Windows' internal name for physical disk 1.
Hard drives develop bad sectors as the surface or heads wear; flash media (SD cards, cheap USB sticks) wear out too. The connection matters as much as the drive: a damaged cable or a flaky USB-to-SATA bridge can make a healthy drive look bad.
Related disk events
- Event 51: an error was detected on the device during a paging operation. Same family of problem, often the same failing disk.
- Event 153 and 129: requests timed out and were retried or the device was reset; see Event ID 129 and 153.
- Event 55 and 98 (Ntfs): file system corruption that needs chkdsk or Repair-Volume.
- Event 157: the disk was surprise removed; usually a cable, port, enclosure or power problem.
How to fix it
Back up the files on that disk nowSafe
Copy anything important off the affected drive before testing it. Heavy tests on a failing drive can make it worse, so the backup comes first.
Identify the diskSafe
Harddisk1 in the event is Disk 1 in Disk Management and in Get-Disk. Match the number to a model and serial so you know which physical drive it is.
Get-Disk | Format-Table Number, FriendlyName, SerialNumber, BusType, @{n='SizeGB';e={[math]::Round($_.Size/1GB)}}Check how often it happensSafe
A single event long ago after a power cut is different from several a day. List recent bad-block events and look for the same disk number.
Get-WinEvent -FilterHashtable @{LogName='System'; ProviderName='disk'; Id=7} -MaxEvents 20 | Format-Table TimeCreated, Message -WrapCheck the drive's healthSafe
Read Windows' health counters and run the drive maker's diagnostic (Seagate SeaTools, WD Dashboard, Samsung Magician, Crucial Storage Executive). Uncorrected read errors, or reallocated or pending sectors in the maker's tool, mean the drive is failing.
Get-PhysicalDisk | Format-Table FriendlyName, MediaType, HealthStatus; Get-PhysicalDisk | Get-StorageReliabilityCounter | Format-Table DeviceId, ReadErrorsUncorrected, ReadErrorsTotal, TemperatureScan the volume without changesSafe
chkdsk /scan checks the file system online and doesn't change anything. Use the drive letter on the affected disk.
chkdsk D: /scanSwap the cable, port or enclosureChanges settings
For internal SATA drives, replace the data cable and use another port. For external drives, try another cable and a rear USB port, or take the drive out of its enclosure. If the events stop, the drive was fine.
Mark bad sectors with chkdsk /rChanges settings
chkdsk /r finds bad sectors, recovers readable data from them and stops Windows using them. On the system drive it runs at the next restart and can take hours on large hard drives. It can't repair the hardware.
chkdsk D: /r⚠ Back up first. On a drive that is already failing, a full surface scan can push it over the edge.
Replace the drive if errors keep comingChanges settings
Repeated Event 7s, failing health counters or a failed maker's diagnostic mean replacement. Clone the drive to a new one with the maker's migration tool, or reinstall and restore from backup.
For IT admins
On servers with hardware RAID, a single member disk's bad sectors are normally handled by the controller, so check the controller's own log and replace the member disk it reports. Collect Get-StorageReliabilityCounter output across the fleet to catch drives before they fail.
If that didn't fix it
If bad blocks keep appearing after a cable or port change, replace the drive while it can still be read. More event guides: [Windows Event IDs](/windows-event-ids).
When to see a technician
If the drive clicks, isn't always detected, or holds files you have no other copy of, stop using it and contact a data recovery service before running chkdsk /r.
Questions people ask
- Can chkdsk fix bad blocks?
- It can mark them so Windows stops using them and recover what's still readable, but it can't repair the physical damage. A drive that keeps growing bad blocks needs replacing.
- Which drive is Harddisk1?
- Physical disk 1 as numbered in Disk Management and Get-Disk. Disk 0 is usually the drive Windows boots from, but check the model and serial.
- I got one Event 7 after a power cut. Should I worry?
- Run the health checks and chkdsk /scan. If they're clean and no more events appear, it was probably a one-off unreadable sector from the interrupted write.
Sources
- Microsoft Learn: chkdsk
- Microsoft Learn: Guidance for troubleshooting data corruption and disk errors
- Microsoft Learn: Get-StorageReliabilityCounter