From owner-freebsd-questions@FreeBSD.ORG Wed Oct 26 08:32:39 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0AD8716A41F for ; Wed, 26 Oct 2005 08:32:39 +0000 (GMT) (envelope-from thomas.linton@it-sc.at) Received: from smartmx-04.inode.at (smartmx-04.inode.at [213.229.60.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBF1343D45 for ; Wed, 26 Oct 2005 08:32:37 +0000 (GMT) (envelope-from thomas.linton@it-sc.at) Received: from [80.121.46.214] (port=55584 helo=M1399P022.adsl.highway.telekom.at) by smartmx-04.inode.at with esmtpa (Exim 4.50) id 1EUgi4-0008FZ-Hz; Wed, 26 Oct 2005 10:32:36 +0200 From: Thomas Linton To: "Michal F. Hanula" In-Reply-To: <20051024190008.GA734@roo.7f000001.org> References: <1129822042.780.20.camel@itsc.at> <20051024190008.GA734@roo.7f000001.org> Content-Type: text/plain Organization: IT-Systeme und Consulting Date: Wed, 26 Oct 2005 10:32:24 +0200 Message-Id: <1130315544.709.12.camel@kingkong> Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: How to remove a "Hotplug" Laptop CD/DVD Drive X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: thomas.linton@it-sc.at List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2005 08:32:39 -0000 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 ATA/ATAPI revision 6 Slave: no device present ATA channel 1: Master: acd0 ATA/ATAPI revision 6 Slave: no device present kingkong# kingkong# atacontrol detach 1 kingkong# atacontrol list ATA channel 0: Master: ad0 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 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 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: 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 > m&f > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"