How to eject an USB disk on FreeBSD
freebsd at edvax.de
Thu Aug 28 07:35:24 UTC 2008
On Thu, 28 Aug 2008 13:56:27 +0700 (ICT), Olivier Nicole <on at cs.ait.ac.th> wrote:
> 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
# camcontrol devlist
you should be able to use camcontrol's eject or stop command
on that device, usually /dev/da[0-9].
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions