Lines Matching refs:dev
52 echo "${init_devs}" | grep "${blk_dev}" >/dev/null
82 sudo chmod 666 /dev/${blk_dev}
83 type pv > /dev/null 2>&1
85 pv ${image} > /dev/${blk_dev}
87 dd if=${image} of=/dev/${blk_dev} bs=1M conv=sync,noerror status=progress
96 …part_type=`sudo gdisk -l /dev/${blk_dev} 2>/dev/null | grep ": present" | sed 's/ *\([^:]*\):.*/\…
98 sudo parted -s /dev/${blk_dev} resizepart 1 100%
99 sudo e2fsck -y -f /dev/${blk_dev}1 >/dev/null 2>&1
100 sudo resize2fs /dev/${blk_dev}1 >/dev/null 2>&1
102 parts=`sudo gdisk -l /dev/${blk_dev} | grep "^Number" -A999 | tail -n +2 | wc -l`
103 FIRST_SECTOR=`sudo gdisk -l /dev/${blk_dev} 2>/dev/null | tail -1 | tr -s ' ' | cut -d" " -f3`
104 sudo sgdisk -d${parts} /dev/${blk_dev} >/dev/null 2>&1
105 …RST_SECTOR}:- -A:${parts}:set:2 -t:${parts}:8305 -c:${parts}:rootfs /dev/${blk_dev} >/dev/null 2>&1
106 sudo e2fsck -fy /dev/${blk_dev}${parts} >/dev/null 2>&1
107 sudo resize2fs /dev/${blk_dev}${parts} >/dev/null 2>&1
110 sudo sync /dev/${blk_dev}
111 sudo eject /dev/${blk_dev}