Mauro Carvalho Chehab | d7b461c5 | 2019-06-12 14:52:47 -0300 | [diff] [blame] | 1 | =================== |
Bartlomiej Zolnierkiewicz | f74c914 | 2008-04-18 00:46:23 +0200 | [diff] [blame] | 2 | IDE warm-plug HOWTO |
| 3 | =================== |
| 4 | |
Mauro Carvalho Chehab | d7b461c5 | 2019-06-12 14:52:47 -0300 | [diff] [blame] | 5 | To warm-plug devices on a port 'idex':: |
Bartlomiej Zolnierkiewicz | f74c914 | 2008-04-18 00:46:23 +0200 | [diff] [blame] | 6 | |
Mauro Carvalho Chehab | d7b461c5 | 2019-06-12 14:52:47 -0300 | [diff] [blame] | 7 | # echo -n "1" > /sys/class/ide_port/idex/delete_devices |
Bartlomiej Zolnierkiewicz | f74c914 | 2008-04-18 00:46:23 +0200 | [diff] [blame] | 8 | |
Mauro Carvalho Chehab | d7b461c5 | 2019-06-12 14:52:47 -0300 | [diff] [blame] | 9 | unplug old device(s) and plug new device(s):: |
Bartlomiej Zolnierkiewicz | f74c914 | 2008-04-18 00:46:23 +0200 | [diff] [blame] | 10 | |
Mauro Carvalho Chehab | d7b461c5 | 2019-06-12 14:52:47 -0300 | [diff] [blame] | 11 | # echo -n "1" > /sys/class/ide_port/idex/scan |
Bartlomiej Zolnierkiewicz | f74c914 | 2008-04-18 00:46:23 +0200 | [diff] [blame] | 12 | |
| 13 | done |
Bartlomiej Zolnierkiewicz | 02c84bd | 2009-01-06 17:21:00 +0100 | [diff] [blame] | 14 | |
| 15 | NOTE: please make sure that partitions are unmounted and that there are |
| 16 | no other active references to devices before doing "delete_devices" step, |
| 17 | also do not attempt "scan" step on devices currently in use -- otherwise |
| 18 | results may be unpredictable and lead to data loss if you're unlucky |