Novice Installation Configuration/etc/fastab description

Source: Internet
Author: User
Keywords The article for installation configuration should Fstab
Tags *.h file aliyun configuration etc example file html information
1. The role of fstab files
File Fstab Store file system information in the system. When the file is set correctly, you can load a file system with the "mount/directoryhttp://www.aliyun.com/zixun/aggregation/11696.html" >name command. Each file system corresponds to a separate row, and the fields in each row are separated by spaces or tab keys. At the same time, fsck, Mount, Umount and other commands are used in this program.
2. Fstab file format
The following is an example of a/etc/fatab file:
Fs_spec fs_file fs_type fs_options fs_dump fs_pass
/DEV/HDA1/EXT2 Defaults 1 1
Fs_spec-This field defines the device or remote file system where the file system you want to load is located, and for a typical local block device scenario: The IDE device is generally described as/dev/hdaxn,x is the IDE device channel (A, B, or C), n represents the partition number, and SCSI device one is described as/ Dev/sdaxn. For NFS, the format is generally:
, for example: ' knuth.aeb.nl:/'. For PROCFS, use ' proc ' to define.
Fs_file-This field describes the directory points that you want the filesystem to load, none for swap devices, and 40来 for spaces that contain spaces for the loaded directory name.
Fs_type-Defines the file system on the device, commonly common file types are ext2 (common file types for Linux devices), VFAT (FAT32 format for Windows systems), NTFS, iso9600, and so on.
Fs_options-Specifies that the file system that loads the device is a specific parameter option that needs to be used, and that multiple parameters are separated by commas. For most systems, "defaults" can be used to meet your needs. Other common options include:
Option meaning
Ro loads the file system in read-only mode
Sync does not buffer the write operations of the device, which prevents the file system from being corrupted during an abnormal shutdown, but reduces the speed of the computer user allows normal users to load the file system quota enforces disk quota limits on the file system Noauto no longer use mount The-a command (for example, when the system starts) loads the filesystem fs_dump-this option is used by the "Dump" command to check how quickly a file system should be dumped, and set this field to 0 if no dump is required
Fs_pass-This field is used by the fsck command to determine the sequence of file systems that need to be scanned at startup, the root file system "/" should have a value of 1 for the field, and the other file system should be 2. Set this field to 0 if the file system does not need to be scanned at startup
3. Sample files
# Fstab
/DEV/HDA9 Swap Defaults 0 0
/DEV/HDA1/EXT2 Defaults 1 1
/dev/hda5/home ext2 Defaults 1 1
/DEV/HDA6/USR ext2 Defaults 1 1
/dev/hda7/usr/local ext2 Defaults 1 1
/dev/hda8/var ext2 Defaults 1 1
/dev/hdb/cdrom iso9660 noauto,user 0 0
NONE/PROC proc Defaults 0 0
None/dev/pts devpts gid=5,mode=620 0 0

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.