Guest User

bbbbbbb

a guest
Jul 18th, 2019
62
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. tweener@tweener:~$ sudo smartctl --all /dev/sda df -h
  2. smartctl 6.6 2016-05-31 r4324 [x86_64-linux-4.18.0-24-generic] (local build)
  3. Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
  4.  
  5. Usage: smartctl [options] device
  6.  
  7. ============================================ SHOW INFORMATION OPTIONS =====
  8.  
  9. -h, --help, --usage
  10. Display this help and exit
  11.  
  12. -V, --version, --copyright, --license
  13. Print license, copyright, and version information and exit
  14.  
  15. -i, --info
  16. Show identity information for device
  17.  
  18. --identify[=[w][nvb]]
  19. Show words and bits from IDENTIFY DEVICE data (ATA)
  20.  
  21. -g NAME, --get=NAME
  22. Get device setting: all, aam, apm, lookahead, security, wcache, rcache, wcreorder
  23.  
  24. -a, --all
  25. Show all SMART information for device
  26.  
  27. -x, --xall
  28. Show all information for device
  29.  
  30. --scan
  31. Scan for devices
  32.  
  33. --scan-open
  34. Scan for devices and try to open each device
  35.  
  36. ================================== SMARTCTL RUN-TIME BEHAVIOR OPTIONS =====
  37.  
  38. -q TYPE, --quietmode=TYPE (ATA)
  39. Set smartctl quiet mode to one of: errorsonly, silent, noserial
  40.  
  41. -d TYPE, --device=TYPE
  42. Specify device type to one of: ata, scsi, nvme[,NSID], sat[,auto][,N][+TYPE], usbcypress[,X], usbjmicron[,p][,x][,N], usbprolific, usbsunplus, marvell, areca,N/E, 3ware,N, hpt,L/M/N, megaraid,N, aacraid,H,L,ID, cciss,N, auto, test
  43.  
  44. -T TYPE, --tolerance=TYPE (ATA)
  45. Tolerance: normal, conservative, permissive, verypermissive
  46.  
  47. -b TYPE, --badsum=TYPE (ATA)
  48. Set action on bad checksum to one of: warn, exit, ignore
  49.  
  50. -r TYPE, --report=TYPE
  51. Report transactions (see man page)
  52.  
  53. -n MODE, --nocheck=MODE (ATA)
  54. No check if: never, sleep, standby, idle (see man page)
  55.  
  56. ============================== DEVICE FEATURE ENABLE/DISABLE COMMANDS =====
  57.  
  58. -s VALUE, --smart=VALUE
  59. Enable/disable SMART on device (on/off)
  60.  
  61. -o VALUE, --offlineauto=VALUE (ATA)
  62. Enable/disable automatic offline testing on device (on/off)
  63.  
  64. -S VALUE, --saveauto=VALUE (ATA)
  65. Enable/disable Attribute autosave on device (on/off)
  66.  
  67. -s NAME[,VALUE], --set=NAME[,VALUE]
  68. Enable/disable/change device setting: aam,[N|off], apm,[N|off],
  69. lookahead,[on|off], security-freeze, standby,[N|off|now],
  70. wcache,[on|off], rcache,[on|off], wcreorder,[on|off]
  71.  
  72. ======================================= READ AND DISPLAY DATA OPTIONS =====
  73.  
  74. -H, --health
  75. Show device SMART health status
  76.  
  77. -c, --capabilities (ATA, NVMe)
  78. Show device SMART capabilities
  79.  
  80. -A, --attributes
  81. Show device SMART vendor-specific Attributes and values
  82.  
  83. -f FORMAT, --format=FORMAT (ATA)
  84. Set output format for attributes: old, brief, hex[,id|val]
  85.  
  86. -l TYPE, --log=TYPE
  87. Show device log. TYPE: error, selftest, selective, directory[,g|s],
  88. xerror[,N][,error], xselftest[,N][,selftest],
  89. background, sasphy[,reset], sataphy[,reset],
  90. scttemp[sts,hist], scttempint,N[,p],
  91. scterc[,N,M], devstat[,N], ssd,
  92. gplog,N[,RANGE], smartlog,N[,RANGE],
  93. nvmelog,N,SIZE
  94.  
  95. -v N,OPTION , --vendorattribute=N,OPTION (ATA)
  96. Set display OPTION for vendor Attribute N (see man page)
  97.  
  98. -F TYPE, --firmwarebug=TYPE (ATA)
  99. Use firmware bug workaround:
  100. none, nologdir, samsung, samsung2, samsung3, xerrorlba, swapid
  101.  
  102. -P TYPE, --presets=TYPE (ATA)
  103. Drive-specific presets: use, ignore, show, showall
  104.  
  105. -B [+]FILE, --drivedb=[+]FILE (ATA)
  106. Read and replace [add] drive database from FILE
  107. [default is +/etc/smart_drivedb.h
  108. and then /var/lib/smartmontools/drivedb/drivedb.h]
  109.  
  110. ============================================ DEVICE SELF-TEST OPTIONS =====
  111.  
  112. -t TEST, --test=TEST
  113. Run test. TEST: offline, short, long, conveyance, force, vendor,N,
  114. select,M-N, pending,N, afterselect,[on|off]
  115.  
  116. -C, --captive
  117. Do test in captive mode (along with -t)
  118.  
  119. -X, --abort
  120. Abort any non-captive test on device
  121.  
  122. =================================================== SMARTCTL EXAMPLES =====
  123.  
  124. smartctl --all /dev/sda (Prints all SMART information)
  125.  
  126. smartctl --smart=on --offlineauto=on --saveauto=on /dev/sda
  127. (Enables SMART on first disk)
  128.  
  129. smartctl --test=long /dev/sda (Executes extended disk self-test)
  130.  
  131. smartctl --attributes --log=selftest --quietmode=errorsonly /dev/sda
  132. (Prints Self-Test & Attribute errors)
  133. smartctl --all --device=3ware,2 /dev/sda
  134. smartctl --all --device=3ware,2 /dev/twe0
  135. smartctl --all --device=3ware,2 /dev/twa0
  136. smartctl --all --device=3ware,2 /dev/twl0
  137. (Prints all SMART info for 3rd ATA disk on 3ware RAID controller)
  138. smartctl --all --device=hpt,1/1/3 /dev/sda
  139. (Prints all SMART info for the SATA disk attached to the 3rd PMPort
  140. of the 1st channel on the 1st HighPoint RAID controller)
  141. smartctl --all --device=areca,3/1 /dev/sg2
  142. (Prints all SMART info for 3rd ATA disk of the 1st enclosure
  143. on Areca RAID controller)
RAW Paste Data