Date: Thu, 28 Aug 2008 09:35:21 +0200 From: Polytropon <freebsd@edvax.de> To: Olivier Nicole <on@cs.ait.ac.th> Cc: freebsd-questions@freebsd.org Subject: Re: How to eject an USB disk on FreeBSD 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 28 Aug 2008 13:56:27 +0700 (ICT), Olivier Nicole <on@cs.ait.ac.th> 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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080828093521.cbb8865d.freebsd>