Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ fe(1) — NEWS-os 4.1C

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

mt(1)

mountu(1)

mount(8)

tar(1)

fd(4)

sd(4)

EJECT(1)  —  NEWS-OS Programmer’s Manual

NAME

eject, fe − Ejects floppy disk, MO disk, CD-ROM, etc. 

SYNOPSIS

eject [ −s ] [ −f ] [ −h ] [{ cd | fd | mo | device }]
fe [ −s ] [ −f ] [ −h ] [{ cd | fd | mo | device }]

DESCRIPTION

The eject command is used to eject the media from a device equipped with the auto-eject function.  The default device is /dev/rfd00a.  This specifies floppy disk ejection.  If the command is issued for a device which is not equipped with the auto-eject function, the following message is displayed.  eject : auto eject not supported on "device"

If the device has been mounted, the following is displayed and the auto-eject function does not operate.  eject: "device" has been mounted
eject on close mode is not set Should this message appear, it is first necessary to unmount the device before using eject. 

Example:
If the device was mounted using the following command
% mountu /dev/fd00a /fd
unmount and eject the media as follows:
% umountu /fd
% eject

If the device has been opened directly or if the −f option has been selected, eject on close mode is used.  In this mode the media is ejected only if the device is closed or if it has been unmounted.  fe is a symbolic link for eject and operates in precisely the same manner. 

OPTIONS

−s Specifies the silent mode. No error messages are displayed. 

−f Causes eject on close mode to be selected if the device is mounted. 

−h Displays brief usage instructions. 

cd Ejects CD ROM media. The device is specified as /dev/rsd06c. 

fd Ejects floppy disk media. The device is specified as /dev/rfd00a. 

mo Ejects MO disk media. The device is specified as /dev/rsd04c. 

device Selects a device name specified by the user. 

RETURN VALUE

The eject command returns the following status values. 

0 Media successfully ejected, or eject on close mode activated. 

1 Specified device could not be accessed. 

2 Specified device not equipped with auto-eject function. 

3 A mounted device was specified. The eject on close mode was not activated. 

SEE ALSO

mt(1), mountu(1), mount(8), tar(1), fd(4), sd(4)

BUGS

Whether or not the specified device is mounted or not is determined by referring to /etc/mtab.  If the contents of this file are not correct, issue the eject command with the −f option specified. 

The eject command is not able to eject the media is the device has been opened directly. 

NEWS-OSRelease 4.1C

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026