From owner-freebsd-geom@FreeBSD.ORG Tue Sep 7 15:23:42 2010 Return-Path: Delivered-To: geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5733710656D9 for ; Tue, 7 Sep 2010 15:23:42 +0000 (UTC) (envelope-from alexander@leidinger.net) Received: from mail.ebusiness-leidinger.de (mail.ebusiness-leidinger.de [217.11.53.44]) by mx1.freebsd.org (Postfix) with ESMTP id 0608B8FC20 for ; Tue, 7 Sep 2010 15:23:41 +0000 (UTC) Received: from outgoing.leidinger.net (p57B3AACD.dip.t-dialin.net [87.179.170.205]) by mail.ebusiness-leidinger.de (Postfix) with ESMTPSA id A21CE844010; Tue, 7 Sep 2010 17:05:29 +0200 (CEST) Received: from webmail.leidinger.net (webmail.leidinger.net [192.168.1.102]) by outgoing.leidinger.net (Postfix) with ESMTP id C35941133; Tue, 7 Sep 2010 17:05:26 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=Leidinger.net; s=outgoing-alex; t=1283871926; bh=KQYdwzp1DsxJT+ppUWtZTqw/gy2OgEfusZD/fY9NGr8=; h=Message-ID:Date:From:To:Subject:MIME-Version:Content-Type: Content-Transfer-Encoding; b=QtDDCgioSBPGs9vpnPYniZg/1b+ejesBMTIEpiY+aPd8wILJj8kQkO3fyFn8iHd3M mcF/TM3pdj6BC0quE/Ty0yOZSsMMPchE2LmaqNQF0Q0bFaWEC4Qo+e8AdadkSVhIkO mdlM1YETQ6yrXDOP9PVE+3tgrmAlP95jIHlBvet2Orr4EcXdxet/fXTHP0wwCNaYcD EO31USfSyawW29KnDniJJQtIazHA1anSWrdrm+f6n1j1oqtotVIHq+eE6JshRUoZMD esT404YcJjaSKRk3NWHN4fdQf/d/156o3pvfdkEtzNUc1VKusTNexsFxA/LEPvNYdd nmRwPqxM0JlVw== Received: (from www@localhost) by webmail.leidinger.net (8.14.4/8.13.8/Submit) id o87F5QaA021453; Tue, 7 Sep 2010 17:05:26 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.ec.europa.eu (pslux.ec.europa.eu [158.169.9.14]) by webmail.leidinger.net (Horde Framework) with HTTP; Tue, 07 Sep 2010 17:05:26 +0200 Message-ID: <20100907170526.834646wxfkh4sou8@webmail.leidinger.net> Date: Tue, 07 Sep 2010 17:05:26 +0200 From: Alexander Leidinger To: geom@FreeBSD.org, mav@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Dynamic Internet Messaging Program (DIMP) H3 (1.1.4) X-EBL-MailScanner-Information: Please contact the ISP for more information X-EBL-MailScanner-ID: A21CE844010.A75CF X-EBL-MailScanner: Found to be clean X-EBL-MailScanner-SpamCheck: not spam, spamhaus-ZEN, SpamAssassin (not cached, score=-1.1, required 6, autolearn=disabled, ALL_TRUSTED -1.00, DKIM_SIGNED 0.10, DKIM_VALID -0.10, DKIM_VALID_AU -0.10) X-EBL-MailScanner-From: alexander@leidinger.net X-EBL-MailScanner-Watermark: 1284476732.27925@7y+kdlOz0Kh20nG4QaRBvQ X-EBL-Spam-Status: No X-Mailman-Approved-At: Tue, 07 Sep 2010 15:41:59 +0000 Cc: Subject: Determinig removable devices in shell scripts? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Sep 2010 15:23:42 -0000 Hi, is there an easy way to determine in a shell script if a device (da/ada) is removable (USB memory stick, eSATA connection)? I was thinking more or less about something like "sysctl kern.disks". Bye, Alexander. -- Pardon me, but do you know what it means to be TRULY ONE with your BOOTH! http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137