.\" Copyright (c) 1995-2000 Shunsuke Akiyama . .\" All rights reserved. .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" $Id: eject.1,v 1.6 2000/09/24 13:12:50 akiyama Exp $ .\" .Dd Sep 24, 2000 .Dt EJECT 1 .Os .Sh NAME .Nm eject .Nd eject removable media from drive .Sh SYNOPSIS .Nm eject .Op Fl fnv .Ar device .Sh DESCRIPTION .Nm eject is a program to eject removable media from drive. The .Ar device is a removable drive name such as cd0, matcd0, mcd0, scd0, wcd0 or od0. For compatiblity reasons, the string .Dq Li /dev/ may optionally be prepended to .Ar device . .Nm eject unmounts the .Ar device if it was mounted brefore ejecting. .Pp The following options are available: .Bl -tag -width Ds .It Fl f Force unmounts the device if it was mounted. .It Fl n Not execute operation but print it. .It Fl v Verbose mode. .Sh ENVIRONMENT If the following environment variable exists, it is used by .Nm eject : .Bl -tag -width Ds .It Ev EJECT Specifies default device. .El .Sh FILES .Bl -tag -width /dev/rmatcd0c -compact .It Pa /dev/rcd0c .It Pa /dev/rmatcd0c .It Pa /dev/rmcd0c .It Pa /dev/rscd0c .It Pa /dev/rwcd0c .It Pa /dev/rod0c .El .Sh AUTHOR Shunsuke Akiyama .Sh HISTORY The .Nm eject command appeared in FreeBSD 2.X