Yeung Alan %!s(int64=5) %!d(string=hai) anos
pai
achega
acccba2caf
Modificáronse 10 ficheiros con 2388 adicións e 55 borrados
  1. 97 53
      DiskInfo/index.php
  2. 32 0
      DiskInfo/opr.php
  3. 65 0
      DiskInfo/scan.txt
  4. 548 0
      DiskInfo/sda.txt
  5. 570 0
      DiskInfo/sda_home.txt
  6. 459 0
      DiskInfo/sdb.txt
  7. 617 0
      DiskInfo/sdc.txt
  8. BIN=BIN
      DiskInfo/smartctl_armv6
  9. BIN=BIN
      DiskInfo/smartctl_i386
  10. 0 2
      README.md

+ 97 - 53
DiskInfo/index.php

@@ -7,7 +7,7 @@ include_once '../auth.php';
 	<script src="../script/tocas/tocas.js"></script>
 	<script src="../script/jquery.min.js"></script>
 	<script src="../script/ao_module.js"></script>
-	<script src="html2canvas.min.js"></script>
+	<meta name="viewport" content="width=device-width, initial-scale=0.6, shrink-to-fit=no">
 	<style>
 	.item{
 		text-align: center;
@@ -18,12 +18,10 @@ include_once '../auth.php';
 	</style>
 	</head>
 <body>
- <div class="ts tabbed menu">
-    <a class="item">Good<br>29C<br>C:</a>
-    <a class="active item">Warning<br>29C<br>C:</a>
+<div class="ts tabbed menu" id="menu">
 </div>
 <div class="ts grid">
-    <div class="sixteen wide column"><h3 class="ts center aligned header">INTEL SSDSC2BW240H6 240.0GB</h3></div>
+    <div class="sixteen wide column"><h3 class="ts center aligned header" id="drivename">INTEL SSDSC2BW240H6 240.0GB</h3></div>
     <div class="sixteen wide column">
 		<div class="ts narrow container">
 			<div class="ts grid">
@@ -31,8 +29,8 @@ include_once '../auth.php';
 					<h5 class="ts center aligned header">Health Status</h5>
 					<div class="ts inverted primary card">
 						<div class="content">
-							<div class="header" style="text-align: center;">Good</div>
-							<div class="description" style="text-align: center;">
+							<div class="header" style="text-align: center;" id="health_status">Good</div>
+							<div class="description" style="text-align: center;" id="health_prec">
 								95%
 							</div>
 						</div>
@@ -40,7 +38,7 @@ include_once '../auth.php';
 					<h5 class="ts center aligned header">Temperture</h5>
 					<div class="ts inverted primary card">
 						<div class="content">
-							<div class="description" style="text-align: center;">
+							<div class="description" style="text-align: center;" id="temperture">
 								25C
 							</div>
 						</div>
@@ -54,35 +52,15 @@ include_once '../auth.php';
 									<div class="ts horizontal form" style="opacity: 1;">
 										<div class="disabled field" style="opacity: 1;">
 											<label style="color:black">Firmware</label>
-											<input class="ts mini input" style="color:black" type="text" value="RG21"></input>
+											<input id="firmware" class="ts mini input" style="color:black" type="text" value="RG21"></input>
 										</div>
 									</div>
 								</div>
 								<div class="eight wide column">
 									<div class="ts horizontal form" style="opacity: 1;">
 										<div class="disabled field" style="opacity: 1;">
-											<label style="color:black">Total Host Reads</label>
-											<input class="ts mini input" style="color:black" type="text" value="22507GB"></input>
-										</div>
-									</div>
-								</div>
-							</div>
-						</div>
-						<div class="sixteen wide column">
-							<div class="ts grid">
-								<div class="eight wide column">
-									<div class="ts horizontal form" style="opacity: 1;">
-										<div class="disabled field" style="opacity: 1;">
-											<label style="color:black">Firmware</label>
-											<input class="ts mini input" style="color:black" type="text" value="RG21"></input>
-										</div>
-									</div>
-								</div>
-								<div class="eight wide column">
-									<div class="ts horizontal form" style="opacity: 1;">
-										<div class="disabled field" style="opacity: 1;">
-											<label style="color:black">Total Host Reads</label>
-											<input class="ts mini input" style="color:black" type="text" value="22507GB"></input>
+											<label id="col1" style="color:black">Total Host Reads</label>
+											<input id="col1_v" class="ts mini input" style="color:black" type="text" value="22507GB"></input>
 										</div>
 									</div>
 								</div>
@@ -94,15 +72,15 @@ include_once '../auth.php';
 									<div class="ts horizontal form" style="opacity: 1;">
 										<div class="disabled field" style="opacity: 1;">
 											<label style="color:black">Serial Number</label>
-											<input class="ts mini input" style="color:black" type="text" value="CVTR505030T240CGN"></input>
+											<input id="serial" class="ts mini input" style="color:black" type="text" value="CVTR505030T240CGN"></input>
 										</div>
 									</div>
 								</div>
 								<div class="eight wide column">
 									<div class="ts horizontal form" style="opacity: 1;">
 										<div class="disabled field" style="opacity: 1;">
-											<label style="color:black">Total Host Writes</label>
-											<input class="ts mini input" style="color:black" type="text" value="18517GB"></input>
+											<label id="col2" style="color:black">Total Host Writes</label>
+											<input id="col2_v" class="ts mini input" style="color:black" type="text" value="18517GB"></input>
 										</div>
 									</div>
 								</div>
@@ -114,15 +92,15 @@ include_once '../auth.php';
 									<div class="ts horizontal form" style="opacity: 1;">
 										<div class="disabled field" style="opacity: 1;">
 											<label style="color:black">Interface</label>
-											<input class="ts mini input" style="color:black" type="text" value="Serial ATA"></input>
+											<input id="interface" class="ts mini input" style="color:black" type="text" value="Serial ATA"></input>
 										</div>
 									</div>
 								</div>
 								<div class="eight wide column">
 									<div class="ts horizontal form" style="opacity: 1;">
 										<div class="disabled field" style="opacity: 1;">
-											<label style="color:black">Total NAND Writes</label>
-											<input class="ts mini input" style="color:black" type="text" value="77840GB"></input>
+											<label id="col3" style="color:black">Total NAND Writes</label>
+											<input id="col3_v" class="ts mini input" style="color:black" type="text" value="77840GB"></input>
 										</div>
 									</div>
 								</div>
@@ -134,7 +112,7 @@ include_once '../auth.php';
 									<div class="ts horizontal form" style="opacity: 1;">
 										<div class="disabled field" style="opacity: 1;">
 											<label style="color:black">Transfer Mode</label>
-											<input class="ts mini input" style="color:black" type="text" value="SATA/600 | SATA/600"></input>
+											<input id="transfer" class="ts mini input" style="color:black" type="text" value="SATA/600 | SATA/600"></input>
 										</div>
 									</div>
 								</div>
@@ -142,7 +120,7 @@ include_once '../auth.php';
 									<div class="ts horizontal form" style="opacity: 1;">
 										<div class="disabled field" style="opacity: 1;">
 											<label style="color:black">Power On Count</label>
-											<input class="ts mini input" style="color:black" type="text" value="3816 count"></input>
+											<input id="powercount" class="ts mini input" style="color:black" type="text" value="3816 count"></input>
 										</div>
 									</div>
 								</div>
@@ -154,7 +132,7 @@ include_once '../auth.php';
 									<div class="ts horizontal form" style="opacity: 1;">
 										<div class="disabled field" style="opacity: 1;">
 											<label style="color:black">Drive Letter</label>
-											<input class="ts mini input" style="color:black" type="text" value="SATA/600 | SATA/600"></input>
+											<input id="driveleter" class="ts mini input" style="color:black" type="text" value="C:"></input>
 										</div>
 									</div>
 								</div>
@@ -162,7 +140,7 @@ include_once '../auth.php';
 									<div class="ts horizontal form" style="opacity: 1;">
 										<div class="disabled field" style="opacity: 1;">
 											<label style="color:black">Power On Hours</label>
-											<input class="ts mini input" style="color:black" type="text" value="1834 hours"></input>
+											<input id="powerhour" class="ts mini input" style="color:black" type="text" value="1834 hours"></input>
 										</div>
 									</div>
 								</div>
@@ -173,7 +151,7 @@ include_once '../auth.php';
 							<div class="ts horizontal form" style="opacity: 1;">
 								<div class="disabled field" style="opacity: 1;">
 									<label style="color:black">Standard</label>
-									<input class="ts mini input" style="color:black" type="text" value="ACS-3 | ----"></input>
+									<input id="standard" class="ts mini input" style="color:black" type="text" value="ACS-3 | ----"></input>
 								</div>
 							</div>
 						</div>
@@ -181,7 +159,7 @@ include_once '../auth.php';
 							<div class="ts horizontal form" style="opacity: 1;">
 								<div class="disabled field" style="opacity: 1;">
 									<label style="color:black">Features</label>
-									<input class="ts mini input" style="color:black" type="text" value="S.M.A.R.T., APM, NCQ, TRIM, DevSleep"></input>
+									<input id="features" class="ts mini input" style="color:black" type="text" value="S.M.A.R.T., APM, NCQ, TRIM, DevSleep"></input>
 								</div>
 							</div>
 						</div>
@@ -206,20 +184,86 @@ include_once '../auth.php';
 					<th>Raw Values</th>
 				</tr>
 			</thead>
-			<tbody>
-				<tr>
-					<td>OK</td>
-					<td>05</td>
-					<td>Re-Allocated Sector Count</td>
-					<td>100</td>
-					<td>100</td>
-					<td>0</td>
-					<td>00000000000</td>
-				</tr>
+			<tbody id="tbody">
 			</tbody>
 		</table>
 		</div>
 	</div>
 </div>
 </body>
+<script>
+var active = "<?php echo isset($_GET["drive"])?$_GET["drive"]:"" ?>";
+$.get( "opr.php?opr=scan", function( data ) {
+	var arr = JSON.parse(data);
+	$(arr["devices"]).each(function(index, element) {
+		if(active == element["info_name"]){
+			$( "#menu" ).append('<a class="active item" href="?drive=' + element["info_name"] + '">' + smartok(element["info_name"]) + '<br>29C<br>' + element["info_name"] + '</a>');
+		}else{
+			$( "#menu" ).append('<a class="item" href="?drive=' + element["info_name"] + '">' + smartok(element["info_name"]) + '<br>29C<br>' + element["info_name"] + '</a>');
+		}
+	});
+});
+$.get( "opr.php?opr=info&drive=" + active, function( data ) {
+	var arr = JSON.parse(data);
+	$("#drivename").html(arr["model_family"] + " " + arr["model_name"] + " " + formatSizeUnits(arr["user_capacity"]["bytes"]));
+	$("#firmware").attr("value",arr["firmware_version"]);
+	$("#serial").attr("value",arr["serial_number"]);
+	$("#interface").attr("value",arr["device"]["protocol"]);
+	$("#transfer").attr("value",arr["interface_speed"]["current"]["string"] + " | " + arr["interface_speed"]["max"]["string"]);
+	$("#driveleter").attr("value",arr["device"]["name"]);
+	$("#standard").attr("value",arr["ata_version"]["string"]);
+	$("#features").attr("value","S.M.A.R.T.");
+	if(arr["rotation_rate"] > 0){
+		$("#col1").html("----");
+		$("#col1_v").attr("value","----");
+		
+		$("#col2").html("----");
+		$("#col2_v").attr("value","----");
+		$("#col3").html("Rotation Rate");
+		$("#col3_v").attr("value",arr["rotation_rate"] + " rpm");
+	}else{
+		$("#col1").html("Total Host Reads");
+		$("#col1_v").attr("value","----");
+		
+		$("#col2").html("Total Host Writes");
+		$("#col2_v").attr("value","----");
+		$("#col3").html("Total NAND Writes");
+		$("#col3_v").attr("value","----");
+	}
+	$("#powercount").attr("value",arr["power_cycle_count"] + " count");
+	$("#powerhour").attr("value",arr["power_on_time"]["hours"] + " hours");
+	$(arr["ata_smart_attributes"]["table"]).each(function(index, element) {
+		if(element["when_failed"] == ""){
+			var stat = "OK";
+		}else{
+			var stat = "Failed";
+		}
+		$("#tbody").append('<tr><td>' + stat + '</td><td>' + element["id"] + '</td><td>' + element["name"] + '</td><td>' + element["value"] + '</td><td>' + element["worst"] + '</td><td>' + element["thresh"] + '</td><td>' + element["raw"]["value"] + '</td></tr>');
+	});
+});
+
+function smartok(drive){
+	return "Good";
+}
+
+//from https://stackoverflow.com/questions/5501427/php-filesize-mb-kb-conversion/5501447
+    function formatSizeUnits(bytes)
+    {
+        if(bytes >= 1000000000){
+            bytes = Math.round(bytes / 1000000000,2) + 'GB';
+        }else if (bytes >= 1000000){
+            bytes = Math.round(bytes / 1000000,2) + 'MB';
+        }else if (bytes >= 1000){
+            bytes = Math.round(bytes / 1000,2) +  'KB';
+        }else if (bytes > 1){
+            bytes = bytes + 'bytes';
+        }else if (bytes == 1){
+            bytes = bytes + 'byte';
+        }else{
+            bytes = '0bytes';
+        }
+
+        return bytes;
+}
+</script>
 </html>

+ 32 - 0
DiskInfo/opr.php

@@ -0,0 +1,32 @@
+<?php
+header("Access-Control-Allow-Origin: *");
+
+if($_GET["opr"] == "scan"){
+	//echo shell_exec('./smartctl_i386 --scan -j');
+	echo file_get_contents("scan.txt");
+}else if($_GET["opr"] == "info"){
+	//smartctl -H /dev/sdb -j
+	//echo shell_exec('sudo ./smartctl_i386 -i '.$_GET["drive"].' -j -A');
+	$DiskData = [];
+    $DiskData["model_name"] = "Unknown";
+    $DiskData["user_capacity"]["bytes"] = 0;
+    $DiskData["temperature"]["current"] = 0;
+    $DiskData["model_family"] = "Unknown";
+    $DiskData["device"]["info_name"] = "Unknown";
+    $DiskData["firmware_version"] = "0.0.0";
+    $DiskData["serial_number"] = "Unknown";
+    $DiskData["power_on_time"]["hours"] = 0;
+    $DiskData["sata_version"]["string"] = "Unknown";
+    $DiskData["interface_speed"]["current"]["string"] = "Unknown";
+    $DiskData["rotation_rate"] = 0;
+    $DiskData["device"]["protocol"] = "Unknown";
+	
+	//$execResult = json_decode(shell_exec('sudo ./smartctl_i386 -i '.$_GET["drive"].' -j -A'),true);
+	$execResult = json_decode(file_get_contents(explode("/",$_GET["drive"])[2].".txt"),true);
+	if($execResult == null){
+		die("");
+	}
+    $DiskData = array_merge($DiskData,$execResult);
+    echo json_encode($DiskData);
+}
+?>

+ 65 - 0
DiskInfo/scan.txt

@@ -0,0 +1,65 @@
+{
+  "json_format_version": [
+    1,
+    0
+  ],
+  "smartctl": {
+    "version": [
+      7,
+      0
+    ],
+    "svn_revision": "4883",
+    "platform_info": "x86_64-w64-mingw32-win7-sp1",
+    "build_info": "(sf-7.0-1)",
+    "argv": [
+      "smartctl",
+      "--scan",
+      "-j"
+    ],
+    "exit_status": 0
+  },
+  "devices": [
+    {
+      "name": "/dev/sda",
+      "info_name": "/dev/sda",
+      "type": "ata",
+      "protocol": "ATA"
+    },
+    {
+      "name": "/dev/sdb",
+      "info_name": "/dev/sdb",
+      "type": "ata",
+      "protocol": "ATA"
+    },
+    {
+      "name": "/dev/sdc",
+      "info_name": "/dev/sdc",
+      "type": "ata",
+      "protocol": "ATA"
+    },
+    {
+      "name": "/dev/csmi0,0",
+      "info_name": "/dev/csmi0,0",
+      "type": "ata",
+      "protocol": "ATA"
+    },
+    {
+      "name": "/dev/csmi0,1",
+      "info_name": "/dev/csmi0,1",
+      "type": "ata",
+      "protocol": "ATA"
+    },
+    {
+      "name": "/dev/csmi0,2",
+      "info_name": "/dev/csmi0,2",
+      "type": "ata",
+      "protocol": "ATA"
+    },
+    {
+      "name": "/dev/csmi0,4",
+      "info_name": "/dev/csmi0,4",
+      "type": "ata",
+      "protocol": "ATA"
+    }
+  ]
+}

+ 548 - 0
DiskInfo/sda.txt

@@ -0,0 +1,548 @@
+{
+  "json_format_version": [
+    1,
+    0
+  ],
+  "smartctl": {
+    "version": [
+      7,
+      0
+    ],
+    "svn_revision": "4883",
+    "platform_info": "x86_64-w64-mingw32-win7-sp1",
+    "build_info": "(sf-7.0-1)",
+    "argv": [
+      "smartctl",
+      "-a",
+      "/dev/sda",
+      "-json"
+    ],
+    "exit_status": 12
+  },
+  "device": {
+    "name": "/dev/sda",
+    "info_name": "/dev/sda",
+    "type": "ata",
+    "protocol": "ATA"
+  },
+  "model_family": "SandForce Driven SSDs",
+  "model_name": "KINGSTON SV300S37A60G",
+  "serial_number": "30353230423632373435",
+  "firmware_version": "580ABBF0",
+  "in_smartctl_database": true,
+  "local_time": {
+    "time_t": 1550709320,
+    "asctime": "Thu Feb 21 08:35:20 2019 CST"
+  },
+  "smart_status": {
+    "passed": false
+  },
+  "ata_smart_data": {
+    "offline_data_collection": {
+      "status": {
+        "value": 5,
+        "string": "was aborted by an interrupting command from host"
+      },
+      "completion_seconds": 1
+    },
+    "self_test": {
+      "status": {
+        "value": 16,
+        "string": "was aborted by the host"
+      },
+      "polling_minutes": {
+        "short": 1,
+        "extended": 48,
+        "conveyance": 2
+      }
+    },
+    "capabilities": {
+      "values": [
+        125,
+        3
+      ],
+      "exec_offline_immediate_supported": true,
+      "offline_is_aborted_upon_new_cmd": true,
+      "offline_surface_scan_supported": true,
+      "self_tests_supported": true,
+      "conveyance_self_test_supported": true,
+      "selective_self_test_supported": true,
+      "attribute_autosave_enabled": true,
+      "error_logging_supported": true,
+      "gp_logging_supported": false
+    }
+  },
+  "ata_smart_attributes": {
+    "revision": 10,
+    "table": [
+      {
+        "id": 1,
+        "name": "Raw_Read_Error_Rate",
+        "value": 120,
+        "worst": 120,
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0/0"
+        }
+      },
+      {
+        "id": 5,
+        "name": "Retired_Block_Count",
+        "value": 100,
+        "worst": 100,
+        "flags": {
+          "value": 51,
+          "string": "PO--CK ",
+          "prefailure": true,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 9,
+        "name": "Power_On_Hours_and_Msec",
+        "value": 99,
+        "worst": 99,
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 13272780384503394,
+          "string": "1634h+51m+30.310s"
+        }
+      },
+      {
+        "id": 12,
+        "name": "Power_Cycle_Count",
+        "value": 100,
+        "worst": 100,
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 939,
+          "string": "939"
+        }
+      },
+      {
+        "id": 171,
+        "name": "Program_Fail_Count",
+        "value": 100,
+        "worst": 100,
+        "flags": {
+          "value": 10,
+          "string": "-O-R-- ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": true,
+          "event_count": false,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 172,
+        "name": "Erase_Fail_Count",
+        "value": 100,
+        "worst": 100,
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 174,
+        "name": "Unexpect_Power_Loss_Ct",
+        "value": 0,
+        "worst": 0,
+        "flags": {
+          "value": 48,
+          "string": "----CK ",
+          "prefailure": false,
+          "updated_online": false,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 177,
+        "name": "Wear_Range_Delta",
+        "value": 0,
+        "worst": 0,
+        "flags": {
+          "value": 0,
+          "string": "------ ",
+          "prefailure": false,
+          "updated_online": false,
+          "performance": false,
+          "error_rate": false,
+          "event_count": false,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 99,
+          "string": "99"
+        }
+      },
+      {
+        "id": 181,
+        "name": "Program_Fail_Count",
+        "value": 100,
+        "worst": 100,
+        "flags": {
+          "value": 10,
+          "string": "-O-R-- ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": true,
+          "event_count": false,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 182,
+        "name": "Erase_Fail_Count",
+        "value": 100,
+        "worst": 100,
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 187,
+        "name": "Reported_Uncorrect",
+        "value": 99,
+        "worst": 99,
+        "flags": {
+          "value": 18,
+          "string": "-O--C- ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 1,
+          "string": "1"
+        }
+      },
+      {
+        "id": 189,
+        "name": "Airflow_Temperature_Cel",
+        "value": 27,
+        "worst": 51,
+        "flags": {
+          "value": 0,
+          "string": "------ ",
+          "prefailure": false,
+          "updated_online": false,
+          "performance": false,
+          "error_rate": false,
+          "event_count": false,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 68722819099,
+          "string": "27 (Min/Max 16/51)"
+        }
+      },
+      {
+        "id": 194,
+        "name": "Temperature_Celsius",
+        "value": 27,
+        "worst": 51,
+        "flags": {
+          "value": 34,
+          "string": "-O---K ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": false,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 68722819099,
+          "string": "27 (Min/Max 16/51)"
+        }
+      },
+      {
+        "id": 195,
+        "name": "ECC_Uncorr_Error_Count",
+        "value": 120,
+        "worst": 120,
+        "flags": {
+          "value": 28,
+          "string": "--SRC- ",
+          "prefailure": false,
+          "updated_online": false,
+          "performance": true,
+          "error_rate": true,
+          "event_count": true,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 0,
+          "string": "0/0"
+        }
+      },
+      {
+        "id": 196,
+        "name": "Reallocated_Event_Count",
+        "value": 100,
+        "worst": 100,
+        "flags": {
+          "value": 51,
+          "string": "PO--CK ",
+          "prefailure": true,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 201,
+        "name": "Unc_Soft_Read_Err_Rate",
+        "value": 120,
+        "worst": 120,
+        "flags": {
+          "value": 28,
+          "string": "--SRC- ",
+          "prefailure": false,
+          "updated_online": false,
+          "performance": true,
+          "error_rate": true,
+          "event_count": true,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 0,
+          "string": "0/0"
+        }
+      },
+      {
+        "id": 204,
+        "name": "Soft_ECC_Correct_Rate",
+        "value": 120,
+        "worst": 120,
+        "flags": {
+          "value": 28,
+          "string": "--SRC- ",
+          "prefailure": false,
+          "updated_online": false,
+          "performance": true,
+          "error_rate": true,
+          "event_count": true,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 0,
+          "string": "0/0"
+        }
+      },
+      {
+        "id": 230,
+        "name": "Life_Curve_Status",
+        "value": 100,
+        "worst": 100,
+        "flags": {
+          "value": 19,
+          "string": "PO--C- ",
+          "prefailure": true,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 100,
+          "string": "100"
+        }
+      },
+      {
+        "id": 231,
+        "name": "SSD_Life_Left",
+        "value": 1,
+        "worst": 1,
+        "flags": {
+          "value": 19,
+          "string": "PO--C- ",
+          "prefailure": true,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 1,
+          "string": "1"
+        }
+      },
+      {
+        "id": 233,
+        "name": "SandForce_Internal",
+        "value": 0,
+        "worst": 0,
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 2967,
+          "string": "2967"
+        }
+      },
+      {
+        "id": 234,
+        "name": "SandForce_Internal",
+        "value": 0,
+        "worst": 0,
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 241,
+        "name": "Lifetime_Writes_GiB",
+        "value": 0,
+        "worst": 0,
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 242,
+        "name": "Lifetime_Reads_GiB",
+        "value": 0,
+        "worst": 0,
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      }
+    ]
+  },
+  "power_on_time": {
+    "hours": 1634,
+    "minutes": 51
+  },
+  "power_cycle_count": 939,
+  "temperature": {
+    "current": 27
+  }
+}

+ 570 - 0
DiskInfo/sda_home.txt

@@ -0,0 +1,570 @@
+{
+  "json_format_version": [
+    1,
+    0
+  ],
+  "smartctl": {
+    "version": [
+      7,
+      0
+    ],
+    "svn_revision": "4883",
+    "platform_info": "x86_64-w64-mingw32-win7-sp1",
+    "build_info": "(sf-7.0-1)",
+    "argv": [
+      "smartctl",
+      "-i",
+      "/dev/sda",
+      "-j",
+      "-A"
+    ],
+    "exit_status": 0
+  },
+  "device": {
+    "name": "/dev/sda",
+    "info_name": "/dev/sda",
+    "type": "ata",
+    "protocol": "ATA"
+  },
+  "model_family": "SandForce Driven SSDs",
+  "model_name": "ADATA SP900",
+  "serial_number": "7F2620004631",
+  "wwn": {
+    "naa": 5,
+    "oui": 7371800,
+    "id": 1002634
+  },
+  "firmware_version": "5.8.2",
+  "user_capacity": {
+    "blocks": 500118192,
+    "bytes": 256060514304
+  },
+  "logical_block_size": 512,
+  "physical_block_size": 512,
+  "rotation_rate": 0,
+  "in_smartctl_database": true,
+  "ata_version": {
+    "string": "ATA8-ACS, ACS-2 T13/2015-D revision 3",
+    "major_value": 508,
+    "minor_value": 272
+  },
+  "sata_version": {
+    "string": "SATA 3.0",
+    "value": 63
+  },
+  "interface_speed": {
+    "max": {
+      "sata_value": 14,
+      "string": "6.0 Gb/s",
+      "units_per_second": 60,
+      "bits_per_unit": 100000000
+    },
+    "current": {
+      "sata_value": 3,
+      "string": "6.0 Gb/s",
+      "units_per_second": 60,
+      "bits_per_unit": 100000000
+    }
+  },
+  "local_time": {
+    "time_t": 1549797551,
+    "asctime": "Sun Feb 10 19:19:11 2019 CST"
+  },
+  "ata_smart_attributes": {
+    "revision": 10,
+    "table": [
+      {
+        "id": 1,
+        "name": "Raw_Read_Error_Rate",
+        "value": 95,
+        "worst": 95,
+        "thresh": 50,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 8597147203,
+          "string": "2/7212611"
+        }
+      },
+      {
+        "id": 5,
+        "name": "Retired_Block_Count",
+        "value": 95,
+        "worst": 95,
+        "thresh": 3,
+        "when_failed": "",
+        "flags": {
+          "value": 51,
+          "string": "PO--CK ",
+          "prefailure": true,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 24,
+          "string": "24"
+        }
+      },
+      {
+        "id": 9,
+        "name": "Power_On_Hours_and_Msec",
+        "value": 90,
+        "worst": 90,
+        "thresh": 0,
+        "when_failed": "1",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 3796879938692401,
+          "string": "9521h+14m+44.030s"
+        }
+      },
+      {
+        "id": 12,
+        "name": "Power_Cycle_Count",
+        "value": 98,
+        "worst": 98,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 2072,
+          "string": "2072"
+        }
+      },
+      {
+        "id": 171,
+        "name": "Program_Fail_Count",
+        "value": 100,
+        "worst": 100,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 10,
+          "string": "-O-R-- ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": true,
+          "event_count": false,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 172,
+        "name": "Erase_Fail_Count",
+        "value": 100,
+        "worst": 100,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 174,
+        "name": "Unexpect_Power_Loss_Ct",
+        "value": 0,
+        "worst": 0,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 48,
+          "string": "----CK ",
+          "prefailure": false,
+          "updated_online": false,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 249,
+          "string": "249"
+        }
+      },
+      {
+        "id": 177,
+        "name": "Wear_Range_Delta",
+        "value": 0,
+        "worst": 0,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 0,
+          "string": "------ ",
+          "prefailure": false,
+          "updated_online": false,
+          "performance": false,
+          "error_rate": false,
+          "event_count": false,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 99,
+          "string": "99"
+        }
+      },
+      {
+        "id": 181,
+        "name": "Program_Fail_Count",
+        "value": 100,
+        "worst": 100,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 10,
+          "string": "-O-R-- ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": true,
+          "event_count": false,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 182,
+        "name": "Erase_Fail_Count",
+        "value": 100,
+        "worst": 100,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 187,
+        "name": "Reported_Uncorrect",
+        "value": 100,
+        "worst": 100,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 18,
+          "string": "-O--C- ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 194,
+        "name": "Temperature_Celsius",
+        "value": 36,
+        "worst": 57,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 34,
+          "string": "-O---K ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": false,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 55838310436,
+          "string": "36 (Min/Max 13/57)"
+        }
+      },
+      {
+        "id": 195,
+        "name": "ECC_Uncorr_Error_Count",
+        "value": 100,
+        "worst": 100,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 28,
+          "string": "--SRC- ",
+          "prefailure": false,
+          "updated_online": false,
+          "performance": true,
+          "error_rate": true,
+          "event_count": true,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 8597147203,
+          "string": "2/7212611"
+        }
+      },
+      {
+        "id": 196,
+        "name": "Reallocated_Event_Count",
+        "value": 95,
+        "worst": 95,
+        "thresh": 3,
+        "when_failed": "",
+        "flags": {
+          "value": 51,
+          "string": "PO--CK ",
+          "prefailure": true,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 24,
+          "string": "24"
+        }
+      },
+      {
+        "id": 201,
+        "name": "Unc_Soft_Read_Err_Rate",
+        "value": 100,
+        "worst": 100,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 28,
+          "string": "--SRC- ",
+          "prefailure": false,
+          "updated_online": false,
+          "performance": true,
+          "error_rate": true,
+          "event_count": true,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 8597147203,
+          "string": "2/7212611"
+        }
+      },
+      {
+        "id": 204,
+        "name": "Soft_ECC_Correct_Rate",
+        "value": 100,
+        "worst": 100,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 28,
+          "string": "--SRC- ",
+          "prefailure": false,
+          "updated_online": false,
+          "performance": true,
+          "error_rate": true,
+          "event_count": true,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 8597147203,
+          "string": "2/7212611"
+        }
+      },
+      {
+        "id": 230,
+        "name": "Life_Curve_Status",
+        "value": 100,
+        "worst": 100,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 19,
+          "string": "PO--C- ",
+          "prefailure": true,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 100,
+          "string": "100"
+        }
+      },
+      {
+        "id": 231,
+        "name": "SSD_Life_Left",
+        "value": 93,
+        "worst": 93,
+        "thresh": 10,
+        "when_failed": "",
+        "flags": {
+          "value": 19,
+          "string": "PO--C- ",
+          "prefailure": true,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 34359738369,
+          "string": "34359738369"
+        }
+      },
+      {
+        "id": 233,
+        "name": "SandForce_Internal",
+        "value": 0,
+        "worst": 0,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 15005,
+          "string": "15005"
+        }
+      },
+      {
+        "id": 234,
+        "name": "SandForce_Internal",
+        "value": 0,
+        "worst": 0,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 15251,
+          "string": "15251"
+        }
+      },
+      {
+        "id": 241,
+        "name": "Lifetime_Writes_GiB",
+        "value": 0,
+        "worst": 0,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 15251,
+          "string": "15251"
+        }
+      },
+      {
+        "id": 242,
+        "name": "Lifetime_Reads_GiB",
+        "value": 0,
+        "worst": 0,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 18767,
+          "string": "18767"
+        }
+      }
+    ]
+  },
+  "power_on_time": {
+    "hours": 9521,
+    "minutes": 14
+  },
+  "power_cycle_count": 2072,
+  "temperature": {
+    "current": 36
+  }
+}

+ 459 - 0
DiskInfo/sdb.txt

@@ -0,0 +1,459 @@
+{
+  "json_format_version": [
+    1,
+    0
+  ],
+  "smartctl": {
+    "version": [
+      7,
+      0
+    ],
+    "svn_revision": "4883",
+    "platform_info": "x86_64-w64-mingw32-win7-sp1",
+    "build_info": "(sf-7.0-1)",
+    "argv": [
+      "smartctl",
+      "-i",
+      "/dev/sdb",
+      "-j",
+      "-A"
+    ],
+    "exit_status": 0
+  },
+  "device": {
+    "name": "/dev/sdb",
+    "info_name": "/dev/sdb",
+    "type": "ata",
+    "protocol": "ATA"
+  },
+  "model_family": "Western Digital Red",
+  "model_name": "WDC WD20EFRX-68EUZN0",
+  "serial_number": "WD-WCC4M7PLT66J",
+  "wwn": {
+    "naa": 5,
+    "oui": 5358,
+    "id": 10216012843
+  },
+  "firmware_version": "82.00A82",
+  "user_capacity": {
+    "blocks": 3907029168,
+    "bytes": 2000398934016
+  },
+  "logical_block_size": 512,
+  "physical_block_size": 4096,
+  "rotation_rate": 5400,
+  "in_smartctl_database": true,
+  "ata_version": {
+    "string": "ACS-2 (minor revision not indicated)",
+    "major_value": 1022,
+    "minor_value": 0
+  },
+  "sata_version": {
+    "string": "SATA 3.0",
+    "value": 62
+  },
+  "interface_speed": {
+    "max": {
+      "sata_value": 14,
+      "string": "6.0 Gb/s",
+      "units_per_second": 60,
+      "bits_per_unit": 100000000
+    },
+    "current": {
+      "sata_value": 3,
+      "string": "6.0 Gb/s",
+      "units_per_second": 60,
+      "bits_per_unit": 100000000
+    }
+  },
+  "local_time": {
+    "time_t": 1549797141,
+    "asctime": "Sun Feb 10 19:12:21 2019 CST"
+  },
+  "ata_smart_attributes": {
+    "revision": 16,
+    "table": [
+      {
+        "id": 1,
+        "name": "Raw_Read_Error_Rate",
+        "value": 200,
+        "worst": 200,
+        "thresh": 51,
+        "when_failed": "",
+        "flags": {
+          "value": 47,
+          "string": "POSR-K ",
+          "prefailure": true,
+          "updated_online": true,
+          "performance": true,
+          "error_rate": true,
+          "event_count": false,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 3,
+        "name": "Spin_Up_Time",
+        "value": 174,
+        "worst": 165,
+        "thresh": 21,
+        "when_failed": "",
+        "flags": {
+          "value": 39,
+          "string": "POS--K ",
+          "prefailure": true,
+          "updated_online": true,
+          "performance": true,
+          "error_rate": false,
+          "event_count": false,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 4300,
+          "string": "4300"
+        }
+      },
+      {
+        "id": 4,
+        "name": "Start_Stop_Count",
+        "value": 96,
+        "worst": 96,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 4654,
+          "string": "4654"
+        }
+      },
+      {
+        "id": 5,
+        "name": "Reallocated_Sector_Ct",
+        "value": 200,
+        "worst": 200,
+        "thresh": 140,
+        "when_failed": "",
+        "flags": {
+          "value": 51,
+          "string": "PO--CK ",
+          "prefailure": true,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 7,
+        "name": "Seek_Error_Rate",
+        "value": 200,
+        "worst": 200,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 46,
+          "string": "-OSR-K ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": true,
+          "error_rate": true,
+          "event_count": false,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 9,
+        "name": "Power_On_Hours",
+        "value": 89,
+        "worst": 89,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 8198,
+          "string": "8198"
+        }
+      },
+      {
+        "id": 10,
+        "name": "Spin_Retry_Count",
+        "value": 100,
+        "worst": 100,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 11,
+        "name": "Calibration_Retry_Count",
+        "value": 100,
+        "worst": 100,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 12,
+        "name": "Power_Cycle_Count",
+        "value": 98,
+        "worst": 98,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 2679,
+          "string": "2679"
+        }
+      },
+      {
+        "id": 192,
+        "name": "Power-Off_Retract_Count",
+        "value": 200,
+        "worst": 200,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 211,
+          "string": "211"
+        }
+      },
+      {
+        "id": 193,
+        "name": "Load_Cycle_Count",
+        "value": 195,
+        "worst": 195,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 16219,
+          "string": "16219"
+        }
+      },
+      {
+        "id": 194,
+        "name": "Temperature_Celsius",
+        "value": 112,
+        "worst": 96,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 34,
+          "string": "-O---K ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": false,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 35,
+          "string": "35"
+        }
+      },
+      {
+        "id": 196,
+        "name": "Reallocated_Event_Count",
+        "value": 200,
+        "worst": 200,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 197,
+        "name": "Current_Pending_Sector",
+        "value": 200,
+        "worst": 200,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 198,
+        "name": "Offline_Uncorrectable",
+        "value": 100,
+        "worst": 253,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 48,
+          "string": "----CK ",
+          "prefailure": false,
+          "updated_online": false,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 199,
+        "name": "UDMA_CRC_Error_Count",
+        "value": 200,
+        "worst": 200,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 200,
+        "name": "Multi_Zone_Error_Rate",
+        "value": 100,
+        "worst": 253,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 8,
+          "string": "---R-- ",
+          "prefailure": false,
+          "updated_online": false,
+          "performance": false,
+          "error_rate": true,
+          "event_count": false,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      }
+    ]
+  },
+  "power_on_time": {
+    "hours": 8198
+  },
+  "power_cycle_count": 2679,
+  "temperature": {
+    "current": 35
+  }
+}

+ 617 - 0
DiskInfo/sdc.txt

@@ -0,0 +1,617 @@
+{
+  "json_format_version": [
+    1,
+    0
+  ],
+  "smartctl": {
+    "version": [
+      7,
+      0
+    ],
+    "svn_revision": "4883",
+    "platform_info": "x86_64-w64-mingw32-win7-sp1",
+    "build_info": "(sf-7.0-1)",
+    "argv": [
+      "smartctl",
+      "-i",
+      "/dev/sdc",
+      "-j",
+      "-A"
+    ],
+    "exit_status": 0
+  },
+  "device": {
+    "name": "/dev/sdc",
+    "info_name": "/dev/sdc",
+    "type": "ata",
+    "protocol": "ATA"
+  },
+  "model_family": "Seagate Barracuda 7200.14 (AF)",
+  "model_name": "ST2000DM001-1CH164",
+  "serial_number": "Z1E99HMC",
+  "wwn": {
+    "naa": 5,
+    "oui": 3152,
+    "id": 2061669450
+  },
+  "firmware_version": "CC27",
+  "user_capacity": {
+    "blocks": 3907029168,
+    "bytes": 2000398934016
+  },
+  "logical_block_size": 512,
+  "physical_block_size": 4096,
+  "rotation_rate": 7200,
+  "form_factor": {
+    "ata_value": 2,
+    "name": "3.5 inches"
+  },
+  "in_smartctl_database": true,
+  "ata_version": {
+    "string": "ACS-2, ACS-3 T13/2161-D revision 3b",
+    "major_value": 1008,
+    "minor_value": 31
+  },
+  "sata_version": {
+    "string": "SATA 3.1",
+    "value": 126
+  },
+  "interface_speed": {
+    "max": {
+      "sata_value": 14,
+      "string": "6.0 Gb/s",
+      "units_per_second": 60,
+      "bits_per_unit": 100000000
+    },
+    "current": {
+      "sata_value": 3,
+      "string": "6.0 Gb/s",
+      "units_per_second": 60,
+      "bits_per_unit": 100000000
+    }
+  },
+  "local_time": {
+    "time_t": 1549797296,
+    "asctime": "Sun Feb 10 19:14:56 2019 CST"
+  },
+  "ata_smart_attributes": {
+    "revision": 10,
+    "table": [
+      {
+        "id": 1,
+        "name": "Raw_Read_Error_Rate",
+        "value": 115,
+        "worst": 99,
+        "thresh": 6,
+        "when_failed": "",
+        "flags": {
+          "value": 15,
+          "string": "POSR-- ",
+          "prefailure": true,
+          "updated_online": true,
+          "performance": true,
+          "error_rate": true,
+          "event_count": false,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 86025176,
+          "string": "86025176"
+        }
+      },
+      {
+        "id": 3,
+        "name": "Spin_Up_Time",
+        "value": 96,
+        "worst": 96,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 3,
+          "string": "PO---- ",
+          "prefailure": true,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": false,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 4,
+        "name": "Start_Stop_Count",
+        "value": 96,
+        "worst": 96,
+        "thresh": 20,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 4370,
+          "string": "4370"
+        }
+      },
+      {
+        "id": 5,
+        "name": "Reallocated_Sector_Ct",
+        "value": 100,
+        "worst": 100,
+        "thresh": 10,
+        "when_failed": "",
+        "flags": {
+          "value": 51,
+          "string": "PO--CK ",
+          "prefailure": true,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 7,
+        "name": "Seek_Error_Rate",
+        "value": 80,
+        "worst": 60,
+        "thresh": 30,
+        "when_failed": "",
+        "flags": {
+          "value": 15,
+          "string": "POSR-- ",
+          "prefailure": true,
+          "updated_online": true,
+          "performance": true,
+          "error_rate": true,
+          "event_count": false,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 110215814,
+          "string": "110215814"
+        }
+      },
+      {
+        "id": 9,
+        "name": "Power_On_Hours",
+        "value": 88,
+        "worst": 88,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 11192,
+          "string": "11192"
+        }
+      },
+      {
+        "id": 10,
+        "name": "Spin_Retry_Count",
+        "value": 100,
+        "worst": 100,
+        "thresh": 97,
+        "when_failed": "",
+        "flags": {
+          "value": 19,
+          "string": "PO--C- ",
+          "prefailure": true,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 12,
+        "name": "Power_Cycle_Count",
+        "value": 98,
+        "worst": 98,
+        "thresh": 20,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 2669,
+          "string": "2669"
+        }
+      },
+      {
+        "id": 183,
+        "name": "Runtime_Bad_Block",
+        "value": 100,
+        "worst": 100,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 184,
+        "name": "End-to-End_Error",
+        "value": 100,
+        "worst": 100,
+        "thresh": 99,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 187,
+        "name": "Reported_Uncorrect",
+        "value": 100,
+        "worst": 100,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 188,
+        "name": "Command_Timeout",
+        "value": 100,
+        "worst": 100,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0 0 0"
+        }
+      },
+      {
+        "id": 189,
+        "name": "High_Fly_Writes",
+        "value": 99,
+        "worst": 99,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 58,
+          "string": "-O-RCK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": true,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 1,
+          "string": "1"
+        }
+      },
+      {
+        "id": 190,
+        "name": "Airflow_Temperature_Cel",
+        "value": 64,
+        "worst": 49,
+        "thresh": 45,
+        "when_failed": "",
+        "flags": {
+          "value": 34,
+          "string": "-O---K ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": false,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 622985252,
+          "string": "36 (Min/Max 34/37)"
+        }
+      },
+      {
+        "id": 191,
+        "name": "G-Sense_Error_Rate",
+        "value": 100,
+        "worst": 100,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 192,
+        "name": "Power-Off_Retract_Count",
+        "value": 100,
+        "worst": 100,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 246,
+          "string": "246"
+        }
+      },
+      {
+        "id": 193,
+        "name": "Load_Cycle_Count",
+        "value": 50,
+        "worst": 50,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 50,
+          "string": "-O--CK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 101342,
+          "string": "101342"
+        }
+      },
+      {
+        "id": 194,
+        "name": "Temperature_Celsius",
+        "value": 36,
+        "worst": 51,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 34,
+          "string": "-O---K ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": false,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 42949672996,
+          "string": "36 (0 10 0 0 0)"
+        }
+      },
+      {
+        "id": 197,
+        "name": "Current_Pending_Sector",
+        "value": 100,
+        "worst": 100,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 18,
+          "string": "-O--C- ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 198,
+        "name": "Offline_Uncorrectable",
+        "value": 100,
+        "worst": 100,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 16,
+          "string": "----C- ",
+          "prefailure": false,
+          "updated_online": false,
+          "performance": false,
+          "error_rate": false,
+          "event_count": true,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 199,
+        "name": "UDMA_CRC_Error_Count",
+        "value": 200,
+        "worst": 200,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 62,
+          "string": "-OSRCK ",
+          "prefailure": false,
+          "updated_online": true,
+          "performance": true,
+          "error_rate": true,
+          "event_count": true,
+          "auto_keep": true
+        },
+        "raw": {
+          "value": 0,
+          "string": "0"
+        }
+      },
+      {
+        "id": 240,
+        "name": "Head_Flying_Hours",
+        "value": 100,
+        "worst": 253,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 0,
+          "string": "------ ",
+          "prefailure": false,
+          "updated_online": false,
+          "performance": false,
+          "error_rate": false,
+          "event_count": false,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 12602821320906682,
+          "string": "6074h+48m+54.323s"
+        }
+      },
+      {
+        "id": 241,
+        "name": "Total_LBAs_Written",
+        "value": 100,
+        "worst": 253,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 0,
+          "string": "------ ",
+          "prefailure": false,
+          "updated_online": false,
+          "performance": false,
+          "error_rate": false,
+          "event_count": false,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 36524852004,
+          "string": "36524852004"
+        }
+      },
+      {
+        "id": 242,
+        "name": "Total_LBAs_Read",
+        "value": 100,
+        "worst": 253,
+        "thresh": 0,
+        "when_failed": "",
+        "flags": {
+          "value": 0,
+          "string": "------ ",
+          "prefailure": false,
+          "updated_online": false,
+          "performance": false,
+          "error_rate": false,
+          "event_count": false,
+          "auto_keep": false
+        },
+        "raw": {
+          "value": 51255764039,
+          "string": "51255764039"
+        }
+      }
+    ]
+  },
+  "power_on_time": {
+    "hours": 11192
+  },
+  "power_cycle_count": 2669,
+  "temperature": {
+    "current": 36
+  }
+}

BIN=BIN
DiskInfo/smartctl_armv6


BIN=BIN
DiskInfo/smartctl_i386


+ 0 - 2
README.md

@@ -1,3 +1 @@
 # DiskInfo
-
-DKLMEAA!