Centos7常用指令[挂載檔案系統]
------------------------------------------------------------------------------
# 挂載一個叫做hda2的盤-确定目錄/mnt/hda2已經存在
[root@localhost ~]# mount /dev/hda2 /mnt/hda2
# 解除安裝一個叫做hda2的盤-先從挂載點/mnt/hda2退出
[root@localhost ~]# umount /dev/hda2
# 當裝置繁忙時強制解除安裝
[root@localhost ~]# fuser -km /mnt/hda2
# 運作解除安裝操作而不寫入/etc/mtab檔案-當檔案為隻讀或當磁盤寫滿時非常有用
[root@localhost ~]# umount -n /mnt/hda2
# 挂載一個軟碟
[root@localhost ~]# mount /dev/fd0 /mnt/floppy
# 挂載一個cdrom或dvdrom
[root@localhost ~]# mount /dev/cdrom /mnt/cdrom
# 挂載一個cdrw或dvdrom
[root@localhost ~]# mount /dev/hdc /mnt/cdrecorder
[root@localhost ~]# mount /dev/hdb /mnt/cdrecorder
# 挂載一個檔案或ISO鏡像檔案
[root@localhost ~]# mount -o loop file.iso /mnt/cdrom
# 挂載一個Windows FAT32檔案系統
[root@localhost ~]# mount -t vfat /dev/hda5 /mnt/hda5
# 挂載一個usb捷盤或閃存裝置
[root@localhost ~]# mount /dev/sda1 /mnt/usbdisk
# 挂載一個windows網絡共享
[root@localhost ~]# mount -t smbfs -o username=user,password=pass //WinClient/share /mnt/share