How to eject an USB disk on FreeBSD

Olivier Nicole on at
Thu Aug 28 07:42:19 UTC 2008

> > 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.


More information about the freebsd-questions mailing list