Linux disk and file system management

Source: Internet
Author: User
  • Capacity of disk: DF
  • partitioning, formatting, checking, and mounting of disks

Common steps:

1. Partition the disk to create a new available partition.

2. Format the partition to create a system-ready file system.

3. If you want to be careful, you can test the newly-created file system.

4. On a Linux system, you need to create a mount point (that is, the directory) and mount it.

Disk partition: Fdisk

Fdisk-l Device Name

Command:m (Command Encyclopedia), n (add a partition), p (Show partition Table), q (Do not store, leave Fdisk program), W (writes the previous operation to the partition table)

Disk Format: MKFS

MKFS [-T file system format] device file name

Disk Inspection: fsck

Disk Mount: Mount (Manual processing, the system will not automatically mount after booting)

Mount device file name mount point

Mount-l (view the currently mounted point file system with the label name of each file system)

Disk parameter modification

  • Set Boot mount:/etc/fstab

Cat/etc/fstab

Nano/etc/fstab (edit file, write mount information) (DF to see if history is mounted)

Mount-a (all non-mounted point disks are mounted according to the data of the configuration file/etc/fstab)

Linux disk and file system 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.