From owner-freebsd-questions@FreeBSD.ORG Thu Dec 1 11:04:47 2011 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7C70106564A for ; Thu, 1 Dec 2011 11:04:47 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 89EF48FC0A for ; Thu, 1 Dec 2011 11:04:47 +0000 (UTC) Received: from r56.edvax.de (port-92-195-83-168.dynamic.qsc.de [92.195.83.168]) by mx02.qsc.de (Postfix) with ESMTP id 83A65295E0; Thu, 1 Dec 2011 12:04:45 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id pB1B4iaQ001945; Thu, 1 Dec 2011 12:04:44 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Thu, 1 Dec 2011 12:04:44 +0100 From: Polytropon To: CyberLeo Kitsana Message-Id: <20111201120444.b4eb5ce1.freebsd@edvax.de> In-Reply-To: <4ED735CD.7030505@cyberleo.net> References: <20182.39340.354254.608836@jerusalem.litteratus.org> <4ED735CD.7030505@cyberleo.net> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Robert Huff , questions@freebsd.org Subject: Re: problem formating disk with gpart X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Dec 2011 11:04:47 -0000 On Thu, 01 Dec 2011 02:07:41 -0600, CyberLeo Kitsana wrote: > On 11/30/2011 03:01 PM, Robert Huff wrote: > > > > One of my systems has a hot-swap eSATA device, which reports as > > "ad1". I'm trying to use this to prepare a new disk using gpart and > > something (possibly my understanding) is broken. > > After removing another disk and inserting the new one, I do: > > > >>> gpart show ad1 > > => 34 976773101 ad1 GPT (465G) > > 34 976773101 - free - (465G) > > > > ... which is the value for the disk just removed. > > If I do (to start clean): > > > >>> gpart destroy ad1 > > gpart destroy ad1 > > gpart: Input/output error > > > > Huh? > > If I remember correctly, the old ATA subsystem (ad*) does not support > hotswap notification, so the kernel will not see a device change until > reboot or reinit. You should probably be using AHCI (if the driver > supports your chipset) or very careful use of atacontrol detach, attach, > or reinit. I'm not fully sure if this applies here, but there are the following commands: atacontrol attach channel atacontrol detach channel atacontrol reinit channel atacontrol spindown device [seconds] atacontrol list It seems as they are intended to support "manual hotswapping" to be done with SATA. See "man atacontrol" for details. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...