From a307b9b6e9ad6b22fb887eb63df3974240fc521a Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Wed, 1 Nov 2023 00:27:24 -0400 Subject: [PATCH] new script shows fdisk report for real hard drives --- scripts/system/show_disks.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scripts/system/show_disks.sh 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 + -- 2.34.1