Skip to content

Instantly share code, notes, and snippets.

@kohsuke
Created September 11, 2012 18:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kohsuke/3700505 to your computer and use it in GitHub Desktop.
Save kohsuke/3700505 to your computer and use it in GitHub Desktop.
smartmontools
kohsuke@cabbage:~$ date; sudo smartctl -a /dev/sda
Tue Sep 11 18:23:11 UTC 2012
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
Device: ADAPTEC RAID-5 Version: 3B05
Device type: disk
Transport protocol: Parallel SCSI (SPI-4)
Local Time is: Tue Sep 11 18:23:11 2012 UTC
Device supports SMART and is Enabled
Temperature Warning Enabled
SMART Health Status: OK
Current Drive Temperature: 31 C
Current start stop count: 291 times
Error counter log:
Errors Corrected by Total Correction Gigabytes Total
ECC rereads/ errors algorithm processed uncorrected
fast | delayed rewrites corrected invocations [10^9 bytes] errors
read: 3799 0 0 0 0 0.177 0
write: 0 0 0 0 0 0.046 0
Non-medium error count: 4
Last n error events log page
No self-tests have been logged
Long (extended) Self Test duration: 5760 seconds [96.0 minutes]
kohsuke@cabbage:~$ sudo e2fsck -n /dev/sda2
e2fsck 1.41.11 (14-Mar-2010)
Warning! /dev/sda2 is mounted.
Warning: skipping journal recovery because doing a read-only filesystem check.
/dev/sda2 contains a file system with errors, check forced.
Pass 1: Checking inodes, blocks, and sizes
Deleted inode 393985 has zero dtime. Fix? no
Inodes that were part of a corrupted orphan linked list found. Fix? no
Inode 394078 was part of the orphaned inode list. IGNORED.
Inode 394079 was part of the orphaned inode list. IGNORED.
Inode 394080 was part of the orphaned inode list. IGNORED.
Inode 394081 was part of the orphaned inode list. IGNORED.
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Free blocks count wrong (3690865, counted=3689113).
Fix? no
Inode bitmap differences: -393985 -(394078--394081)
Fix? no
Free inodes count wrong (1132455, counted=1132095).
Fix? no
/dev/sda2: ********** WARNING: Filesystem still has errors **********
/dev/sda2: 90537/1222992 files (0.6% non-contiguous), 1191567/4882432 blocks
kohsuke@cabbage:~$ date; sudo smartctl -a /dev/sda
Tue Sep 11 18:17:55 UTC 2012
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
Device: ADAPTEC RAID-5 Version: 3B05
Device type: disk
Transport protocol: Parallel SCSI (SPI-4)
Local Time is: Tue Sep 11 18:17:55 2012 UTC
Device supports SMART and is Enabled
Temperature Warning Enabled
SMART Health Status: OK
Current Drive Temperature: 30 C
Current start stop count: 291 times
Error counter log:
Errors Corrected by Total Correction Gigabytes Total
ECC rereads/ errors algorithm processed uncorrected
fast | delayed rewrites corrected invocations [10^9 bytes] errors
read: 3622 0 0 0 0 0.150 0
write: 0 0 0 0 0 0.045 0
Non-medium error count: 4
Last n error events log page
No self-tests have been logged
Long (extended) Self Test duration: 5760 seconds [96.0 minutes]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment