USB HDD IO scheduler

Just got a nice USB drives enclosure for backups, has 5 drives bays via USB 3.1 type c :partying_face:

What’s the correct way (if any) to target / set disks scheduler for USB drive?
I’d like to do it kinda like i did with SSD / HDD / nvme, by type:

/etc/udev/rules.d/96-scheduler.rules

# IO scheduler
# Algorithm to manage disk IO requests and balance it with other CPU loads.

# HDD
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="1", ATTR{queue/scheduler}="mq-deadline"

# SSD
ACTION=="add|change", KERNEL=="sd[a-z]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="bfq"

# NVMe SSD
ACTION=="add|change", KERNEL=="nvme0n[0-9]", ATTR{queue/rotational}=="0", ATTR{queue/scheduler}="none"

Dammit :man_facepalming:

Sorry, i’ve just mixed up those disks with another ones, now i realized that turns out whatever is inside the usb enclosure - correctly identifies as HDD / SSD and set scheduler according to my rules already :upside_down_face:

2 Likes