Home  >  Article  >  Operation and Maintenance  >  How to delete partition in linux

How to delete partition in linux

WBOY
WBOYOriginal
2021-12-31 14:45:4238157browse

Method: 1. Use the fdisk command to obtain the partition that needs to be deleted. The syntax is "fdisk partition directory"; 2. Enter "d" after "Command (m for help):" to delete the specified partition; 3. , enter "w" to save the modification of the deleted partition.

How to delete partition in linux

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How to delete a partition in linux

To delete a linux partition, the tool used: xshell, the steps are as follows:

Log in to linux Server, execute the following command:

fdisk -l

Output the following information:

How to delete partition in linux

Note: The test server has two partitions, vda1 and vdb1.

Rendering:

How to delete partition in linux

2. Delete the vdb1 partition and execute the following command:

fdisk /dev/vdb1

How to delete partition in linux

Then enter:

d

then select the partition number

and finally enter w to save.

Note: Back up the data before deleting the partition.

Related recommendations: "Linux Video Tutorial"

The above is the detailed content of How to delete partition in linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn