Linux Disk Management

Source: Internet
Author: User

Three week fifth session (August 18)

4.5/4.6 disk Formatting

4.7/4.8 Disk Mount

4.9 Adding swap space manually

4.5/4.6 disk Formatting

Cat/etc/filesystem: Viewing Supported file systems

1650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/9E/D6/wKioL1mXg4rhi6TgAAAba3QHDGk661.png "title=" 1. PNG "alt=" Wkiol1mxg4rhi6tgaaaba3qhdgk661.png "/>

Mount to view the format of the file system

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M01/00/26/wKiom1mXg53ROzRtAAAvAUBxtco918.png "title=" 2.png "alt=" Wkiom1mxg53rozrtaaavaubxtco918.png "/>

Cent7 default is to use the XFS file system.

Cent default use EXT

4.7/4.8 Disk Mount Format:

Mke2fs-t Xfs-b/dev/sdb

-B: Specify the block size

ll look at the true size of the file

Du-sh is looking at the block size that the file occupies.

DU-SB and ll effects are the same.

Blkid is commonly used.

Mkfs.ext4=mke2fs-t EXT4

Mke2fs-i 8192 (8K)

Specify how many bytes correspond to an inode, default 4 blocks, 4 K per block, one 16K

Mount-o specifying the properties of a mount

Ro RW remount

Vi/etc/fstab system start back to read this mount file

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9E/D6/wKioL1mXg6eCa0xDAAAijoS58x8816.png "title=" 3.png "alt=" Wkiol1mxg6eca0xdaaaijos58x8816.png "/>

The last column represents whether to check if the partition needs to be detected, set to 1, the other partition is set to 2 1 with priority greater than 2


4.9 Adding swap space manually

DD If=/dev/zero Of=/tmp/newdisk bs=1m count=1000

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/9E/D6/wKioL1mXg73BZ51VAACSm1lBStE714.png "style=" float : none; "title=" 4.png "alt=" Wkiol1mxg73bz51vaacsm1lbste714.png "/>

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/00/26/wKiom1mXg8HDKcqKAAAP4f5MxFw806.png "style=" float : none; "title=" 5.png "alt=" Wkiom1mxg8hdkcqkaaap4f5mxfw806.png "/>


Linux Disk Management

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.