Fdiskdfdu, a common tool for file systems, is a common Linux technology-Linux technology and application information. For more information, see the following. Fdisk-l lists supported partitions.
Other parameters: a adjust hard disk boot partition d Delete hard disk partition m list all commands n create partition p list Partition Table q do not save exit w save exit t and this partition type x list advanced options
For example, fdisk/dev/sdb
Command (m for help ):
Enter related commands as needed.
My experiment: Command (m for help): n // create a partition
Partition number (1-4): 1 // create primary Partition and extended Partition 1-4 logical Partition starting from 5
: + 500 M // size of the input file system space
Command (m for help): t // change the partition type
Selected partition: 1 // confirm the Selected partition
Hex code (type L to List codes): 83
After the partition is completed:
Command (m for help): w
Save and exit.
2. Create a File System
Mkfs [parameter] File System
-T specifies the type of the file system to be created.
-C. Create a file system. Check the Bad blocks first.
-L file: Read the bad block list from the file.
-V: Output details of the file system
Create an ext3 File System on mkfs-t ext3-V/dev/sdb1 //, check Disk Bad blocks and display details
3. Copy a disk by dd
Dd [if = input file and/device name] [of = output file name/device name]
4. df is used to view disk space usage of the file system
Df-
6. du: displays the usage of an empty disk.
Du-AB
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