首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >sfdisk中缺少参数选项?

sfdisk中缺少参数选项?
EN

Unix & Linux用户
提问于 2020-04-15 08:19:16
回答 2查看 255关注 0票数 2
代码语言:javascript
复制
sfdisk --delete $disk

来自Ubuntu 18.04或更高版本的作品。Ubuntu16.04LTS中的等效命令是什么?

Ubuntu16.04LTS (--删除缺失)

Ubuntu18.04LTS (--删除当前)

EN

回答 2

Unix & Linux用户

回答已采纳

发布于 2020-04-19 20:53:53

解决方案1:从源代码构建和安装sfdisk (以便能够使用更新的版本)

代码语言:javascript
复制
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

代码语言:javascript
复制
# 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 
票数 3
EN

Unix & Linux用户

发布于 2020-04-21 13:20:26

wipefs -a -f $disk

威尔做这个小把戏

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/580165

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档