Recovering Proxmox from RTL9210 UAS Transport Failures
A Proxmox host kept aborting its EXT4 journal because a USB-to-NVMe bridge was unstable under UAS; disabling UAS for that exact device fixed it.
In short
A Proxmox host kept aborting its EXT4 journal (the filesystem’s recovery log) and looked like a dead system SSD. The SSD was fine. The USB-to-NVMe bridge, a Realtek RTL9210B-CG (0bda:9210), was unstable on UAS (the faster USB storage driver). Tell the kernel to ignore UAS for that exact USB id so the bridge uses usb-storage instead. Practice the repair on a copy first. The proof is a reboot plus a direct read-back test, not a clean boot alone.
What you need
- The Proxmox host: 1 TB Samsung 980 PRO, EXT4, LVM thin, USB 10 Gb/s link through that bridge
- A full-disk image stored somewhere else, and a RAM-boot recovery environment
qemu-img,e2fsck,smartctl,nvme, and a shell that can edit GRUB and the initramfs- The known-good kernel version (called
<known-good-kernel-version>below)
Credentials, serial numbers, backup hashes, private addresses, local paths, and raw logs are left out. Names like /dev/sda are not stable. Identify the disk before you repair it.
Keep the image read-only
Warning: do not repair or boot the only trusted backup. Keep it read-only. Test on an overlay (a file that stores changes) or a clone. If a test overlay is wrong, delete the overlay. The master image stays as it was.
qemu-img info <master-image>
qemu-img create \
-f qcow2 \
-F raw \
-b <master-image> \
<repair-overlay.qcow2>
qemu-img create \
-f qcow2 \
-F qcow2 \
-b <repair-overlay.qcow2> \
<disposable-boot-test.qcow2>
qemu-img info --backing-chain <disposable-boot-test.qcow2>
Read-only checks showed limited metadata damage from unclean shutdowns. No finished check reported bad blocks:
e2fsck -f -n <filesystem-device>
mount -o ro,noload <filesystem-device> <mountpoint>
Repairs in the overlay passed a later read-only check, and the disposable child booted to the normal Proxmox login. The source image was not modified.
On the real SSD, from the RAM environment: SMART overall health passed, no critical warning, full spare, low wear, zero media or data-integrity errors, zero NVMe error-log entries.
smartctl --scan-open
smartctl -x <bridge-exposed-device>
nvme smart-log <native-nvme-device>
nvme error-log <native-nvme-device>
That argued against dying NAND. It did not prove the whole path was healthy. After the real filesystems were repaired and checked offline, aborted journals came back on a normal boot. The live USB path was the problem, not leftover filesystem damage.
lsusb
lsusb -t
The kernel quirk is usb-storage.quirks=0bda:9210:u. The u flag is US_FL_IGNORE_UAS. In the RAM environment the bridge then bound to usb-storage instead of uas, still at 10 Gb/s.
This does not say whether firmware, cable, power, or a kernel interaction was the deepest trigger. It also does not mean every RTL9210 box needs the quirk.
Try the quirk with the disks unmounted
Warning: rebinding the USB driver can drop a mounted root disk immediately. Do this from the RAM environment, with the target filesystems unmounted. Do not do it from the installed system while that disk is in use. If you bind the wrong interface, put it back on uas the same way, or reboot the RAM environment.
printf '%s\n' '0bda:9210:u' \
> /sys/module/usb_storage/parameters/quirks
readlink -f /sys/bus/usb/devices/*/driver
lsusb -t
printf '%s\n' '<usb-interface-id>' \
> /sys/bus/usb/drivers/uas/unbind
printf '%s\n' '<usb-interface-id>' \
> /sys/bus/usb/drivers/usb-storage/bind
lsusb -t
dmesg -T | grep -Ei '0bda|9210|uas|usb-storage|quirk'
You should see Driver=usb-storage for this bridge.
Repair only unmounted filesystems you have identified, then check again:
e2fsck -f <filesystem-device>
e2fsck -f -n <filesystem-device>
Put the quirk on the early boot path
The root filesystem sits behind the bridge, so a setting applied after boot is too late. Add it to the kernel command line and to the initramfs. Use a kernel you already trust with this host’s other hardware and out-of-tree drivers.
cat >/etc/default/grub.d/99-rtl9210-usb-storage.cfg <<'EOF'
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX usb-storage.quirks=0bda:9210:u"
EOF
cat >/etc/modprobe.d/rtl9210-usb-storage.conf <<'EOF'
options usb-storage quirks=0bda:9210:u
EOF
update-initramfs -u -k <known-good-kernel-version>
update-grub
Confirm the files before you reboot. To undo, remove those two files, run update-initramfs and update-grub again, and reboot.
lsinitramfs /boot/initrd.img-<known-good-kernel-version> \
| grep rtl9210-usb-storage.conf
grep -n 'usb-storage.quirks=0bda:9210:u' /boot/grub/grub.cfg
Prove reads and writes
A clean boot was not treated as proof. A temporary logical volume used only confirmed free space. A random pattern was built outside the disk under test, written with direct I/O, read back, and compared. The pattern was repeated across the full temporary LV. All segments matched. There were no USB resets, kernel I/O errors, new SMART errors, media errors, or hash mismatches. Then the temporary volume was removed.
lvcreate -L 4G -n <temporary-test-lv> <volume-group>
dd if=/dev/urandom of=<ram-backed-pattern> \
bs=1M count=256 status=progress
sha256sum <ram-backed-pattern>
dd if=<ram-backed-pattern> of=<temporary-lv-device> \
bs=4M oflag=direct conv=fsync status=progress
dd if=<temporary-lv-device> bs=4M iflag=direct count=64 status=none \
| sha256sum
lvremove <temporary-lv-device>
lvs -a
Warning: lvremove deletes that temporary volume. Remove only the test volume you just created. If you remove the wrong one, restore it from the backup image. Do not reuse this test volume for real data.
After reboot:
uname -r
cat /proc/cmdline
lsusb -t
systemctl --failed
pvesm status
lvs -a -o +data_percent,metadata_percent
journalctl -k -b | grep -Ei \
'ext4|journal|I/O error|buffer I/O|usb|uas|scsi|nvme|reset|abort'
You should see the known-good kernel, the quirk on the live command line, Driver=usb-storage, healthy Proxmox services and thin-pool metadata, and no new storage, journal, reset, or transport errors.
If it doesn’t work
- Journals abort again and
lsusb -tstill showsuasfor0bda:9210. The quirk did not make early boot. Recheckgrub.cfgand the initramfs. - SMART is clean but journals still abort on
uas. That matches this bridge problem. SMART does not clear the USB path. - The web UI is gone after a rebind. You did it from the installed system. Boot the RAM environment and leave the root disk unmounted.
- Hashes do not match, or new SMART or media errors appear. Stop the test and go back to the read-only image. Do not call the quirk done.
- A different RTL9210 box is misbehaving. This workaround was for this exact id. It is not a blanket fix.
Spot something wrong or outdated? Leave a comment below. Every comment is reviewed to keep these posts accurate.
By commenting, you agree to our Terms of use and confirm this is your own work. Short quotes are fine with a credit and link. Copied, unsafe, or abusive comments are removed. See something copied? Say so here.