+table=$(get_partition_table "$SNF_IMAGE_DEV")
+partition=$(get_partition_by_num "$table" "$SNF_IMAGE_RESIZE_PART")
+id=$(cut -d: -f1 <<< "$partition")
+ptype=$(cut -d: -f5 <<< "$partition")
+
+device="${SNF_IMAGE_DEV}${id}"
+
+if [[ "$ptype" == ext[234] ]]; then