<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.1701technology.com/index.php?action=history&amp;feed=atom&amp;title=Run_SMART_test_on_all_SATA_drives</id>
	<title>Run SMART test on all SATA drives - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.1701technology.com/index.php?action=history&amp;feed=atom&amp;title=Run_SMART_test_on_all_SATA_drives"/>
	<link rel="alternate" type="text/html" href="https://wiki.1701technology.com/index.php?title=Run_SMART_test_on_all_SATA_drives&amp;action=history"/>
	<updated>2026-05-06T13:52:08Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.1701technology.com/index.php?title=Run_SMART_test_on_all_SATA_drives&amp;diff=142&amp;oldid=prev</id>
		<title>Michael.mast: Created page with &quot;&lt;pre&gt; #!/bin/bash ##Create list of all possible sata block devices for i in {a..z} do echo sd$i &gt;&gt; /tmp/drivelist done ##Check if the drive exists, if it does run the long sma...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.1701technology.com/index.php?title=Run_SMART_test_on_all_SATA_drives&amp;diff=142&amp;oldid=prev"/>
		<updated>2016-08-07T20:44:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;pre&amp;gt; #!/bin/bash ##Create list of all possible sata block devices for i in {a..z} do echo sd$i &amp;gt;&amp;gt; /tmp/drivelist done ##Check if the drive exists, if it does run the long sma...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
##Create list of all possible sata block devices&lt;br /&gt;
for i in {a..z}&lt;br /&gt;
do&lt;br /&gt;
echo sd$i &amp;gt;&amp;gt; /tmp/drivelist&lt;br /&gt;
done&lt;br /&gt;
##Check if the drive exists, if it does run the long smart test.&lt;br /&gt;
while read line&lt;br /&gt;
do&lt;br /&gt;
smartctl -H /dev/$line &amp;gt; /tmp/asdasd&lt;br /&gt;
if grep -q &amp;quot;No such device&amp;quot; /tmp/asdasd; then&lt;br /&gt;
rm -f /tmp/asdasd&lt;br /&gt;
else&lt;br /&gt;
rm -f /tmp/asdasd&lt;br /&gt;
smartctl -t long /dev/$line &amp;amp;&amp;gt; /dev/null&lt;br /&gt;
fi&lt;br /&gt;
done &amp;lt; /tmp/drivelist&lt;br /&gt;
rm /tmp/drivelist&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael.mast</name></author>
		
	</entry>
</feed>