2016-10-11 03:38:50 -04:00
|
|
|
.Dd October 11, 2016
|
|
|
|
.Dt UNMOUNT 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm unmount
|
|
|
|
.Nd unmount filesystems
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
|
|
|
.Op Fl fl
|
|
|
|
.Ar directory ...
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
.Nm
|
2017-02-15 16:56:28 -05:00
|
|
|
unmounts the specified paths.
|
|
|
|
The mountpoint is removed so that it cannot be opened further, and
|
2016-10-11 03:38:50 -04:00
|
|
|
.Nm
|
|
|
|
waits until no files on the filesystem are open, after which the filesystem is
|
|
|
|
shut off cleanly.
|
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width "12345678"
|
|
|
|
.It Fl f, Fl \-force
|
|
|
|
Shut off the filesystem immediately, further operations to any open files will
|
2017-02-15 16:56:28 -05:00
|
|
|
fail.
|
|
|
|
The filesystem will be consistent, but processes may be stopped in the middle of
|
|
|
|
file operations.
|
2016-10-11 03:38:50 -04:00
|
|
|
.It Fl l, Fl \-lazy
|
2017-02-15 16:56:28 -05:00
|
|
|
Do not wait for the filesystem to be unused, and shut off the filesystem in the
|
|
|
|
background.
|
|
|
|
It is not safe to shut down the computer directly after using this option.
|
2016-10-11 03:38:50 -04:00
|
|
|
.El
|
|
|
|
.Sh EXIT STATUS
|
|
|
|
.Nm
|
|
|
|
will exit 0 on success and non-zero otherwise.
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr unmount 2 ,
|
|
|
|
.Xr extfs 8
|