Date: Thu, 28 Aug 2008 14:42:00 +0700 (ICT) From: Olivier Nicole <on@cs.ait.ac.th> To: freebsd@edvax.de Cc: freebsd-questions@freebsd.org Subject: Re: How to eject an USB disk on FreeBSD Message-ID: <200808280742.m7S7g0J5018429@banyan.cs.ait.ac.th> In-Reply-To: <20080828093521.cbb8865d.freebsd@edvax.de> (message from Polytropon on Thu, 28 Aug 2008 09:35:21 %2B0200) References: <200808280656.m7S6uR9H017806@banyan.cs.ait.ac.th> <20080828093521.cbb8865d.freebsd@edvax.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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. > > you should be able to use camcontrol's eject or stop command > on that device, usually /dev/da[0-9]. I tried that. That would eventually stop the disk from spining, but the USB device umass0 that emulates the disk device da0 is still there and ready to restart the disk at the first interaction. Olivier
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808280742.m7S7g0J5018429>