diff --git a/rpi3-resizerootfs b/rpi3-resizerootfs index bdba954..32c861c 100755 --- a/rpi3-resizerootfs +++ b/rpi3-resizerootfs @@ -4,6 +4,10 @@ roottmp=$(lsblk -l -o MAJ:MIN,MOUNTPOINT | grep '/$') rootpart=/dev/block/${roottmp% /} rootdev=${rootpart%:*}:0 -printf "y\n-1s\n" | parted $rootdev resizepart 2 +sfdisk -f $rootdev -N 2 <