summaryrefslogtreecommitdiff
path: root/src/op_mode/show-disk-format.sh
blob: 61b15a52bc249aa16202eff4e70ca07b0c2d48a5 (plain)
1
2
3
4
5
6
7
8
#!/bin/bash

disk_dev="/dev/$1"
if [ ! -b "$disk_dev" ];then 
  echo "$3 is not a disk device"
  exit 1
fi
sudo /sbin/fdisk -l "$disk_dev"