Tools: MPW
Advanced Search
Apple Developer Connection
Member Login Log In | Not a Member? Support

MPW Command Reference


Unmount[Volume]

Built-in

SYNTAX

Unmount[Volume] volume

DESCRIPTION

The Unmount[Volume] command unmounts the specified volumes. Unmounted volumes cannot be referenced again until remounted. If you unmount the current volume (that is, the volume containing the current directory), the boot volume becomes the new current volume.

INPUT

None

OUTPUT

None

STATUS

Unmount[Volume] can return the following status codes:

0

successfully unmounted the volume

1

syntax error

2

errors; volume does not exist, refers to a boot volume, or contains open files

PARAMETERS

volume

Specifies by name or disk drive number, one or more volumes to unmount. If volume ends with a colon (:), Unmount assumes it is a volume name. If volume is a number without a colon, it is interpreted as a disk drive number.

OPTIONS

None

EXAMPLES

The following command line unmounts the Memos volume:

UnmountVolume Memos:

The following command line unmounts the volumes in drives 1 and 2:

Unmount 1 2

The next command line unmounts and ejects the volumes:

Eject 1 2

SEE ALSO

Eject

Mount

MountVolume

 
 


Last Updated July 2000