上一篇 下一篇 分享链接 返回 返回顶部

CentOS删除磁盘分区命令

发布人:admin 发布时间:2023-02-12 01:15 阅读量:1680
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.
目录结构
全文
通知!
  1. 本站机器禁止任何违规违法行为业务
  2. 违规导致的机器或者ip被封自己承担损失
  3. 云服务器超过24小时后无法退款,大流量超过百分之10无法退
  4. 物理机器.CDN等其他业务开通后无法退款,望知晓。
  5. 不懂的地方可以咨询在线客服为您解答。

预存用户联系客服获取最低折扣价格。

预存 5000    85折  预存 1w    75折

客服QQ 615772376

 

联系客服 关闭
网站通知