Debian 10 disk hot swap problem?


New Member
May 8, 2020
Reaction score
Hi there, i usually build NAS on Debian releases, using consumer level hardware which natively doesn't support Sata hot swap.

This have never really been an issue since it's possibile to safely detach a disk (unmounted of course) using for example:
echo 1>/sys/block/sdb/device/delete

And then scanning again (with rescan-scsi-bus or whatever) when a new disk has been plugged.

I would say that the above strategy worked on same hardware from Debian 6 until Debian 8 (at least).

Starting with Debian10, I'm not always able to perform this operation, i get "Permission denied" when echoing to "/sys/block/sdb/device/delete" and in fact i see that "delete" is missing from the above path. The worst, i can't do a clean reboot (over ssh) and i'm forced to send magic sysrq to perform a reboot.

Does someone has an explanation (or where to look for), and are there alternatives?

Thank you so much