1 .\" $NetBSD: eject.1,v 1.11 2002/10/02 15:53:47 wiz Exp $
3 .\" Copyright (c) 1998 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
35 .Nd eject a floppy disk, cdrom or tape
40 .Op Fl t Ar device-type
49 program ejects a medium from the specified device.
50 It can also load a cdrom
51 in the drive if this operation is supported by the hardware.
54 argument specifies a device either by its full path name
60 or by one of the built-in nicknames.
61 If the medium contains a file system that is currently mounted,
63 will attempt to unmount the file system before ejecting.
65 The following options are available:
70 Force the eject operation without attempting to unmount any file systems first.
72 Load media in the drive (only supported for the cdrom device type).
74 Lock the media into the drive (but see
78 List the built-in nicknames on standard output.
79 .It Fl t Ar device-type
80 Specify the device type.
81 The argument must be one of
88 This option is necessary when ejecting a device for which no built-in
89 knowledge is available.
91 Unlock the media from the drive.
93 Display some of the actions taken on standard output.
96 Most disk drivers automatically lock the media on the first open and
97 unlock it on the last close, making
99 almost useless, since when it closes the device, it gets unlocked