From: Chris Koeritz Date: Wed, 1 Nov 2023 04:27:24 +0000 (-0400) Subject: new script shows fdisk report for real hard drives X-Git-Tag: 2.140.188^2~51 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=a307b9b6e9ad6b22fb887eb63df3974240fc521a;p=feisty_meow.git new script shows fdisk report for real hard drives --- diff --git a/scripts/system/show_disks.sh b/scripts/system/show_disks.sh new file mode 100644 index 00000000..2a32bb6d --- /dev/null +++ b/scripts/system/show_disks.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +# shows fdisk report for "real" devices. + +for device in \ + $(grep "sd.*[0-9]" /proc/partitions | awk '{ print "/dev/" $4 }') \ +; do + echo + echo + echo ==== device $device ==== + sudo fdisk -l $device +done +