From owner-freebsd-questions@FreeBSD.ORG Thu Aug 28 07:35:24 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 628561065680 for ; Thu, 28 Aug 2008 07:35:24 +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 2875E8FC1F for ; Thu, 28 Aug 2008 07:35:24 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r55.edvax.de (port-92-195-46-249.dynamic.qsc.de [92.195.46.249]) by mx02.qsc.de (Postfix) with ESMTP id 4D36D16C0276; Thu, 28 Aug 2008 09:35:22 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id m7S7ZLDW003847; Thu, 28 Aug 2008 09:35:21 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Thu, 28 Aug 2008 09:35:21 +0200 From: Polytropon To: Olivier Nicole Message-Id: <20080828093521.cbb8865d.freebsd@edvax.de> In-Reply-To: <200808280656.m7S6uR9H017806@banyan.cs.ait.ac.th> References: <200808280656.m7S6uR9H017806@banyan.cs.ait.ac.th> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: How to eject an USB disk on FreeBSD 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, 28 Aug 2008 07:35:24 -0000 On Thu, 28 Aug 2008 13:56:27 +0700 (ICT), Olivier Nicole wrote: > Hello, > > Is there a command in FreeBSD that ejects a USB disk like in Windows? > [...] > I would like to have a command that makes the disk/USB port physically > inaccessible, so at the end of the script a user cannot access the > disk again. If the USB disk is accessed via a device that is listed when you do # camcontrol devlist you should be able to use camcontrol's eject or stop command on that device, usually /dev/da[0-9]. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...