.\" 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