3.9 Disk Management Partition Table Fstab

Source: Internet
Author: User

#磁盘分区配置文件

/etc/fstab

/dev/sdb5/mnt EXT4 Defaults 0 0

Mount partition mount point file system Mount option

Default = Rw,suid,dev,exec,auto,nouser,async

RW Read/write

Suid do suid Special privileges

Dev can parse partition under block device, character device file

After the exec mount, the files inside are executed.

Auto mount on Boot

Nouser does not allow normal user to mount partitions

Async disk is out of sync with memory

Sync disk synchronized with memory

0 not backed up log

0 boot does not detect the disk, if the boot detection disk with 2


#自动加载/etc/fstab inside the configuration

Mount-a


#另一种方法自动挂载, write the attached command in/etc/rc.local.

Vi/etc/rc.local

Add a row

Mount/dev/sdb1/home/tim/1


#挂载的同时指定选项, noatime mount do not update access time atime, Usrquota is disk quotas

Mount-o NOATIME,RW,USRQUOTA/DEV/SDB1/HOME/TIM/1


#查看加载了那些选项

Mount


Exercises:

1. What can I do to automatically mount the newly added partition?

Write the Mount command to/etc/rc.d/rc.local.

Edit the/etc/fstab configuration file and add a new line about the partition

2. The last two columns in the/etc/fstab file are described correctly?

The value of column fifth, if 0, indicates that the partition does not require a dump

The value of the sixth column can be 0,1,2

The value of the sixth column has a high priority of 1:2

3. The fourth paragraph in the Fstab file is the Mount option, and the following points are correct?

The defaults option contains Rw,suid,dev,exec,auto,nouser,async and Relatime

If a partition has a large number of file accesses, we should add a noatime to the partition

Nouser indicates that only the root user is allowed to mount the partition


Summarize:

Main:/etc/fstab is the disk partition configuration file, dump is the meaning of backup log


3.9 Disk Management Partition Table Fstab

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.