Which command would you use to view the SMART error log for a device such as /dev/sda?

Prepare for the Google Data Center Technician Exam. Use our interactive quiz featuring flashcards and multiple choice questions with hints and explanations. Get exam-ready today!

Multiple Choice

Which command would you use to view the SMART error log for a device such as /dev/sda?

Explanation:
To view the SMART error log, use the log option that targets errors specifically. The SMART error log records recent I/O errors the drive has reported, along with details that can help diagnose issues. For /dev/sda, run: sudo smartctl -l error /dev/sda. This directly prints the error log. The other options provide different information: -a shows all SMART data (broader than just errors), -t long starts a long self-test (not a log), and -l selftest shows the self-test log rather than the error log.

To view the SMART error log, use the log option that targets errors specifically. The SMART error log records recent I/O errors the drive has reported, along with details that can help diagnose issues. For /dev/sda, run: sudo smartctl -l error /dev/sda. This directly prints the error log. The other options provide different information: -a shows all SMART data (broader than just errors), -t long starts a long self-test (not a log), and -l selftest shows the self-test log rather than the error log.

Subscribe

Get the latest from Passetra

You can unsubscribe at any time. Read our privacy policy