Introduction to Linux Mount Commands
In the Linux system, if you want to use a storage device such as a hard disk, an optical disc, a floppy disk or Mo, you must first make a mount. When the storage device is hung down, it can be accessed as a directory. Plug-in devices need to use the mount command. Execute this command, at least you must first determine the following three information: 1. To pin (mount) object type; 2. To hinge (MOUNT) object name (/ dev / ?????); 3. Which directory is to be mounted (MOUNT) to. First, the file system type supported by the system can get the file system type supported by the current Linux system by viewing the / proc / filesystems file. Common file systems are:
File system name tells the vfat
Windows commonly used FAT32 file system, compatible with FAT 16 file system
HPFS
OS2 file system
EXT3
Linux file system
ISO9660
CD file system
Second, determine the name of the device in the Linux system, the device name is usually in the / dev directory. Names of these equipment names are ruled. For example, / dev / hda1 is a device name, where "HD", "HD", "HD", "HD" can also be replaced by "SD", namely SCSI Drive, represents the SCSI hard drive; "a" is On behalf of the first device, usually connect 4 IDE hard drives on the PC, so the device name corresponding to the IDE hard disk is HDA, HDB, HDC, and HDD, respectively, if using the SCSI hard disk, the device name is SDA, SDB, ... ...; In addition, "1" represents the first hard disk partition of HDA, and HDA2 represents the second partition of HDA, and so on. By viewing / var / log / messages file, you can find the device code that Linux system has identified. Third, determine that there is a / mNT directory in the Point linux system, which is specifically used as a mount point directory. It is recommended that in practical applications, the device is hung into the subdirectory of this directory. For example, if you want to mount the following 5 devices, you need to perform the following command:
equipment
Hamed command
Mobile hard disk
Mount -t vfat / dev / sda / mnt / myhd
CD (IDE CD-ROM)
Mount / MNT / CDROM
floppy disk
Mount / MNT / FLOPPY
CD (SCSI CD-ROM)
CD file system