Linux Mount commands

Source: Internet
Author: User
Mount command

1 Viewing partitions
ls/dev/sda*
or fdisk-l.

2 mount Operation
mount/dev/sda1/mnt/#将sda1挂载到 the/mnt directory #

3 Viewing Mount conditions

Mount or ls/mnt/

4 un-mount
Umount/dev/sda1

5 can be used if SDA1 is in use and cannot be uninstalled
Duser-m/mnt #查看正在使用的文件系统进程 #
Lsof/mnt #查看正在被使用的文件 #

6 Automatic Mounting
The configuration file/etc/fstab is used to define the file system that needs to be mounted.
Each row in the Fstab represents a mount configuration in the following format:

/dev/sad3//mnt Ext4 Defaults 00
Device mount point file system mount options that need to be mounted dump,fsck related options

7 View SDA1 Volume label
E2label/dev/sda1

8 Modifying a volume label
Open/etc/fstab Modify Parameters
Modify/dev/sad3/to Label=linux

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.