I updated to Ubuntu 15.10 but it causes a huge issue for me: sfdisk doesn't work anymore.
I really need sfdisk to build partitions on SD card for my embedded Linux but it seems that options have changed.
Here is my script:
CARD_DEV=$1
unset LANG
umount ${CARD_DEV}* >& /dev/null
if [ -b "$CARD_DEV" ] ; then
echo "*************** Formatting SD card... ***************"
dd if=/dev/zero of=$CARD_DEV bs=1024 count=1024
SIZE=`fdisk -l $CARD_DEV | grep Disk | awk '{print $5}'`
echo DISK SIZE …Run Code Online (Sandbox Code Playgroud)