Explanation:/etc/fstab. it is automatically mounted upon startup.

Source: Internet
Author: User
Description: etcfstab is automatically mounted at startup. [root @ kissinghome] catetcfstabLABELext3defaults11LABELbootboot explains/etc/fstab, automatically mount [root @ kissing home] # cat/etc/fstab LABEL = // ext3 defaults 1 1 LABEL =/boot ext3 defaults 1 2 tmpfs/dev/shm tmpfs defaults 0 0 devpts/dev/pts devpts gid = 5, mode = 620 0 0 sysfs/sys sysfs defaults 0 0 proc/proc defaults 0 0 LABEL = SWAP-sda2 swap defaults 0 0/etc/fstab has a total of six columns, each corresponding to fs_spec fs _ File fs_type fs_options fs_dump fs_pass first column, device file name or label of the device; second column, Mount point, that is, the entry to access the device in linux (directory ); the third column is the file system type of the disk partition. The fourth column is the file system parameter, which is the parameter to be added during Automatic mounting, many of the content here describes how to use a common parameter to define async, sync, and sync to set whether a disk is run asynchronously, the default value is asyncauto/noauto automatic/non-automatic. when the mout-a command is issued, is it automatically mounted, the default value is autorw/ro, which can be read-only or read-only. the exec/noexec executable and unexecutable actions are mounted only in read-only mode., if it is purely used to store data, it is set to moexecuser/nouser to allow/not allow users to mount or not allow users to use the mount command. generally, it is set to nouser. For the sake of security, whether suid/nosuid has suid permission indicates whether the file system allows the existence of suid Usrquota indicates that the file system supports the quota mode: in the fifth column of async, auto, rw, exec, nouser, and suid, whether the dump command is used for backup. 0 indicates that backup is not required, and 1 indicates that backup is performed every day, 2 indicates that the backup is performed irregularly. Normally, this parameter is in column 1 if it is not 0. if fsck is used to check whether the system uses fsck to check whether the file system is complete during the boot process of the partition system. However, some special file systems, such as swap, do not need to be tested. 0 indicates that no test is required, 1 indicates the earliest test, and 2 indicates the test, but it is later than 1. In general, set/to 1, and set other values to 2. If you don't want to check the value, set it to 0. here we will introduce a command by the way, e2label changes the labels of the ext2 and etx3 file systems [root @ kissing home] # e2label/dev/sdb1 (view the current/dev/sdb1 label) test1 [root @ kissing home] # e2label/dev/sdb1 csdn (change the label to csdn) [root @ kissing home] # e2label/dev/sdb1 csdn [root @ kissing home] # e2label/dev/sdb1 test1 (I have to change the label back, otherwise, an error will be reported next time the system is started. haha) [root @ kissing home] # e2label/dev/sdb1 test1

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.