[ltp] IDE hotswapping

Laurent Gilson linux-thinkpad@linux-thinkpad.org
Fri, 21 Apr 2006 21:51:56 +0200


Hello,

> Tim Stadelmann's hotswap utility (you call it "Debian hotswap" on
> http://www.thinkwiki.org/wiki/UltraBay) does not work for me. It
> assumes that /dev/hda is always present, and issues HDIO_SCAN_HWIF and
> HDIO_UNREGISTER_HWIF ioctl's on it to register/unregister the device,
> both of which fail on my machine (which may be due to the fact that
> /dev/hda is the only IDE device here).

The util is just a "frontend" (a re-implementation) for hdparm. Try to use  
hdparm directly. You may want to read about -X, -U and -R options.

cu