Mount of linux commands

Source: Internet
Author: User

Mount of linux commands

Anyone familiar with linux should know the mount command.

In linux, everything is a file. Hard Disk Partition exists as a file directory.

If we want to access a mobile hard disk or a USB flash drive, we must mount these devices

In a linux File System Directory, we can access

Rong.

 

 

The general format of the mount command is:

Mount [-t filetypes] [-o option] mount directory of the device to be mounted

 

 

You do not need to specify filetypes. mount automatically selects an appropriate file type for us.

The types of filetypes include:

CD or CD image: iso9660
DOS fat16 File System: msdos
Windows 9x fat32 File System: vfat
Windows NT ntfs file system: ntfs
Mount Windows File network sharing: smbfs
Network Sharing for UNIX (LINUX) files: nfs

 

 

 

 

Command Options include:

Loop: used to connect a file to the system as a hard disk partition.
Ro: mounting a device in read-only mode
Rw: mounting a device in read/write mode
Iocharset: Specifies the character set used to access the file system

 

 

 

 

For example, attach a CD image:

 

Create a mount directory:

# Mkdir/mnt/vcdrom

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

# Mount-o loop-t iso9660/home/sunky/mydisk. iso/mnt/vcdrom

 

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.