danieldg
05-25-2006, 08:01 PM
I'd like to be able to insert the CDROM drive on my laptop after booting, or (later) remove it and prevent applications accessing /dev/hdc from going into I/O sleep (can't kill -9 them).
How do I get the linux kernel to re-probe IDE interfaces? I think this would do it.
Also, just curious if I need to do something before removing the CDROM - like windows's Safely Remove Hardware thingy.
EDIT: I'll post things I discover here, in the hopes that it could help someone else, or get someone to reply :D
"hdparm -U 1 /dev/hdc" (run by idectl 1 off) seems to partially work for disabling it - udev removes the /dev/hdc file, and the copy returns "No such device or address" from then on. Only problem is the hdparm process is in uninterruptable sleep.
How do I get the linux kernel to re-probe IDE interfaces? I think this would do it.
Also, just curious if I need to do something before removing the CDROM - like windows's Safely Remove Hardware thingy.
EDIT: I'll post things I discover here, in the hopes that it could help someone else, or get someone to reply :D
"hdparm -U 1 /dev/hdc" (run by idectl 1 off) seems to partially work for disabling it - udev removes the /dev/hdc file, and the copy returns "No such device or address" from then on. Only problem is the hdparm process is in uninterruptable sleep.