Mount of Linux commands

Source: Internet
Author: User

Students familiar with Linux should know the Mount command.

In Linux, everything is file. Hard disk partitions are present in the file directory.

If we want to access the mobile HDD, USB stick etc We must mount these devices to

A directory in our Linux file system so that we can access the inside

Capacity.



The general format of the Mount command is:

Mount [-t filetypes] [-o option] device mount directory to mount



Where filetypes can not be specified, Mount automatically chooses the appropriate file type for us.

The types of filetypes include:

Disc or disc Image: iso9660
DOS FAT16 file system: MSDOS
Windows 9x FAT32 file system: VFAT
Windows NT NTFS file system: NTFS
Mount Windows file network share: SMBFS
UNIX (LINUX) file network share: NFS




The command options are:

Loop: Used to attach a file as a hard disk partition on the system
RO: Hook device with read-only method
RW: Mount device with read-write mode
Iocharset: Specifies the character set used to access the file system





For example, mount a disc image:

To create a mount directory:

#mkdir/mnt/vcdrom

Mount the Mydisk.iso file in the home directory to/mnt/vcdrom in the iso9660 type

#mount-O loop-t iso9660/home/sunky/mydisk.iso/mnt/vcdrom



Reprint please indicate the author: Xiao Liu


Mount of Linux commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.