Disk Management in linux (2)

Source: Internet
Author: User
Blkid is used to view the unique identifier UUID and file system of the hard disk. when the file system is not specified during mounting, the system will automatically use blkid to detect the file system used by the partition to be mounted. Mke2fs-b block size-j formatted as ext3-L volume-m specify management space ,...

 

Blkid is used to view the unique identifier UUID and file system of the hard disk. when the file system is not specified during mounting, the system will automatically use blkid

Test the file system used by the partition to be mounted.

Mke2fs-B block size

-J format to ext3

-L scale

-M indicates the management space, expressed as %

Df displays the devices mounted to the current system.

-A: list all file systems.

-[K | m]: K or M

-I indicates the number of inode instead of the disk capacity.

Df-h

Filesystem Size Used Avail Use % Mounted on

/Dev/mapper/vol0-root

29G 4.8G 23G 18%/

/Dev/mapper/vol0-home

1.9G 36 M 1.8G 2%/home

/Dev/sda1 99 M 30 M 65 M 32%/boot

Tmpfs 506 M 0 506 M 0%/dev/shm

Dumpe2fs-h partition name (/dev/sda1) to view the super block information. if-h is not added, all information is displayed.

Du file or directory name

-A: list the capacity of all files and directories.

-[H | k | m] displayed as K, M, or automatically calculated

-S only lists the total number of directories in combination with [h | k | m]

Ln source file target file

-S adds a soft connection without creating a hard link.

-F if the target exists, remove it and recreate it.

 

Fdisk disk name (/dev/sda) disk partitioning tool

-L no parameter is added to display all current partitions; otherwise, the specified partition information is displayed.

Partitioning a disk without the option

The mkfs option parameter is formatted for a disk.

-T specifies the file type

The mke2fs option parameter is formatted for a disk.

-B: set the block size.

-How much I can provide to an inode?

-C check disk errors

-L followed by the volume label

-J format to ext3. the default value is ext2.

The badblock option parameter is used to detect bad blocks.

-[S | v] Display progress on the screen

 

Mknod device name specifies the device type master device number this device number

-B: create a device.

-C: create a character device.

-P: Create a pipe device.

All the created devices disappear after they are started. all the special devices in the system/dev/directory are automatically created each time they are started.

 

Hdparm device name for disk testing

-I: displays the detected disk parameters. here, the information read by the kernel is displayed.

-T test cache

-T test the hard disk access performance

 

In addition, there are mount and unmount mount and umount for partitions, which is relatively simple.

This article is from the "growth full record" blog

Related Article

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.