Small Ant learning Linux (8)--mount mount command, Mount CD, USB stick method

Source: Internet
Author: User
Tags learn php

Query and auto-mount commands

Mount can query devices that are already mounted on the system

Mount-a automatically mounts based on the contents of the configuration file/etc/fstab


Mount command format

Mount "-T file System"-O Special Options "device file name mount point

Option:-T File system: Add File System type to specify mount type, can be ext3, Ext4, iso9660 and other file systems

-O Special option: You can specify additional options for mounting.


What is Mount?:

A device with a drive letter is actually mounted.


How to mount a disc:

Mkdir/mnt/cdrom first, set up a mount point, in fact, as long as it is an empty directory, mount to where all can.

Mount-t Iso9660/dev/sr0/mnt/cdrom Mount Disc

Here's what you need to explain:

1. The option-T can be omitted in fact.

2. Device name using/dev/cdrom is also possible, by looking at the/dev file, you can see that/dev/cdrom is a soft link to/dev/sr0, which is the same, but the recommended use of SR0, reduce the risk of errors.


Mount up, how to unload it?

Umount/mnt/cdrom It is possible to write mount point directories and device names here.

There are two points to note:

1. When uninstalling, you must exit the directory you want to uninstall. Otherwise it will error, device is busy equipment is busy.

2. The uninstall command is certain to carry out, can not be omitted, or there will be serious problems, remember.

How do I mount a USB flash drive?

Because the USB flash drive and the hard disk, there will be a device name, for example:/DEV/SDB1 represents the first partition of the second hard disk, of course, this is to give an example, that is, first of all, to find out what the device name of the USB flash drive, so that we can mount it.

Use the command:

1. Fdisk-l View the file name of the USB drive device

2. mount-t vfat "USB flash drive device Name" in the previous step/MNT/USB

So the USB stick is mounted, it is important to note that Linux is not supported by default on the NTFS file system.

Mount Command (end) learn PHP's little ant original blog http://my.oschina.net/woshixiaomayi/blog



Small Ant learning Linux (8)--mount mount command, Mount CD, USB stick method

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.