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