Size: a a a

2021 July 07

AD

Anton Dragun in Linux Чат
минуту
источник

AD

Anton Dragun in Linux Чат
anton@anton-N56VJ:~$ smartctl -h
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.8.0-59-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

Usage: smartctl [options] device

============================================ SHOW INFORMATION OPTIONS =====

 -h, --help, --usage
        Display this help and exit

 -V, --version, --copyright, --license
        Print license, copyright, and version information and exit

 -i, --info
        Show identity information for device

 --identify[=[w][nvb]]
        Show words and bits from IDENTIFY DEVICE data                (ATA)

 -g NAME, --get=NAME
       Get device setting: all, aam, apm, dsn, lookahead, security,
       wcache, rcache, wcreorder, wcache-sct

 -a, --all
        Show all SMART information for device

 -x, --xall
        Show all information for device

 --scan
        Scan for devices

 --scan-open
        Scan for devices and try to open each device

================================== SMARTCTL RUN-TIME BEHAVIOR OPTIONS =====

 -j, --json[=[cgiosuv]]
        Print output in JSON format

 -q TYPE, --quietmode=TYPE                                           (ATA)
        Set smartctl quiet mode to one of: errorsonly, silent, noserial

 -d TYPE, --device=TYPE
        Specify device type to one of:
        ata, scsi[+TYPE], nvme[,NSID], sat[,auto][,N][+TYPE], usbcypress[,X], usbjmicron[,p][,x][,N], usbprolific, usbsunplus, sntjmicron[,NSID], intelliprop,N[+TYPE], jmb39x,N[,sLBA][,force][+TYPE], marvell, areca,N/E, 3ware,N, hpt,L/M/N, megaraid,N, aacraid,H,L,ID, cciss,N, auto, test

 -T TYPE, --tolerance=TYPE                                           (ATA)
        Tolerance: normal, conservative, permissive, verypermissive

 -b TYPE, --badsum=TYPE                                              (ATA)
        Set action on bad checksum to one of: warn, exit, ignore

 -r TYPE, --report=TYPE
        Report transactions (see man page)

 -n MODE[,STATUS], --nocheck=MODE[,STATUS]                           (ATA)
        No check if: never, sleep, standby, idle (see man page)

============================== DEVICE FEATURE ENABLE/DISABLE COMMANDS =====

 -s VALUE, --smart=VALUE
       Enable/disable SMART on device (on/off)

 -o VALUE, --offlineauto=VALUE                                       (ATA)
       Enable/disable automatic offline testing on device (on/off)

 -S VALUE, --saveauto=VALUE                                          (ATA)
       Enable/disable Attribute autosave on device (on/off)

 -s NAME[,VALUE], --set=NAME[,VALUE]
       Enable/disable/change device setting: aam,[N|off], apm,[N|off],
       dsn,[on|off], lookahead,[on|off], security-freeze,
       standby,[N|off|now], wcache,[on|off], rcache,[on|off],
       wcreorder,[on|off[,p]], wcache-sct,[ata|on|off[,p]]

======================================= READ AND DISPLAY DATA OPTIONS =====

 -H, --health
       Show device SMART health status

 -c, --capabilities                                            (ATA, NVMe)
       Show device SMART capabilities

 -A, --attributes
       Show device SMART vendor-specific Attributes and values

 -f FORMAT, --format=FORMAT                                          (ATA)
       Set output format for attributes: old, brief, hex[,id|val]

 -l TYPE, --log=TYPE
       Show device log. TYPE: error, selftest, selective, directory[,g|s],
       xerror[,N][,error], xselftest[,N][,selftest], background,
       sasphy[,reset], sataphy[,reset], scttemp[sts,hist],
       scttempint,N[,p], scterc[,N,M], devstat[,N], defects[,N], ssd,
       gplog,N[,RANGE], smartlog,N[,RANGE], nvmelog,N,SIZE

 -v N,OPTION , --vendorattribute=N,OPTION                            (ATA)
       Set display OPTION for vendor Attribute N (see man page)

 -F TYPE, --firmwarebug=TYPE                                         (ATA)
       Use firmware bug workaround:
       none, nologdir, samsung, samsung2, samsung3, xerrorlba, swapid
источник

AD

Anton Dragun in Linux Чат
-P TYPE, --presets=TYPE                                             (ATA)
       Drive-specific presets: use, ignore, show, showall

 -B [+]FILE, --drivedb=[+]FILE                                       (ATA)
       Read and replace [add] drive database from FILE
       [default is +/etc/smart_drivedb.h
        and then    /var/lib/smartmontools/drivedb/drivedb.h]

============================================ DEVICE SELF-TEST OPTIONS =====

 -t TEST, --test=TEST
       Run test. TEST: offline, short, long, conveyance, force, vendor,N,
                       select,M-N, pending,N, afterselect,[on|off]

 -C, --captive
       Do test in captive mode (along with -t)

 -X, --abort
       Abort any non-captive test on device

=================================================== SMARTCTL EXAMPLES =====

 smartctl --all /dev/sda                    (Prints all SMART information)

 smartctl --smart=on --offlineauto=on --saveauto=on /dev/sda
                                             (Enables SMART on first disk)

 smartctl --test=long /dev/sda          (Executes extended disk self-test)

 smartctl --attributes --log=selftest --quietmode=errorsonly /dev/sda
                                     (Prints Self-Test & Attribute errors)
 smartctl --all --device=3ware,2 /dev/sda
 smartctl --all --device=3ware,2 /dev/twe0
 smartctl --all --device=3ware,2 /dev/twa0
 smartctl --all --device=3ware,2 /dev/twl0
         (Prints all SMART info for 3rd ATA disk on 3ware RAID controller)
 smartctl --all --device=hpt,1/1/3 /dev/sda
         (Prints all SMART info for the SATA disk attached to the 3rd PMPort
          of the 1st channel on the 1st HighPoint RAID controller)
 smartctl --all --device=areca,3/1 /dev/sg2
         (Prints all SMART info for 3rd ATA disk of the 1st enclosure
          on Areca RAID controller)

anton@anton-N56VJ:~$
источник

AD

Anton Dragun in Linux Чат
Я пока не понимаю, но уверен разберёмся))
источник

VP

Vadim "Oxyd&quo... in Linux Чат
sudo smartctl --all /dev/sda
источник

AD

Anton Dragun in Linux Чат
martctl 7.1 2019-12-30 r5022 [x86_64-linux-5.8.0-59-generic] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Mobile HDD
Device Model:     ST1000LM035-1RK172
Serial Number:    WDEAB1CM
LU WWN Device Id: 5 000c50 0a9809548
Firmware Version: SDM1
User Capacity:    1 000 204 886 016 bytes [1,00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      2.5 inches
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-3 T13/2161-D revision 3b
SATA Version is:  SATA 3.1, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Wed Jul  7 20:49:08 2021 +03
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x00)  Offline data collection activity
         was never started.
         Auto Offline Data Collection: Disabled.
Self-test execution status:      (   0)  The previous self-test routine completed
         without error or no self-test has ever
         been run.
Total time to complete Offline
data collection:     (    0) seconds.
Offline data collection
capabilities:        (0x71) SMART execute Offline immediate.
         No Auto Offline data collection support.
         Suspend Offline collection upon new
         command.
         No Offline surface scan supported.
         Self-test supported.
         Conveyance Self-test supported.
         Selective Self-test supported.
SMART capabilities:            (0x0003)  Saves SMART data before entering
         power-saving mode.
         Supports SMART auto save timer.
Error logging capability:        (0x01)  Error logging supported.
         General Purpose Logging supported.
Short self-test routine
recommended polling time:    (   1) minutes.
Extended self-test routine
recommended polling time:    ( 164) minutes.
Conveyance self-test routine
recommended polling time:    (   2) minutes.
SCT capabilities:          (0x3035)  SCT Status supported.
         SCT Feature Control supported.
         SCT Data Table supported.
источник

AD

Anton Dragun in Linux Чат
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
 1 Raw_Read_Error_Rate     0x000f   078   064   006    Pre-fail  Always       -       63953840
 3 Spin_Up_Time            0x0003   099   099   000    Pre-fail  Always       -       0
 4 Start_Stop_Count        0x0032   099   099   020    Old_age   Always       -       1658
 5 Reallocated_Sector_Ct   0x0033   100   100   036    Pre-fail  Always       -       0
 7 Seek_Error_Rate         0x000f   080   060   045    Pre-fail  Always       -       110333178
 9 Power_On_Hours          0x0032   098   098   000    Old_age   Always       -       2456 (191 199 0)
10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
12 Power_Cycle_Count       0x0032   099   099   020    Old_age   Always       -       1060
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   100   100   000    Old_age   Always       -       0
188 Command_Timeout         0x0032   100   100   000    Old_age   Always       -       0
189 High_Fly_Writes         0x003a   100   100   000    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   057   050   040    Old_age   Always       -       43 (Min/Max 28/43)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       142
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       146
193 Load_Cycle_Count        0x0032   072   072   000    Old_age   Always       -       56432
194 Temperature_Celsius     0x0022   043   050   000    Old_age   Always       -       43 (0 13 0 0 0)
197 Current_Pending_Sector  0x0012   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0010   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       -       3
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       2211 (73 109 0)
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       9132148125
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       17833540095
254 Free_Fall_Sensor        0x0032   100   100   000    Old_age   Always       -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
No self-tests have been logged.  [To run self-tests, use: smartctl -t]

SMART Selective self-test log data structure revision number 1
SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
   1        0        0  Not_testing
   2        0        0  Not_testing
   3        0        0  Not_testing
   4        0        0  Not_testing
   5        0        0  Not_testing
Selective self-test flags (0x0):
 After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

anton@anton-N56VJ:~$
источник

AD

Anton Dragun in Linux Чат
Только чат завалил ...
источник

AD

Anton Dragun in Linux Чат
Извините
источник

AD

Anton Dragun in Linux Чат
Всё здорово. Обишок нет.
источник

AD

Anton Dragun in Linux Чат
Спасибо.
источник

Й

Йорик in Linux Чат
, ты ответил верно. Умничка!.
источник

A

Artur in Linux Чат
Приветствую, подскажите как sed'ом убрать special chars в каждой строке(*? и так далее) кроме знаков '-_' ?
источник

Й

Йорик in Linux Чат
Станислав Фролов, ты ответил верно. Умничка!.
источник

Й

Йорик in Linux Чат
sasha pepps, ты ответил верно. Умничка!.
источник

Sp

Sasha pepps in Linux Чат
Добрый вечер всем, вопрос следующий, возможно ли сменить разрешение экрана на этапа запуска граба? (до запуска графической оболочки)

Проблема следующая, сменил разрешение через графическую оболочку, но теперь, просто чёрный экран (вместо графической оболочки)

Как вернуть разрешение обратно?
источник

VP

Vadim "Oxyd&quo... in Linux Чат
Переслано от Vadim "Oxyd&quo...
Какой чудесный набор утилитов. Диаграммы как код и куда как проще чем синтаксис dot!
источник

VP

Vadim "Oxyd&quo... in Linux Чат
Как перестать жрать ржать?
источник

VP

Vadim "Oxyd&quo... in Linux Чат
Переслано от Andrey F
источник

N

Nikita Ursol in Linux Чат
там же почти тот-же синтаксис 🤔🤔🤔
источник