Home>Article>Operation and Maintenance> How to delete partition in linux
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.
#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:
Note: The test server has two partitions, vda1 and vdb1.
Rendering:
2. Delete the vdb1 partition and execute the following command:
fdisk /dev/vdb1
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!