One, Mount command
Role: Loading an external device into a Linux system can be understood as an allocation letter on Windows. The device can be used properly when mounted.
1, query and automatic mount
Mount #查看已经挂载好的设备
Mount-a #自动挂载设备, Boot automatically mount write on/etc/fstab
Do not mount an automatic mobile device in an automatic mount, because the system will continue to mount if the mobile device is not plugged in, causing a system error.
2. Mount command format
Mount [-t file system] [-o Special Options] device file name mount point
such as: Mount-t ext4/dev/sd2/root/test
Options:
-T file system: Join the file system type to specify the type of mount that can be ext3, EXT4 (now recommended for new system versions), iso9660 (disc type), etc.
-O Special option: You can specify additional options for mounting
Example:
1. Set up mount point
mkdir/mnt/cdrom/
2. Mount the disc
Mount-t iso9660/dev/cdrom/mnt/cdrom/
3. Check mounting results
Mount/dev/cdrom/mnt/cdrom or see if there are files in the corresponding folder
4. un-mount
Umount/dev/cdrom or Umount/mnt/cdrom
5. Mount USB Drive
Fdisk-l #查看U盘设备文件名
MOUNT-T vfat/dev/sda1/mnt/usb/Note that Linux defaults to VFAT that do not support the NTFS file system equals Windows FAT32
Linux Mount commands