小编did*_*dil的帖子

How to keep sfdisk working?

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)

updates partitioning embedded-system

7
推荐指数
1
解决办法
4883
查看次数

标签 统计

embedded-system ×1

partitioning ×1

updates ×1