Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to create disk Partition with Command in linux

Shulou Source: shulou.com Published: 2022-06-03 01:19:28 09月22日 Update

How to use the command to create a disk partition in linux? In view of this problem, this article gives the corresponding analysis and answers, hoping to help more friends who want to solve this problem to find a more simple and feasible way.

The command to create a disk partition in linux is:

Fdisk disk

Disk partitioning method:

1. Enter root

2. Enter (this command will show all disks that are not partitioned)

Fdisk-l

3. Partition the sdb and enter the command:

Fdisk / dev/sdc

Means to partition the sdc disk, then type m to view help, and finally type p to see the partition of the disk.

Enter n to create a new partition.

5. According to the above figure prompt, enter p to create the primary partition, which will prompt you to create the ID number of the primary partition. Create up to 4 primary partitions per disk.

6. Enter 1 according to the prompt. Will help you create a / dev/sdc1 partition directory. At this point, you will be prompted for the start and end position of the partition. First cylinder represents the start position and last cylinder represents the cut-off position.

7. Finally, you can enter p to view the partition:

8. Enter w to save the changes and exit.

Linux on how to use the command to create disk partitions to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: Disk input command prompt location situation more help problem good easy easy above picture content method article method friend directory knowledge Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS OPPO Reno Microsoft vpn Shulou Tech Info