/ etc / fastab
Ideal (2001-04-09 10:58) 〖Back〗 〖Forward〗
1 FSTAB file role file / etc / fstab stores file system information in the system. When the file is set correctly, you can load a file system through the "Mount / DirectoryName" command, each file system corresponds to a separate row, and the fields in each row have spaces or TAB keys. At the same time, FSCK, MOUNT, UMOUNT uses the program. 2. FSTAB File Format The following is a routine of the / etc / fatab file: fs_spec fs_file fs_type fs_osptions fs_dump fs_pass / dev / hda1 / ext2 defaults 1 1 fs_spec - This field defines the device or remote file system where you want to load the file system, For a general local block device: IDE device is generally described as / dev / hdaxn, x is the IDE device channel (A, B, or C), N represents partition number; SCSI device is described as / dev / sdaxn. For NFS situations, the format is typically : , for example: `knut.aeb.nl: / '. For ProCFS, use `proc 'to define. FS_FILE - This field describes the desired file system loaded directory points, for the SWAP device, which is none; for the load directory name contains space, use 40 to represent spaces. FS_TYPE - Defines the file system on the device, which is generally common file type EXT2 (common file type of Linux device), Vfat (FAT32 format of Windows system), NTFS, ISO9600, etc. FS_OPTIONS - Specifies the file system that loads the device is a specific parameter option that needs to be used, and multiple parameters are separated by commas. For most systems use "defaults" to meet the needs. Other common options include: Option Meaning RO Loads this file system SYNC to buffer the write operation of the device, which prevents the file system in the case of abnormal shutdown, but reduces the computer speed USER allowed Normal users load this file system quota to force disk quota on this file system to limit NOAUTO no longer use mount -a commands (such as system startup time) load this file system fs_dump - This option is used by "dump" command to check a file system Should be dump with multiple fast frequencies, if you do not need to dump, set this field to 0fs_pass - This field is used by the fsck command to determine the order of file systems that need to be scanned at startup, and the root file system "/" should be field The value should be 1, and other file systems should be 2.