游戏联盟分享平台-全自助-免费游戏分享-七玩网
我的世界《记忆之间》一个全新的MMOARPG模式MC-七玩网
独家出售24-70级附魔端授权、完美六职业、农场BOSS挑战、自定义加密RFS、支持称号图片,同时兼容64位与32位系统。-七玩网
蓝易云香港服务器特惠:29元/月尊享1核1G内存10Mbps CN2线路,大带宽首选,品质推荐,信赖之选!-七玩网

CentOS删除磁盘分区命令

图片[1]-CentOS删除磁盘分区命令-七玩网

fdisk /dev/sdb 
Command (m for help): d
--输入删除指令
Partition number (1-7): 1
--输入删除的分区号
Command (m for help): p
--打印分区表
Disk /dev/sdb: 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/sdb2             251         500     2008125   83  Linux
/dev/sdb3             501         750     2008125   83  Linux
/dev/sdb4             751        1305     4458037+   5  Extended
/dev/sdb5             751         875     1004031   83  Linux
/dev/sdb6             876        1000     1004031   83  Linux
/dev/sdb7            1001        1305     2449881   83  Linux
--可以看到sdb1已经被删除了
--接下来同理,删除其它分区
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/sdb: 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.

现在可以移除磁盘了

© 版权声明
THE END
文章不错?点个赞呗
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容