eject man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

EJECT(1)		  BSD General Commands Manual		      EJECT(1)

NAME
     eject — Eject removable media

SYNOPSIS
     eject [options] <device|mount-point>

DESCRIPTION
     Eject is used to control removable media devices.	Either a device name
     (with or without a precending "/dev/"), or a mount point as listed in
     "/etc/fstab" may be specified to select the device to eject.  If no
     device is specified, the default device, "/etc/acd0" is used.

     If the device is currently mounted at one or more mount points, all are
     unmounted before the eject is performed.  If any unmount fails, the eject
     is aborted, and the mounts are NOT re-established.

     Only devices listed in "/usr/local/etc/eject.allow" can be ejected.  The
     file format is one entry per line, and shell-style wildcards (See
     "sh(1)") are allowed.  Lines beginning with `#' and blank lines are con‐
     sidered comments.

OPTIONS
     --h, ---help
		 Display a summary of command usage.

     --v, ---verbose
		 Verbose mode.	eject displays arguably useful information
		 about what it's doing.

     --d, ---default
		 Display the default device.

     --t, ---trayclose
		 Close the CDROM tray.	( Not supported by all CDROM drives. )

     --n, ---noop
		 No operation.	Display the normal output, but don't actually
		 eject or close the device.  Often used in conjunction with -v
		 for debugging.

EXAMPLES
     Eject the default device:
	   eject

     Eject a device name:
	   eject cdrom
	   eject acd0
	   eject /dev/cdrom
	   eject /dev/acd0

     Eject using mount point:
	   eject /cdrom

     Close tray:
	   eject -t /cdrom
	   eject --trayclose /cdrom

EXIT STATUS
     eject returns 0 if operation was successful, nonzero otherwise.  See
     sysexits(3) for an explanation of exit codes.

FILES
     /etc/fstab, /usr/local/etc/eject.allow

SEE ALSO
     mount(1), mount(2), umount(1), unmount(2), sh(1), fnmatch(2) sysexits(3)

AUTHOR
     eject was written by Jason W. Bacon at the Medical College of Wisconsin
     September, 2002.

BSD			      September 20, 2002			   BSD
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net