From owner-freebsd-mobile@FreeBSD.ORG Tue Aug 12 08:21:02 2003 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F51C37B401 for ; Tue, 12 Aug 2003 08:21:02 -0700 (PDT) Received: from main.gmane.org (main.gmane.org [80.91.224.249]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9884943F75 for ; Tue, 12 Aug 2003 08:21:01 -0700 (PDT) (envelope-from freebsd-mobile@m.gmane.org) Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 19mayX-0003zy-00 for ; Tue, 12 Aug 2003 17:22:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-mobile@freebsd.org Received: from sea.gmane.org ([80.91.224.252]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19mayW-0003zq-00 for ; Tue, 12 Aug 2003 17:22:16 +0200 Received: from news by sea.gmane.org with local (Exim 3.35 #1 (Debian)) id 19maxH-00026c-00 for ; Tue, 12 Aug 2003 17:20:59 +0200 From: Jesse Guardiani Date: Tue, 12 Aug 2003 11:20:59 -0400 Organization: WingNET Lines: 60 Message-ID: References: <7551391.1060700599918.JavaMail.nobody@fozzie.psp.pas.earthlink.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet@sea.gmane.org User-Agent: KNode/0.7.2 X-Mail-Copies-To: never Sender: news Subject: Re: Hot swap of bay devices X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jesse@wingnet.net List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Aug 2003 15:21:02 -0000 Sean Welch wrote: > I read your account of successfully swapping devices > in an HP notebook and just had to give it a try on > my Dell Inspiron 8000. Unfortunately it didn't work > so well. > > Would you be so kind as to list out the exact steps you > use? > > Here is what I did (I normally use a second battery in > the bay) under 4.8-RELEASE: > > 1) Remove battery. > 2) Plug in Sony CDRW unit > 3) Run atacontrol info 1 and see CDRW unit > 4) Run atacontrol mode 1 and see mode ??? > 5) Run atacontrol mode 1 WDMA2 0 and get hung xterm > 6) Run atacontrol mode 1 and still see mode ??? > 7) Run atacontrol reinit 1 and get hung xterm > 8) Run atacontrol mode 1 and still see mode ??? > 9) Run atacontrol detach 1 and get hung xterm > 10) Run atacontrol info 1 and still see CDRW unit > 11) Run atacontrol detach 1 and get hung xterm > 12) Remove CDRW unit and replace battery > 13) Run atacontrol list and still see CDRW listed > 14) Check ps -ax | grep ata and see: > > 17284 p2- D 0:17.51 atacontrol mode 1 WDMA2 0 > 16578 p5- D 0:17.77 atacontrol reinit 1 > 17068 p5- D 0:18.15 atacontrol detach 1 > 18837 p5- D 0:16.95 atacontrol detach 1 To remove and reattach my DVD-ROM on my IBM A30p, all I do is this: 1.) atacontrol info (to see channel) 2.) atacontrol detach 1 (to detach everything on channel 1) 3.) remove drive 4.) replace drive 5.) atacontrol attach 1 (to attach everythin on channel 1) Done. I've never tried to attach a different device before, but this works great for the device I have. NOTE: Make sure the drive isn't being used before you try to detach it. For example, my drive is /dev/acd0. I run: fstat /dev/acd0 Then kill any programs that are using that device before detaching. -- Jesse Guardiani, Systems Administrator WingNET Internet Services, P.O. Box 2605 // Cleveland, TN 37320-2605 423-559-LINK (v) 423-559-5145 (f) http://www.wingnet.net