https://github.com/torvalds/linux
Raw File
Tip revision: 55639353a0035052d9ea6cfe4dde0ac7fcbb2c9f authored by Linus Torvalds on 18 December 2009, 01:14:40 UTC
Linux 2.6.33-rc1
Tip revision: 5563935
warm-plug-howto.txt

IDE warm-plug HOWTO
===================

To warm-plug devices on a port 'idex':

# echo -n "1" > /sys/class/ide_port/idex/delete_devices

unplug old device(s) and plug new device(s)

# echo -n "1" > /sys/class/ide_port/idex/scan

done

NOTE: please make sure that partitions are unmounted and that there are
no other active references to devices before doing "delete_devices" step,
also do not attempt "scan" step on devices currently in use -- otherwise
results may be unpredictable and lead to data loss if you're unlucky
back to top