mount挂接命令使用

挂接 操作系统
 1.-t vfstype 指定文件系统的类型,通常不必指定。mount 会自动选择正确的类型。常用类型有:

  光盘或光盘镜像:iso9660

  DOS fat16文件系统:msdos

  Windows 9x fat32文件系统:vfat

  Windows NT ntfs文件系统:ntfs

  Mount Windows文件网络共享:smbfs

 2.-o options 主要用来描述设备或档案的挂接方式。常用的参数有:

  loop:用来把一个文件当成硬盘分区挂接上系统

  ro:采用只读方式挂接设备

  rw:采用读写方式挂接设备

  iocharset:指定访问文件系统所用字符集

 3.device 要挂接(mount)的设备。

 4.dir设备在系统上的挂接点(mount point)。

挂接CDROM

[root@master ~]# mount -t auto /dev/cdrom /media/

挂接nfs

修改 配置文件 /etc/sysconfig/nfs
# Turn off v4 protocol support
RPCNFSDARGS="-N 4"
service nfs restart

在需要挂接的主机
mount -t nfs 主机IP:/路径 /挂接的路径
mount -t nfs 192.168.2.251:/asmdisk /asmdisk

原文地址:https://www.cnblogs.com/staryea/p/8513908.html