#! /bin/bash # Grab the core defs source core.sh # Find the largest width to evenly display block table WIDTH=`tput cols` while [ $((2048 % WIDTH)) -ne 0 ] do let $(( WIDTH-- )) done # Display the first 2048 bytes of the FS, which happens to already be in the right format dd if=$OSFS bs=1 count=2048 cbs=$WIDTH conv=unblock 2>/dev/null