Home >Operation and Maintenance >CentOS >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)
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!