summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Gilligan <gilligan@vyatta.com>2008-09-30 11:35:18 -0700
committerBob Gilligan <gilligan@vyatta.com>2008-09-30 11:35:18 -0700
commit1e25abc5f5b0655357b5233570dd36abb0f4f719 (patch)
treebd707134ae1d9f5300b25c8b3a3e0f14856c5cce
parent523576b3c24f52b3cf0623ea80b0cfcdbf7b93f2 (diff)
downloadvyatta-op-1e25abc5f5b0655357b5233570dd36abb0f4f719.tar.gz
vyatta-op-1e25abc5f5b0655357b5233570dd36abb0f4f719.zip
Bugfix: 1725
Provide partitioning information for all disk drives in "show tech-support".
-rwxr-xr-xfunctions/tech-support7
1 files changed, 7 insertions, 0 deletions
diff --git a/functions/tech-support b/functions/tech-support
index 73b5eb6..5aff9dd 100755
--- a/functions/tech-support
+++ b/functions/tech-support
@@ -92,6 +92,13 @@ cat /proc/devices
header Partitions
cat /proc/partitions
+disks=`cat /proc/partitions | awk '{ if ($4!="name") { print $4 } }' | egrep -v "[0-9]$" | egrep -v "^$"`
+
+for disk in $disks; do
+ header "Partitioning for disk $disk"
+ fdisk -l /dev/$disk
+done
+
header Mounts
cat /proc/mounts