.\" Copyright (c) 1996 Andries Brouwer .\" This page is somewhat derived from a page that was .\" (c) 1980, 1989, 1991 The Regents of the University of California .\" and had been heavily modified by Rik Faith and myself. .\" .\" This is free documentation; you can redistribute it and/or .\" modify it under the terms of the GNU General Public License as .\" published by the Free Software Foundation; either version 2 of .\" the License, or (at your option) any later version. .\" .\" The GNU General Public License's references to "object code" .\" and "executables" are to be interpreted as the output of any .\" document formatting or typesetting system, including .\" intermediate and printed output. .\" .\" This manual is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public .\" License along with this manual; if not, write to the Free .\" Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, .\" USA. .\" .TH UMOUNT 8 "26 July 1997" "Linux 2.0" "Linux 程序員手冊" .SH "NAME 名字" umount \- 卸載文件系統 .SH 總覽 .BI "umount [\-hV]" .LP .BI "umount -a [\-nrv] [\-t " vfstype ] .br .BI "umount [\-nrv] " "device " | " dir " [...] .SH 描述 .B umount 可以卸除當前掛載在文件層次目錄中的文件系統。 文件系統形式可以是以它所在的目錄的形式指定, 也可以是以它所在的特殊設備的形式來指定。 請注意當文件系統正處於使用狀態時,不能進行卸載操作, 必須等工作完成後才能進行卸除。例如,如果在當前文件系統中 有打開的文件或某些進程正工作在該文件系統的某個目錄下時, 或者是它上面的一個交換文件正在使用。 干涉的進程甚至可以是 .B umount 本身 - 它打開 libc,而隨後 libc 可能會打開本地文件. .B umount 命令的選項: .TP .B \-V 打印版本信息並退出。 .TP .B \-h 顯示幫助信息並退出。 .TP .B \-v 以冗長模式運行。 .TP .B \-n 在卸載後不將相應信息寫入 .IR /etc/mtab 文件。 .TP .B \-r 如果卸載失敗,試圖以只讀方式進行重新掛載。 .TP .B \-a 卸載所有在 .I /etc/mtab 文件中描述的文件系統。(在 .B umount 版本或以後的版本中,不會卸載 .I proc 文件系統) .TP .BI \-t " vfstype" 只卸載指定類型的文件系統。如果要一次指定多個文件系統, 可以用逗號分隔。如在指定文件系統前加 .B no ,則可卸載除些文件系統以外的其它文件系統。 .TP .B \-f 強制卸載(比如不可達的 NFS )。 (此選項須在高於 2.1.116 的版本上使用) .SH "環路設備" 如果在 .IR /etc/mtab 文件中存在有 `loop=...' 這樣的參數, .B umount 命令將釋放與掛載相關聯的環路設備. 任何掛起的環路設備可以用 `losetup -d' 命令來釋放。 參閱 .BR losetup (8). .SH 相關文件 .I /etc/mtab 已掛載文件系統的清單。 .SH "另見" .BR umount (2), .BR mount (8), .BR losetup (8). .SH 歷史 .B umount 命令最早出現在版本 6 的 AT&T UNIX. .SH "[中文版維護人]" .B 所羅門 .SH "[中文版最新更新]" .B Nov 20 2000 .SH "《中國linux論壇man手冊頁翻譯計劃》:" .BI http://cmpp.linuxforum.net .SH "跋" .br 本頁面中文版由中文 man 手冊頁計劃提供。 .br 中文 man 手冊頁計劃:\fBhttps://github.com/man-pages-zh/manpages-zh\fR