Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Aug 2008 18:11:46 +0200
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        freebsd-usb@freebsd.org
Subject:   Re: How to eject an USB disk on FreeBSD
Message-ID:  <200808281811.46885.hselasky@c2i.net>
In-Reply-To: <200808280746.m7S7kuJV018511@banyan.cs.ait.ac.th>
References:  <200808280746.m7S7kuJV018511@banyan.cs.ait.ac.th>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 28 August 2008, Olivier Nicole wrote:
> Hello,
>
> Is there a command in FreeBSD that ejects a USB disk like in Windows?
>
> I mount the USB disk with automount daemone (amd).
>
> I have a script that access this disk and force an umount at the end
> of the script.
>
> But anyone accessing the disk will have amd re'mount the disk and at
> the time I unplu the disk, problem may occur because the disk is still
> mounted and in use.
>
> 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.
>
> Like in Windows after stopping a USB mass storage device, one has to
> unplg and replug the disk if he wants to access it again.
>

Hi,

Maybe the following will help:

man camcontrol

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808281811.46885.hselasky>