#displays partition info with * in second colonum for boot partition sudo fdisk -l #Just greping for * does not work sudo fdisk -l |grep '*' #quotes need around * #use awk to find match in second colum sudo fdisk -l | awk '$2 == "*" #display just the partition match sudo fdisk -l | awk '$2 == "*" {print $1}'