Skip to content

Commit

Permalink
add machine readable infor from sfdisk, do not call hdparm, remove he…
Browse files Browse the repository at this point in the history
…ader from smartctl
  • Loading branch information
Mrfai committed Oct 12, 2022
1 parent 9bd3d04 commit 1efe2f2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/task_sysinfo
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,16 @@ command -v lsblk >&/dev/null && lsblk -i
command -v blkid >&/dev/null && blkid

# very detailed
echo "========================================"
for disk in $disklist; do
smartctl -i /dev/$disk
hdparm -iv /dev/$disk
smartctl -i /dev/$disk | tail +4
echo "----------------------------------------"
fdisk -lu /dev/$disk
echo "----------------------------------------"
parted -s /dev/$disk print
echo "----------------------------------------"
sfdisk -d /dev/$disk
echo "----------------------------------------"
LC_ALL=C file -s /dev/$disk?* | grep -v ": empty"
done

Expand Down

0 comments on commit 1efe2f2

Please sign in to comment.