diff --git a/mk_mmc.sh b/mk_mmc.sh index 858e52f..05b4448 100755 --- a/mk_mmc.sh +++ b/mk_mmc.sh @@ -1268,7 +1268,7 @@ populate_boot () { } check_mmc () { - FDISK=$(LC_ALL=C fdisk -l 2>/dev/null | grep "Disk ${media}" | awk '{print $2}') + FDISK=$(LC_ALL=C fdisk -l 2>/dev/null | grep "Disk ${media}[^(a-z,A-Z,0-9)]" | awk '{print $2}') if [ "x${FDISK}" = "x${media}:" ] ; then echo ""