fdisk /dev/vdb Command (m for help): d --输入删除指令 --正常如果你只有一个分区输入完后再输入wq保存退出即可完成 Partition number (1-7): 1 --输入删除的分区号 Command (m for help): p --打印分区表 Disk /dev/vdb: 10.7 GB, 10737418240 bytes 255 heads, 63 sectors/track, 1305 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/vdb2 251 500 2008125 83 Linux /dev/vdb3 501 750 2008125 83 Linux /dev/vdb4 751 1305 4458037+ 5 Extended /dev/vdb5 751 875 1004031 83 Linux /dev/vdb6 876 1000 1004031 83 Linux /dev/vdb7 1001 1305 2449881 83 Linux --可以看到vdb1已经被删除了 --接下来同理,删除其它分区 Command (m for help): d Partition number (1-7): 2 Command (m for help): d Partition number (1-7): 3 Command (m for help): d Partition number (1-7): 4 Command (m for help): p Disk /dev/vdb: 10.7 GB, 10737418240 bytes 255 heads, 63 sectors/track, 1305 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System Command (m for help): w --保存退出 The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks.
帮助中心
CentOS删除磁盘分区命令 打印
- 96
此文章对您是否有帮助?
相关文章
linux服务器通过top看CPU性能指标
服务器变慢负载高时,需要先查看cpu负载是否过高,如果cpu负载高再看查看具体是什么进程占用cpu资源。一. cpu负载: 通过top命令查看:
主要看“load...
Linux修改配置dns生效教程
vi /etc/resolv.conf
#比如修改:nameserver 8.8.8.8 改为nameserver 114.114.114.114...
CentOS更改ssh默认连接端口
在使用linux过程中为了安全,我们有可能需要更改ssh默认端口来防止黑客的扫描。我们要知道默认的22端口是不安全的。
首先,使用ssh连接工具登录服务器输入:
vi...
CentOS安装软件环境很慢?升级一下吧!
有时我们在安装宝塔或一些程序时候因他们的脚本设计都会先检查你系统环境是否最新,那么此过程较为漫长该怎么解决呢?...
CentOS开启iptables UDP端口
若没有安装请先安装:yum install -y iptables
随后禁用firewalld默认防火墙:
#停止firewalld服务
systemctl...