Rescan IDE interface when no IDE devices are present

Rescan IDE interface when no IDE devices are present

Post by Daniel De » Tue, 18 Jul 2006 04:20:21


My laptop has only one IDE interface (/dev/hdc), which means there are
no valid IDE block devices which can be used for HDIO_SCAN_HWIF ioctl
to scan for the insertion of my CD-ROM drive.

Are there alternate methods of invoking this ioctl, or for creating an
open filehandle where it can be used?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
 
 
 

Rescan IDE interface when no IDE devices are present

Post by Benjamin H » Tue, 18 Jul 2006 04:30:16


If you have ide1, you have both hdc and hdd (slave of hdc) unles sit's
not really IDE ...

Ben.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/

 
 
 

Rescan IDE interface when no IDE devices are present

Post by Daniel De » Tue, 18 Jul 2006 05:10:09


Yes, I have /dev/hdd, but no device is ever present there. I also have
/dev/sda for the SATA hard disk, but do not think it is useful for
HDIO_SCAN_HWIF or HWIO_UNREGISTER_HWIF ioctls.

- Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
 
 
 

Rescan IDE interface when no IDE devices are present

Post by Joshua Hud » Tue, 18 Jul 2006 05:30:16

I wonder if its like my laptop: hdc is hard disk, hda is cdrom, and in
this case removable so it is necessary to scan for ide0 when inserting
cdrom.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
 
 
 

Rescan IDE interface when no IDE devices are present

Post by Alan Co » Thu, 27 Jul 2006 09:30:11


There isn't. Feel free to write a module to do it (see how the ioctl
handles it and follow the same logic). Its at best a hack. libata is
trying to add proper hotplug for ATA/SATA.

Alan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/
 
 
 

Rescan IDE interface when no IDE devices are present

Post by Daniel De » Thu, 27 Jul 2006 11:00:14


I wrote a module to do the register/unregister through a /proc file.
It currently only works on ide1; the constants in scan_hw and unreg_hw
should be made to depend on the value written to the /proc if other
interfaces are needed. Available at
http://www.yqcomputer.com/

Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to XXXX@XXXXX.COM
More majordomo info at http://www.yqcomputer.com/
Please read the FAQ at http://www.yqcomputer.com/