This commit is contained in:
Florian Späth
2025-01-31 01:44:28 +01:00
commit f2f011343f
9 changed files with 105 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
touch /raid/state-drive.txt
date >> /raid/state-drive.txt
echo "" >> /raid/state-drive.txt
echo "SDA = raid_platte_1" >> /raid/state-drive.txt
sudo smartctl -a /dev/sda | sed -n '6p' >> /raid/state-drive.txt
sudo smartctl -a /dev/sda | sed -n '10p' >> /raid/state-drive.txt
sudo smartctl -H /dev/sda | sed -n '5p' >> /raid/state-drive.txt
echo "" >> /raid/state-drive.txt
echo "SDB = raid_platte_2" >> /raid/state-drive.txt
sudo smartctl -a /dev/sdb | sed -n '6p' >> /raid/state-drive.txt
sudo smartctl -a /dev/sdb | sed -n '10p' >> /raid/state-drive.txt
sudo smartctl -H /dev/sdb | sed -n '5p' >> /raid/state-drive.txt
echo "" >> /raid/state-drive.txt
echo "SDC = System" >> /raid/state-drive.txt
sudo smartctl -a /dev/sdc | sed -n '6p' >> /raid/state-drive.txt
sudo smartctl -a /dev/sdc | sed -n '10p' >> /raid/state-drive.txt
sudo smartctl -H /dev/sdc | sed -n '5p' >> /raid/state-drive.txt
rm /raid/netdrive/state-drive.txt
mv /raid/state-drive.txt /raid/netdrive/state-drive.txt