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

How to delete disk in centos

王林
Release: 2020-03-17 14:44:56
Original
4743 people have browsed it

How to delete disk in centos

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

fdisk -l
Copy after login

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
Copy after login

and

umount /dev/sda2
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template