Linux mounting command and linux mounting command
1. mount the CD command mount: mount [-t vfstype] [-o options] device dir
Mount [-t file system] [-o Special option] device file name mount point
-T specifies the type of the mounted file system, such as ext3, ext4, and iso9660 (file type of the disc) f.
-O specify additional mounting options
Unmount the disc command umount the device file name or mount point
List of special options:
Mount # query a mounted device
Mount-a # automatic mounting Based on the configuration file/etc/fstab
For example, in the CentOS system, view the content of the fstab file. The root partition,/boot partition,/swap, and other partitions are automatically mounted. They are mainly used to add new automatic attaching disks for use.
Attach a cd
Create a mount point: # mkdir/mnt/cdrom/
There are three mount points in the root directory: mnt (USB flash drive, mobile hard drive), dedia (attached disc), and misc (caustic soda devices such as tape drives, it must be an empty directory.
Mount: # mount-t iso9660/dev/sr0/mnt/cdrom
The device name is/dev/sr0 or/mnt/cdrom.
Example:
Attach a cd
# Mkdir/mnt/cdrom/
# Mount-t iso9660/dev/sr0/mnt/cdrom
Detach a cd
# Umount/dev/sr0 # Enter commands in a non-current directory. Run
2. Mount the USB flash drive command fdisk
View the file name of the USB flash drive device: # fdisk-l
(Reference) # mount-t vfat/dev/sba1/mnt/usb/# vfat: fat32 File System
PS: This article describes how to learn MOOC.
Thank you for reading