#!/bin/bash
set -e

sudo apt-get install acpidump smartmontools hdparm lshw
mkdir hardware_information
cd hardware_information
cat /proc/cpuinfo > ProcCpuinfo.txt
cat /proc/interrupts > ProcInterrupts.txt
cat /var/log/Xorg.0.log > Xorg.0.log
sudo acpidump > acpidump.txt
dmesg > dmesg.txt
sudo dmidecode > dmidecode.txt
free > free.txt
sudo hdparm -i /dev/sda /dev/sdb > hdparm-i.txt
sudo lshw >lshw.txt
lsmod > lsmod.txt
sudo lspci > lspci.txt
sudo lspci -vvvnn > lspci-vvvnn.txt
sudo lspci -vvv > lspci-vvv.txt
sudo smartctl -a /dev/sda > smartctl-a-sda.txt
sudo smartctl -a /dev/sdb > smartctl-a-sdb.txt
sudo fdisk -l /dev/sda > fdisk-l-dev-sda.txt
sudo fdisk -l /dev/sdb > fdisk-l-dev-sdb.txt
sudo cp -av /sys/firmware/acpi/tables acpi_tables
