歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> 關於Linux >> linux:mount and umount簡單使用學習

linux:mount and umount簡單使用學習

日期:2017/3/1 16:16:04   编辑:關於Linux
linux:mount and umount簡單使用學習 掛載一個iso 鏡像: mkdir /media/oel mount /dev/cdrom /media/oel 卸載鏡像: umonut /media/oel 補充:umount提示說device busy是因為當前有程序正在使用你所卸載的設備 舉個例子:你當前的路徑可能就在設備的掛載點,可以使用 fuser -km /dev/sdb1(設備名) 殺掉占用此設備的程序方可卸載 FYI“: [root@oracle11g /]# mount /dev/cdrom /media mount: block device /dev/cdrom is write-protected, mounting read-only [root@oracle11g /]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 14220336 12285584 1200752 92% / /dev/sda1 101086 22569 73298 24% /boot tmpfs 219412 0 219412 0% /dev/shm /dev/sr0 3592530 3592530 0 100% /media [root@oracle11g /]# [root@oracle11g repodata]# umount /media umount: /media: device is busy umount: /media: device is busy [root@oracle11g repodata]# pwd /media/repodata [root@oracle11g repodata]# [root@oracle11g media]# cd .. [root@oracle11g /]# pwd / [root@oracle11g /]# umount /media [root@oracle11g /]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/VolGroup00-LogVol00 14220336 12285584 1200752 92% / /dev/sda1 101086 22569 73298 24% /boot tmpfs 219412 0 219412 0% /dev/shm [root@oracle11g /]#
Copyright © Linux教程網 All Rights Reserved