Linux Mount commands

Source: Internet
Author: User

One, Mount command

Role: Loading an external device into a Linux system can be understood as an allocation letter on Windows. The device can be used properly when mounted.

1, query and automatic mount

Mount #查看已经挂载好的设备

Mount-a #自动挂载设备, Boot automatically mount write on/etc/fstab

Do not mount an automatic mobile device in an automatic mount, because the system will continue to mount if the mobile device is not plugged in, causing a system error.

2. Mount command format

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

such as: Mount-t ext4/dev/sd2/root/test

Options:

-T file system: Join the file system type to specify the type of mount that can be ext3, EXT4 (now recommended for new system versions), iso9660 (disc type), etc.

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

Example:

1. Set up mount point

mkdir/mnt/cdrom/

2. Mount the disc

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

3. Check mounting results

Mount/dev/cdrom/mnt/cdrom or see if there are files in the corresponding folder

4. un-mount

Umount/dev/cdrom or Umount/mnt/cdrom

5. Mount USB Drive

Fdisk-l #查看U盘设备文件名

MOUNT-T vfat/dev/sda1/mnt/usb/Note that Linux defaults to VFAT that do not support the NTFS file system equals Windows FAT32

Linux Mount 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.