About this article: This article is reviewed against the cited sources. This is source research, not lab validation. Check the stated versions and your own requirements before making changes.
A line such as blk_update_request: I/O error, dev sdb, sector 123456789 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 means the block layer completed a request to sdb with an error. The kernel prints it only for ordinary requests on a live disk, not for passthrough or quiet ones. The word before error names the kind of failure: I/O, critical medium, critical target, recoverable transport and others. In Linux 6.6 the same line starts without blk_update_request:, for example critical medium error, dev sdb, sector .... Copy the data off first, then read the kernel lines before it, because they name the layer that failed.
What the message means
This is a reading of the kernel source, not a vendor statement. In Linux 5.4 and 5.15 the block layer prints the message from print_req_error in block/blk-core.c with the format "%s: %s error, dev %s, sector %llu op 0x%x:(%s) flags 0x%x phys_seg %u prio class %u\n". The first %s is the calling function, blk_update_request; the second is the status name. In Linux 6.6 the function is blk_print_req_error in block/blk-mq.c and the format starts "%s error, dev %s, sector %llu op 0x%x:(%s) ...", so there is no function name in front. It is sent with printk_ratelimited at KERN_ERR, so a burst of failures may log fewer lines than there were failed requests.
The status name comes from a table in block/blk-core.c. In 6.6 it includes: I/O (generic), critical medium, critical target, recoverable transport, timeout, protection, reservation conflict, device offline, critical space allocation and operation not supported. So "critical medium error" is the status name critical medium followed by the word error.
For disks handled by the SCSI sd driver, Linux 6.6 sets these statuses as follows. Linux 6.6's SCSI code does not show how SATA disks (through libata) reach it:
- critical medium: the disk returned sense key Medium Error with additional sense code 0x11 (unrecovered read error), 0x13 or 0x14 (the source comments: "AMNF DATA FIELD", "RECORD NOT FOUND"). Other Medium Error codes are retried.
- critical target: the sense key is Hardware Error (when the device is not set to retry hardware errors), Data Protect, Copy Aborted, Volume Overflow, Miscompare or Blank Check, or Illegal Request with additional sense code 0x20 (invalid command operation code), 0x21 (logical block address out of range), 0x22 (invalid function), 0x24 (invalid field in cdb), 0x26 (parameter value invalid) or 0x27 (write protected). Data Protect with code 0x27/0x07 gives
critical space allocationinstead. - recoverable transport: the host byte is
DID_TRANSPORT_FAILFASTorDID_TRANSPORT_MARGINAL. - I/O: a good host byte with a bad SCSI status, or any other host byte.
Other drivers set the status themselves, and the same message appears for any block device, because the block layer prints it for every request. The sector number is the position the request started at; the message does not say which file or application was affected.
Likely causes
| Cause | What you see | How to confirm |
|---|---|---|
| Unrecovered media read error on the disk | critical medium error; sense key Medium Error in the lines before it |
SMART error log and attributes (see below) |
| Device rejected or failed the command | critical target error; Hardware Error or Illegal Request sense |
Sense lines before the message; additional sense code names the case |
| Link or path problem | recoverable transport error, or a link reset or disconnect before the message |
Cable, backplane, controller or path logs; SMART interface CRC count on SATA |
| Generic failure | I/O error |
The kernel lines before it; the status alone does not name the layer |
| Not a physical disk | Device is virtual, remote or mapped | Our own reading: smartctl -i names a virtual model, or the lines name the network or hypervisor layer |
Prove the cause before changing anything
Everything here reads from the disk; the redirect in step 3 writes one text file, so choose a folder on a different disk if the system disk is the suspect. Run it as root or with sudo.
1. Read the kernel log around the message. The dmesg manual says -T prints "human-readable timestamps" and warns that "the timestamp could be inaccurate". The journalctl manual says -k shows only kernel messages and implies -b, and that -b -1 means the boot before last.
dmesg -T
journalctl -k
journalctl -k -b -1
Look at the lines just before the first error, dev line. Sense text such as "Medium Error" or "Hardware Error" (the kernel's names for sense keys 3 and 4), a link reset, or a disconnect names the layer. The earliest message matters more than the repeats.
2. Identify which disk the name refers to. The smartctl manual says -i prints the model, serial number and firmware version.
smartctl -i /dev/sdb
3. Read the disk's own records. The manual says -H prints the SMART health status, -A the attributes, and -l error the summary error log (decoded ICRC is an interface CRC error). Save a full record:
smartctl -H /dev/sdb
smartctl -A /dev/sdb
smartctl -l error /dev/sdb
smartctl -x /dev/sdb > /root/smart-sdb.2026-12-02.txt
For what the verdict and attributes mean, see smartctl "SMART overall-health self-assessment test result: FAILED!": what the verdict means and what to do first and smartd: "Currently unreadable (pending) sectors" on a Linux disk: what to check first.
4. Look at the pattern. The same sector repeating, many different sectors, or errors only after a restart or cable movement point to different causes (our own reading). A disk behind a hardware RAID controller may need a device type for smartctl.
Fix
Protect the data first
Copy or image the disk before any repair or test that writes. A failing disk in a Linux server: image it before you repair it covers imaging with a mapfile and repairing the copy, not the original. Check that a current backup exists and can be restored.
Act on the status
- critical medium: treat the disk as failing and plan a replacement once the data is safe (our own advice).
- critical target: read the sense text. Invalid command or field codes point to a command or configuration problem; Hardware Error points to the device.
- recoverable transport: read the logs of the data cable path, backplane and controller; reseating a cable or backplane on a live server can drop other disks, so treat that as a planned change. For SATA, a rising interface CRC count in the SMART data is covered in SMART attribute 199 UDMA_CRC_Error_Count keeps rising: what it means and the cable check.
- I/O: work from the earlier kernel lines.
Replace the disk
First save the current state:
smartctl -x /dev/sdb > /root/smart-sdb.before-replace.2026-12-02.txt
Disruptive step: the next step takes the failing disk out of service and removes it from the server, and restoring or rebuilding onto the new disk writes to it. Anything stored only on the old disk is unavailable until it is refitted or restored, and a disk in an array or boot path can stop the server starting.
Replace the disk following your hardware vendor's instructions, then restore or rebuild onto the new disk.
To back out before any restore or rebuild has started: if the removed disk still responds, refit it in the same slot, start the system, and compare smartctl -x with /root/smart-sdb.before-replace.2026-12-02.txt. Once a rebuild or restore has begun, do not refit the old disk, because it is out of step with the new one; restore from the verified copy. If the old disk does not respond, restore from the verified copy.
Example (illustrative): db01 logs critical medium error, dev sdb, sector 123456789 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0 three times in one minute, naming two different sectors. The line before the first one reports sense key Medium Error. smartctl -i /dev/sdb names a 4 TB disk, and smartctl -l error /dev/sdb lists read errors with no ICRC entries. With the status critical medium, no transport lines and no interface errors, the table points to the disk's media. The engineer images the disk first, then replaces it.
Confirm the fix
- The new disk's
smartctl -ishows its own serial number, andsmartctl -Hpasses. dmesg -Tshows no newerror, devlines for it after restore or rebuild.- The restored data is checked at the application level, which the kernel log cannot do.
What to watch afterwards
- Search the kernel log for
error, devafter each restart and after each cable or controller change. - Read SMART data on the other disks in the server and keep the saved output.
- Because the message is rate limited, an absence of repeats does not prove the errors have stopped; read the SMART error log too.
Read next
Related articles you may want next.
- Backup & RecoveryA failing disk in a Linux server: image it before you repair itWhy a failing Linux disk should be imaged before repair: SMART evidence, ddrescue and its mapfile, read-only checks, and repairing the copy, not the original.Read article
- Troubleshootingsmartctl "SMART overall-health self-assessment test result: FAILED!": what the verdict means and what to do firstsmartctl says SMART overall-health self-assessment test result: FAILED!? Protect the data, then read the exit status, attributes and logs.Read article
- Troubleshootingsmartd: "Currently unreadable (pending) sectors" on a Linux disk: what to check firstsmartd reports Currently unreadable (pending) sectors when attribute 197 is non-zero. Read the SMART data, protect the data, then decide on the disk.Read article
Risks and limits
- These commands have not been run or lab-tested.
- The meaning of each status name is read from kernel source at fixed tags; the kernel can change names and mappings between releases, and the mapping given covers the SCSI layer only.
- The message does not say whether the disk, cable, controller, driver or a remote device is at fault; the lines before it do.
- smartctl output differs for NVMe, SAS and RAID-controller disks.
Sources
- block/blk-core.c at v5.15 — Linux kernel source, tag v5.15, no date shown, accessed 2 December 2026
- block/blk-core.c at v5.4 — Linux kernel source, tag v5.4, no date shown, accessed 2 December 2026
- block/blk-core.c at v6.6 — Linux kernel source, tag v6.6, no date shown, accessed 2 December 2026
- block/blk-mq.c at v6.6 — Linux kernel source, tag v6.6, no date shown, accessed 2 December 2026
- drivers/scsi/scsi_lib.c at v6.6 — Linux kernel source, tag v6.6, no date shown, accessed 2 December 2026
- drivers/scsi/scsi_error.c at v6.6 — Linux kernel source, tag v6.6, no date shown, accessed 2 December 2026
- drivers/scsi/constants.c at v6.6 — Linux kernel source, tag v6.6, no date shown, accessed 2 December 2026
- dmesg(1) — Debian Manpages, bookworm, source updated 21 November 2024, accessed 2 December 2026
- journalctl(1) — Debian Manpages, bookworm, source updated 6 March 2025, accessed 2 December 2026
- smartctl(8) — Debian Manpages, bookworm (smartmontools 7.3-1+b1), source updated 16 October 2022, accessed 2 December 2026
This article was originally published on .