sfdisk에 인수 옵션이 없나요?

sfdisk에 인수 옵션이 없나요?
sfdisk --delete $disk

Ubuntu 18.04 이상에서 작동합니다. Ubuntu 16.04 LTS에서 해당 명령은 무엇입니까?

Ubuntu 16.04 LTS(--삭제 누락),

Ubuntu 18.04 LTS(--현재 삭제)

답변1

해결 방법 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 

답변2

wipefs -a -f $disk

~ 할 것이다트릭을 수행

관련 정보