~ $ export PARTITION="/dev/mmcblk0p2" ~ $ export PART`blkid | grep "$PARTITION" | awk '{ print $NF }'` ; echo $PARTTYPE "ext2"