Home  >  Article  >  Operation and Maintenance  >  How to delete disk in centos

How to delete disk in centos

王林
王林Original
2020-03-17 14:44:564670browse

How to delete disk in centos

First determine the disk to be deleted, and check the disk status through the command:

fdisk -l

As shown in the figure, if the disk device to be deleted is: /dev/sda

You can see that there are two disk partitions under this disk:

/dev/sda1;

/de/sda2;

(Recommended tutorial: centos usage tutorial)

How to delete disk in centos

Use the commands:

umount /dev/sda1

and

umount /dev/sda2

to unmount the two partitions under the disk.

Note: When uninstalling a disk partition, you should pay attention to whether it is a system file.

After the uninstallation is completed, the disk will be deleted.

Related video tutorial sharing: linux video tutorial

The above is the detailed content of How to delete disk in centos. 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