磁盘与文件系统管理之五:卸载文件系统
文件系统管理(卸载)
一、卸载文件系统Umount -a [-rv] [-t vfstype] [-O options]umount [-rv] dir | device #目录和设备名两者取其一 -a All of the file systems described in /etc/mtab are unmounted. (With umount version 2.7 and later: the proc filesystem is not unmounted.) -r In case unmounting fails, try to remount read-only. -v Verbose mode. -t vfstype Indicate that the actions should only be taken on file systems of the specified type. More than one type may be specified in a comma separated list. The list of file system types can be prefixed with no to specify the file system types on which no action should be taken.
二、无法卸载的情况模拟[root@gwan ~]# mount | grep '/dev/sda4'/dev/sda4 on /newdisk type ext2 (rw)[root@gwan ~]# umount /dev/sda4umount: /newdisk: device is busyumount: /newdisk: device is busy[root@gwan ~]# fuser -vm /newdisk # 进程查杀工具fuser -vm/-km dir|device USER PID ACCESS COMMAND/newdisk: root 7409 ..c.. bash root 7431 F.c.. vi[root@gwan ~]# fuser -km /newdisk/newdisk: 7409c 7431c[root@gwan ~]# umount /dev/sda4 #成功卸载![root@gwan ~]# mount | grep '/dev/sda4'
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24463783/viewspace-681634/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24463783/viewspace-681634/
- 点赞
- 收藏
- 分享
- 文章举报
- 磁盘及文件系统管理(分区,挂载,卸载,信息展示与统计)
- 管理磁盘及分区 创建文件系统 挂载,卸载
- Linux菜鸟笔记——磁盘管理与文件系统管理 之 磁盘挂载与卸载、磁盘参数修改
- Linux磁盘和文件系统管理(3)_磁盘挂载 卸载
- Linux学习笔迹(三)--磁盘与文件系统管理
- 磁盘和文件系统管理(一)
- CentOS 7 磁盘与文件系统管理
- Linux基础 -- 文件系统操作与磁盘管理
- linux服务器 磁盘和文件系统管理(二) LVM逻辑卷管理的基本操作
- 磁盘和文件系统管理(一)
- 磁盘及文件系统管理
- 磁盘与文件系统管理
- 2015年9月01日【磁盘和文件系统管理】-JY1506402-19+liuhui880818
- 磁盘与文件系统管理之五
- linux -8 Linux磁盘与文件系统的管理
- Linux磁盘和文件系统管理(4)_文件系统属性查看 修改
- 磁盘及文件系统管理详解
- 磁盘与文件系统管理(CentOS 7)有实验可跟做
- llinux下系统磁盘管理(挂载,分区,格式化(文件系统));swap分区管理;磁盘配额;磁盘加密;磁盘阵列;nfs服务
- 【鸟哥Linux】Linux 磁盘与文件系统管理