Management of File systems

Source: Internet
Author: User

/etc/fstab

device Name: Normal partition, it is best to use UUID No conflict, the logical volume will generally not conflict. (uuid is the unique identification number of the device name, if it is convenient, write the uuid number is OK)

defaults mount-a mount-a mount-o rw,sync,nodev,suid etc mount-o remount,rw/  /dev/vga_arbite

look in the help. Mans Mount, Check it out. Defaults option to see what action it has done.

650) this.width=650; "Width=" 509 "height=" 422 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>

RW: the partitions that are mounted at each boot are readable and writable.

suid : for example: mount-o Remount,nosuid/ Remove the / "under All suid Permissions

650) this.width=650, "width=" 410 "height=" "src=,"/e/u261/themes/default/images/spacer.gif "style=" Background:url ( "/e/u261/themes/default/images/word.gif") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/> but it was originally suid permissions are still in. And now it's not going to change the password. (The original password input is correct, no problem)

suid : Gets the permissions of the owning user temporarily.

650) this.width=650, "width=" 333 "height=", "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ( "/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>

Dev : All devices are mounted here, /etc/udev/udev.conf configuration file, see Help for details.

The device names are Udev The name of the network card is defined by the Udev to define the.

650) this.width=650; "Width=" 487 "height=" 119 "src="/e/u261/themes/default/images/spacer.gif "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "/>

If your NIC doesn't get up, like there's no initialization, and there's nothing to find, just mac address.

/etc/udev/rules.d/70-persistent-net.rules NIC Definition

if the virtual machine NIC is deleted, or re-added, the configuration file will not be updated, most likely the problem is here. So you need to find The corresponding relationship between the network card and the MAC address.

if they are all written Nodev , then all the devices in / Dev This directory is invalid and cannot be / Dev To create the device.

exec : execution, even if there is a permission to execute, but this directory mount does not have the right to execute.

Auto : Write in /etc/fstab , the next time the boot is automatically mounted by default. If it is written in Noauto , it will not be automatically mounted if it is written into the fstab file.

Nouser : The file system cannot be mounted by a non-administrator. User , the normal administrator can mount the file system.

Async : Fast, I/O the performance is high, but the security is worse and worse. When a read-write request is made, it is returned.

Noatime: Do not update data changes or view time, etc. (touch exception)stat views the number of seconds.

chattr [ options ]

-A : Only allow Add, block file overwrite, or delete.

- D : Not Enough Dump command to make a backup.

- I. : Lock file, cannot overwrite, delete, append or rename, etc.

- S : Hard Disk I/O synchronization options, similar functionality Sync .

-j : Put the file's Block also put in the log area, and so the documents are written together, and then submitted to the file system. Ensure the security and integrity of your data.

TUNE2FS :

the front in the hard drive 521 The boot and partition tables are included in the bytes, and each file is preceded by a node table, which records the change of the file. Each partition block, we call the Super block, the Super block contains all the programs about this filesystem, tune2fs-l/dev/sda1 View the Super block content in this disk, where:Default Mount options: user_xattr ACL the newly created partition is not, only after the OS is installed. Hides properties and ACL access controls.

add this function (to the partition): functions similar to Span style= "FONT-SIZE:16PX;" >chattr +i function, cannot be deleted. Delete: tune2fs-o ^user_xattr/dev/sda6 ( acl chattr ET. Sometimes you can't. Re-mount the partition again )

getfattr-d-M secur passwd View the security properties of a file, mainly about SELinux

security.selinux= "Unconfined_u:object_r:admin_home_t:s0"


This article from "Silence" blog, declined reprint!

Management of File systems

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.