挂载

语法:

mount [-t vfstype] [-o options] device dir

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

  1. 光盘或光盘镜像:iso9660
  2. DOS fat16文件系统:msdos
  3. Windows 9x fat32文件系统:vfat
  4. Windows NT ntfs文件系统:ntfs
  5. Mount Windows文件网络共享:smbfs
  6. UNIX(LINUX) 文件网络共享:nfs

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

  1. loop:用来把一个文件当成硬盘分区挂接上系统
  2. ro:采用只读方式挂接设备
  3. rw:采用读写方式挂接设备
  4. iocharset:指定访问文件系统所用字符集

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

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

 

 

光盘镜像文件的挂接(mount)  :  mount -o loop -t iso9660 /home/sunky/mydisk.iso /mnt/vcdrom

 

挂接移动硬盘  :  mount -t ntfs /dev/sdc1 /mnt/usbhd1

 

挂接U盘  :  mount -t vfat /dev/sdd1 /mnt/usb 

 

posted @ 2022-07-20 09:31  寒无衣  阅读(90)  评论(0)    收藏  举报