PlainError

Event ID 7 (disk): The device has a bad block

Updated 2026-12-01 · 8 fixes · expanded guide with sources · how we write fixes

TL;DREvent ID 7 from source disk (System log) reads "The device, \Device\Harddisk1\DR1, has a bad block." Windows asked the drive for data and the drive reported a sector it couldn't read. One event after a power cut can be a one-off; repeated ones mean the drive, or its cable or USB enclosure, is failing. Back up first.

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

  1. The drive has physically failing sectors (most common on older hard drives, also SD cards and USB sticks)most likely
  2. A bad SATA cable, port or USB enclosure corrupting or dropping readspossible
  3. An SSD firmware or controller faultless likely
  4. 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

How to fix it

Safest first: SafeChanges settingsDangerous
  1. 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.

  2. 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)}}
  3. 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 -Wrap
  4. Check 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, Temperature
  5. Scan 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: /scan
  6. Swap 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.

  7. 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.

  8. 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.

Fixing this on several PCs? The Windows Fix & Deploy Toolkit has ready-made PowerShell scripts for it.

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

Did this fix it? Report a problem

Related errors

All Windows / PC errors →