- 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