new script shows fdisk report for real hard drives
[feisty_meow.git] / scripts / system / show_disks.sh
1 #!/bin/bash
2
3 # shows fdisk report for "real" devices.
4
5 for device in \
6     $(grep "sd.*[0-9]" /proc/partitions | awk '{ print "/dev/" $4 }') \
7 ; do
8   echo
9   echo
10   echo ==== device $device ====
11   sudo fdisk -l $device
12 done
13