sfdisk --delete $disk来自Ubuntu 18.04或更高版本的作品。Ubuntu16.04LTS中的等效命令是什么?
Ubuntu16.04LTS (--删除缺失),
Ubuntu18.04LTS (--删除当前)
发布于 2020-04-19 20:53:53
解决方案1:从源代码构建和安装sfdisk (以便能够使用更新的版本)
wget https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v2.35/util-linux-2.35.tar.gz
tar -xvf util-linux-2.35.tar.gz
cd cd util-linux-2.35
./configure
make
make install
/usr/local/bin/sfdisk --delete $disk解决方案2:使用fdisk
# list disk and partitions
fdisk -l
# open the target disk with fdisk
fdisk /dev/target-disk
# then use the d command option to delete the partition you want to remove
# then use the w command option to save the changes 发布于 2020-04-21 13:20:26
wipefs -a -f $disk
威尔做这个小把戏
https://unix.stackexchange.com/questions/580165
复制相似问题