I have an old NAS I use for backups. The BIOS is set to enable hot-plugging and the system used to simply initialize any drive I inserted.
Sometime last year a NixOS update halted the auto-initializing. I have to insert a drive and then do echo "- - -" | tee /sys/class/scsi_host/host*/scan in order to make the drive available for mounting. Nothing appears in dmesg or journalctl about the drive until I do.
Unfortunately my Linux knowledge is too insufficient to be able to figure out what changed. Is there a trigger somewhere which was removed? Is there any way for the kernel to detect when the SATA device comes online?
Can anybody help me make it so I don’t have to do the echo every time?