只是想知道如何在 Debian 下取消硬盘分区。
我最近使用
cfdisk /dev/sdb
并想撤销我所做的操作。
谢谢
答案1
跑步
cfdisk /dev/sdb
然后对每个分区使用命令“d”。
man cfdisk
COMMANDS
d Delete the current partition. This will convert the current partition into free space and merge it with any free space immediately surrounding the current partition. A partition already marked as free space or marked as unusable cannot be deleted.
答案2
dd if=/dev/zero of=/dev/sdb bs=512 count=1