ejecting a Zip disk using eject(1)

DG david at fielden.com.au
Mon Dec 1 15:29:59 PST 2003

> -----Original Message-----
> From: owner-freebsd-questions at freebsd.org
> [mailto:owner-freebsd-questions at freebsd.org]On Behalf Of JacobRhoden
> Sent: Tuesday, 2 December 2003 10:12 AM
> Subject: Re: ejecting a Zip disk using eject(1)
> On Tue, 2 Dec 2003 08:13 am, DG wrote:
> > # eject afd0
> > eject: No such file or directory
> I dont know the syntax expected but you probably should be doing:
>   eject /dev/afd0
> Regards,
> Jacob

I tried that too.  The eject command accepts just the device name without a
prefix, and prepends "/dev/" as necessary.

Specifically from man eject(1):

     eject [-fnv] device

     eject is a program to eject removable media from drive.  The device is
     removable drive name such as cd0, matcd0, mcd0, scd0, wcd0 or od0.
     unmounts the device if it was mounted brefore ejecting.

Given that it says "removable drive name such as ..." I assumed that those
listed were just examples, and that any ejectable media should be
programatically ejectable.  My interpretation of the man page may have been
incorrect, or eject might not support Zip drives?


More information about the freebsd-questions mailing list