How to remove a "Hotplug" Laptop CD/DVD Drive

Thomas Linton thomas.linton at it-sc.at
Wed Oct 26 01:32:39 PDT 2005


I didn't know about "atacontrol". The flag "stop" doesn't exist (freeBSD
5.4) so I tried following things:

kingkong# atacontrol list
ATA channel 0:
    Master:  ad0 <HTS541080G9AT00/MB4IA5BJ> ATA/ATAPI revision 6
    Slave:       no device present
ATA channel 1:
    Master: acd0 <MATSHITADVD-RAM UJ-822S/1.03> ATA/ATAPI revision 6
    Slave:       no device present
kingkong#

kingkong# atacontrol detach 1
kingkong# atacontrol list
ATA channel 0:
    Master:  ad0 <HTS541080G9AT00/MB4IA5BJ> ATA/ATAPI revision 6
    Slave:       no device present
ATA channel 1:
    Master:      no device present
    Slave:       no device present
kingkong#


At the same time I got following message in /var/log/messages:

Oct 26 09:41:42 kingkong kernel: acd0: WARNING - removed from
configuration
Oct 26 09:41:42 kingkong kernel: (cd0:ata1:0:0:0): lost device
Oct 26 09:41:42 kingkong kernel: (cd0:ata1:0:0:0): removing device entry


After this I removed the DVD Drive (the Power-LED of the media-slot was
still ON ?) and got following information in /var/log/messages:

Oct 26 09:44:50 kingkong kernel: stray irq15
Oct 26 09:44:50 kingkong kernel: too many stray irq 15's: not logging
anymore


I put the drive back; /var/log/messages didn't get any updates.

kingkong# atacontrol attach 1
Master: acd0 <MATSHITADVD-RAM UJ-822S/1.03> ATA/ATAPI revision 6
Slave:       no device present
kingkong#


got following update in /var/log/messages:

Oct 26 09:46:20 kingkong kernel: acd0: DVDR <MATSHITADVD-RAM
UJ-822S/1.03> at ata1-master UDMA33
Oct 26 09:46:20 kingkong kernel: cd0 at ata1 bus 0 target 0 lun 0
Oct 26 09:46:20 kingkong kernel: cd0: <MATSHITA DVD-RAM UJ-822S 1.03>
Removable CD-ROM SCSI-0 device
Oct 26 09:46:20 kingkong kernel: cd0: 33.000MB/s transfers
Oct 26 09:46:20 kingkong kernel: cd0: Attempt to query device size
failed: NOT READY, Medium not present




After the whole procedure I saw the channel with "atacontrol list" and
could mount a CD without any errors. I tried the same thing with WinXP
("safe remove") to see, if the Power-LED of the media-slot  is switching
off and it does. 

I was wondering, if any kind of hotpluging (e.g. PCI Adapters) is
supported by freeBSD?

Regards, Thomas.


On Mon, 2005-10-24 at 21:00 +0200, Michal F. Hanula wrote: 
> On Thu, Oct 20, 2005 at 05:27:22PM +0200, Thomas Linton wrote:
> > What is the correct and safe way to remove a "Hotplug" CD/DVD Drive from
> > a Laptop? 
> If the drive is on a separate IDE channel, try
> 	atacontrol stop <channel>
> 							m&f
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"




More information about the freebsd-questions mailing list