#!/bin/sh
sudo fdisk -l /dev/sda -o device,sectors|grep '^/dev'| awk '{size=strtonum($2)*512/1024^3; print($1, size); if (size > 1.8 && size < 2.5) {swap=$1;print("SWAP")}; else if (size > 9 && size < 12) {linux=$1;print("Linux")}}'
