^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) ===================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) IDE warm-plug HOWTO
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) ===================
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5) To warm-plug devices on a port 'idex'::
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) # echo -n "1" > /sys/class/ide_port/idex/delete_devices
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9) unplug old device(s) and plug new device(s)::
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) # echo -n "1" > /sys/class/ide_port/idex/scan
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) done
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) NOTE: please make sure that partitions are unmounted and that there are
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) no other active references to devices before doing "delete_devices" step,
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) also do not attempt "scan" step on devices currently in use -- otherwise
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) results may be unpredictable and lead to data loss if you're unlucky