Linux mounting command and linux mounting command

Source: Internet
Author: User

Linux mounting command and linux mounting command

1. mount the CD command mount: mount [-t vfstype] [-o options] device dir

Mount [-t file system] [-o Special option] device file name mount point

-T specifies the type of the mounted file system, such as ext3, ext4, and iso9660 (file type of the disc) f.

-O specify additional mounting options

Unmount the disc command umount the device file name or mount point

List of special options:

Mount # query a mounted device

Mount-a # automatic mounting Based on the configuration file/etc/fstab

For example, in the CentOS system, view the content of the fstab file. The root partition,/boot partition,/swap, and other partitions are automatically mounted. They are mainly used to add new automatic attaching disks for use.

Attach a cd

Create a mount point: # mkdir/mnt/cdrom/

There are three mount points in the root directory: mnt (USB flash drive, mobile hard drive), dedia (attached disc), and misc (caustic soda devices such as tape drives, it must be an empty directory.

Mount: # mount-t iso9660/dev/sr0/mnt/cdrom

The device name is/dev/sr0 or/mnt/cdrom.

Example:

Attach a cd

# Mkdir/mnt/cdrom/

# Mount-t iso9660/dev/sr0/mnt/cdrom

Detach a cd

# Umount/dev/sr0 # Enter commands in a non-current directory. Run

2. Mount the USB flash drive command fdisk

View the file name of the USB flash drive device: # fdisk-l

(Reference) # mount-t vfat/dev/sba1/mnt/usb/# vfat: fat32 File System

 

PS: This article describes how to learn MOOC.

Thank you for reading

 

Related Article

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.