Mount commands for the Linux command encyclopedia

Source: Internet
Author: User

Understanding: Linux mounts equivalent to Windows assignment drive letter

1. Querying devices that are mounted on the system

Mount

2. Set up auto Mount

Edit the file/etc/fstab, write the file to start the auto-mount,

Note: Generally do not write to the CD, if the write after the startup forgot to mount the CD, will cause the Linux system crashes.

3.mount [-t file system]-o[Special options] Device file name mount point

-T file system: Joins the file system type to specify the type of mount, which can be a file system such as ext3,ext4,iso9600.

-O Special option: You can specify additional options for mounting, such as all additional options

4. Mount the disc

Any empty directory can be used as a drive letter

1) Set up mount point

Mkdir/mnt/cdrom

2) Mount the disc

Mount/dev/sr0/mnt/cdrom (Attach the disc to the CDROM)

3) Uninstall command

Umount device file name or mount point

[Email protected] cdrom]# umount/dev/sr0
Error: Umount:/mnt/cdrom:device is busy.
(In some cases useful info about processes
The device is found by lsof (8) or fuser (1))

Because it is in the CD-ROM directory, so it can not be uninstalled, want to uninstall you need to first exit the Mount directory

5. Mounting the U-disk

1) View U-disk device file name: fdisk-l

2) Fdisk SDB to the SDB partition

Mount commands for the Linux command encyclopedia

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.