When I use the “smartctl -a /dev/nvme0n1” command, I found some values
Unsafe Shutdowns: 170
Error Information Log Entries: 5,771
and when i use this command
nvme error-log /dev/nvme0
all errors is Repeat these
Entry[ 0]
.................
error_count : 5771
sqid : 0
cmdid : 0x12
status_field : 0x2109(INVALID_LOG_PAGE: The log page indicated is invalid. This error condition is also returned if a reserved log page is requested)
phase_tag : 0
parm_err_loc : 0x28
lba : 0
nsid : 0xffffffff
vs : 0
trtype : The transport type is not indicated or the error is not transport related.
cs : 0
trtype_spec_info: 0
.................
Entry[ 1]
.................
error_count : 5770
sqid : 0
cmdid : 0x12
status_field : 0x2109(INVALID_LOG_PAGE: The log page indicated is invalid. This error condition is also returned if a reserved log page is requested)
phase_tag : 0
parm_err_loc : 0x28
lba : 0
nsid : 0xffffffff
vs : 0
trtype : The transport type is not indicated or the error is not transport related.
cs : 0
trtype_spec_info: 0
.................
Entry[ 2]
.................
error_count : 5769
sqid : 0
cmdid : 0x1a
status_field : 0x2002(INVALID_FIELD: A reserved coded value or an unsupported value in a defined field)
phase_tag : 0
parm_err_loc : 0x2c
lba : 0
nsid : 0
vs : 0
trtype : The transport type is not indicated or the error is not transport related.
cs : 0
trtype_spec_info: 0
.................
What do I need to do to solve the problem of “unsafe shutdown” and a large number of error logs?If it can’t be solved, will it damage my hard drive?
this may be some useful information
sudo smartctl -a /dev/nvme0n1
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.10.70-1-MANJARO] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Model Number: SAMSUNG MZVLW128HEGR-000L2
Serial Number: S35FNX0J225046
Firmware Version: 4L1QCXB7
PCI Vendor/Subsystem ID: 0x144d
IEEE OUI Identifier: 0x002538
Total NVM Capacity: 128,035,676,160 [128 GB]
Unallocated NVM Capacity: 0
Controller ID: 2
NVMe Version: 1.2
Number of Namespaces: 1
Namespace 1 Size/Capacity: 128,035,676,160 [128 GB]
Namespace 1 Utilization: 76,261,564,416 [76.2 GB]
Namespace 1 Formatted LBA Size: 512
Namespace 1 IEEE EUI-64: 002538 b271b3c07c
Local Time is: Fri Nov 5 09:47:54 2021 CST
Firmware Updates (0x16): 3 Slots, no Reset required
Optional Admin Commands (0x0017): Security Format Frmw_DL Self_Test
Optional NVM Commands (0x001f): Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat
Log Page Attributes (0x03): S/H_per_NS Cmd_Eff_Lg
Warning Comp. Temp. Threshold: 69 Celsius
Critical Comp. Temp. Threshold: 72 Celsius
Supported Power States
St Op Max Active Idle RL RT WL WT Ent_Lat Ex_Lat
0 + 7.60W - - 0 0 0 0 0 0
1 + 6.00W - - 1 1 1 1 0 0
2 + 5.10W - - 2 2 2 2 0 0
3 - 0.0400W - - 3 3 3 3 210 1500
4 - 0.0050W - - 4 4 4 4 2200 6000
Supported LBA Sizes (NSID 0x1)
Id Fmt Data Metadt Rel_Perf
0 + 512 0 0
=== START OF SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
SMART/Health Information (NVMe Log 0x02)
Critical Warning: 0x00
Temperature: 21 Celsius
Available Spare: 100%
Available Spare Threshold: 10%
Percentage Used: 13%
Data Units Read: 51,434,535 [26.3 TB]
Data Units Written: 37,003,182 [18.9 TB]
Host Read Commands: 874,962,937
Host Write Commands: 536,815,326
Controller Busy Time: 2,543
Power Cycles: 7,573
Power On Hours: 3,355
Unsafe Shutdowns: 170
Media and Data Integrity Errors: 0
Error Information Log Entries: 5,771
Warning Comp. Temperature Time: 0
Critical Comp. Temperature Time: 0
Temperature Sensor 1: 21 Celsius
Temperature Sensor 2: 27 Celsius
Error Information (NVMe Log 0x01, 16 of 64 entries)
Num ErrCount SQId CmdId Status PELoc LBA NSID VS
0 5771 0 0x0012 0x4212 0x028 0 - -
1 5770 0 0x0012 0x4212 0x028 0 - -
2 5769 0 0x001a 0x4004 0x02c 0 0 -
3 5768 0 0x0019 0x4004 0x02c 0 0 -
4 5767 0 0x0015 0x4212 0x028 0 - -
5 5766 0 0x0002 0x4004 0x028 0 0 -
6 5765 0 0x0012 0x4212 0x028 0 - -
7 5764 0 0x0012 0x4212 0x028 0 - -
8 5763 0 0x0012 0x4212 0x028 0 - -
9 5762 0 0x0012 0x4212 0x028 0 - -
10 5761 0 0x0012 0x4212 0x028 0 - -
11 5760 0 0x0012 0x4212 0x028 0 - -
12 5759 0 0x0012 0x4212 0x028 0 - -
13 5758 0 0x0012 0x4212 0x028 0 - -
14 5757 0 0x0012 0x4212 0x028 0 - -
15 5756 0 0x0012 0x4212 0x028 0 - -
... (48 entries not read)
❯ sudo inxi -Fazy
System:
Kernel: 5.10.70-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64
root=UUID=6576aa1d-0f9a-4799-9abd-6e73077cbf68 rw quiet apparmor=1
security=apparmor resume=UUID=1cf837db-3b41-4da3-b390-396494691a67
udev.log_priority=3 nowatchdog
Console: pty pts/2 wm: kwin_x11 DM: SDDM Distro: Manjaro Linux
base: Arch Linux
Machine:
Type: Laptop System: LENOVO product: 80Y5 v: Lenovo Y520-15IKBN
serial: <filter> Chassis: type: 10 v: Lenovo Y520-15IKBN serial: <filter>
Mobo: LENOVO model: Provence-5R5 v: SDK0K09938 WIN serial: <filter>
UEFI: LENOVO v: 4KCN24WW date: 02/17/2017
Battery:
ID-1: BAT0 charge: 38.9 Wh (97.0%) condition: 40.1/45.0 Wh (89.1%)
volts: 12.2 min: 11.1 model: SMP L14M3P24 type: Li-poly serial: <filter>
status: Unknown
CPU:
Info: Quad Core model: Intel Core i5-7300HQ socket: U3E1 bits: 64 type: MCP
arch: Kaby Lake family: 6 model-id: 9E (158) stepping: 9 microcode: EA
cache: L1: 256 KiB L2: 6 MiB L3: 6 MiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
bogomips: 20004
Speed: 1097 MHz min/max: 800/3500 MHz base/boost: 2400/8300 volts: 0.9 V
ext-clock: 100 MHz Core speeds (MHz): 1: 1097 2: 915 3: 1001 4: 916
Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf
mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled
Type: mds mitigation: Clear CPU buffers; SMT disabled
Type: meltdown mitigation: PTI
Type: spec_store_bypass
mitigation: Speculative Store Bypass disabled via prctl and seccomp
Type: spectre_v1
mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional,
IBRS_FW, STIBP: disabled, RSB filling
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel HD Graphics 630 vendor: Lenovo driver: i915 v: kernel
bus-ID: 00:02.0 chip-ID: 8086:591b class-ID: 0300
Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] vendor: Lenovo
driver: nvidia v: 470.63.01 alternate: nouveau,nvidia_drm bus-ID: 01:00.0
chip-ID: 10de:1c8d class-ID: 0302
Device-3: Acer EasyCamera type: USB driver: uvcvideo bus-ID: 1-6:5
chip-ID: 5986:06b0 class-ID: 0e02 serial: <filter>
Display: server: X.Org 1.20.13 compositor: kwin_x11 driver:
loaded: modesetting,nvidia alternate: fbdev,nouveau,nv,vesa display-ID: :0
screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2")
s-diag: 582mm (22.9")
Monitor-1: eDP-1 res: 1920x1080 hz: 60 dpi: 142 size: 344x194mm (13.5x7.6")
diag: 395mm (15.5")
OpenGL: renderer: Mesa Intel HD Graphics 630 (KBL GT2) v: 4.6 Mesa 21.2.3
direct render: Yes
Audio:
Device-1: Intel CM238 HD Audio vendor: Lenovo driver: snd_hda_intel
v: kernel bus-ID: 00:1f.3 chip-ID: 8086:a171 class-ID: 0403
Sound Server-1: ALSA v: k5.10.70-1-MANJARO running: yes
Sound Server-2: JACK v: 1.9.19 running: no
Sound Server-3: PulseAudio v: 15.0 running: yes
Sound Server-4: PipeWire v: 0.3.38 running: yes
Network:
Device-1: Intel Dual Band Wireless-AC 3165 Plus Bluetooth driver: iwlwifi
v: kernel bus-ID: 03:00.0 chip-ID: 8086:3166 class-ID: 0280
IF: wlp3s0 state: up mac: <filter>
Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
vendor: Lenovo driver: r8169 v: kernel port: 3000 bus-ID: 04:00.0
chip-ID: 10ec:8168 class-ID: 0200
IF: enp4s0 state: down mac: <filter>
Bluetooth:
Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8
bus-ID: 1-11:6 chip-ID: 8087:0a2a class-ID: e001
Report: rfkill ID: hci0 rfk-id: 3 state: down bt-service: enabled,running
rfk-block: hardware: no software: yes address: see --recommends
Drives:
Local Storage: total: 1.03 TiB used: 52.05 GiB (5.0%)
ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZVLW128HEGR-000L2
size: 119.24 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
lanes: 4 type: SSD serial: <filter> rev: 4L1QCXB7 temp: 20.9 C scheme: GPT
SMART: yes health: PASSED on: 139d 19h cycles: 7,573
read-units: 51,434,575 [26.3 TB] written-units: 37,003,188 [18.9 TB]
ID-2: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD10SPCX-24HWST1
size: 931.51 GiB block-size: physical: 4096 B logical: 512 B sata: 3.0
speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter> rev: 1A02 temp: 29 C
scheme: GPT
SMART: yes state: enabled health: PASSED on: 264d 11h cycles: 7433
Partition:
ID-1: / raw-size: 30 GiB size: 29.36 GiB (97.87%) used: 11.85 GiB (40.4%)
fs: ext4 block-size: 4096 B dev: /dev/nvme0n1p5 maj-min: 259:5
ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%)
used: 31.3 MiB (12.2%) fs: vfat block-size: 512 B dev: /dev/nvme0n1p1
maj-min: 259:1
ID-3: /home raw-size: 120 GiB size: 117.55 GiB (97.96%)
used: 22.26 GiB (18.9%) fs: ext4 block-size: 4096 B dev: /dev/sda3
maj-min: 8:3
Swap:
Kernel: swappiness: 40 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: partition size: 8 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/nvme0n1p4 maj-min: 259:4
Sensors:
System Temperatures: cpu: 32.5 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 255 Uptime: 1h 46m wakeups: 2 Memory: 7.65 GiB
used: 3.81 GiB (49.9%) Init: systemd v: 249 tool: systemctl Compilers:
gcc: 11.1.0 Packages: pacman: 1338 lib: 342 flatpak: 0 Shell: Zsh (sudo)
v: 5.8 default: Bash v: 5.1.8 running-in: konsole inxi: 3.3.08
sudo nvme fw-log /dev/nvme0
Firmware Log for device:nvme0
afi : 0x2
frs1 : 1L1QCXB7
frs2 : 4L1QCXB7
❯ sudo nvme id-ctrl /dev/nvme0 -H | grep Firmware
[9:9] : 0 Firmware Activation Notices Not Supported
[4:4] : 0x1 Firmware Activate Without Reset Supported
[3:1] : 0x3 Number of Firmware Slots
[0:0] : 0 Firmware Slot 1 Read/Write
❯ sudo nvme id-ctrl -H /dev/nvme0
NVME Identify Controller:
vid : 0x144d
ssvid : 0x144d
sn : S35FNX0J225046
mn : SAMSUNG MZVLW128HEGR-000L2
fr : 4L1QCXB7
rab : 2
ieee : 002538
cmic : 0
[3:3] : 0 ANA not supported
[2:2] : 0 PCI
[1:1] : 0 Single Controller
[0:0] : 0 Single Port
mdts : 0
cntlid : 0x2
ver : 0x10200
rtd3r : 0x186a0
rtd3e : 0x4c4b40
oaes : 0
[31:31] : 0 Discovery Log Change Notice Not Supported
[27:27] : 0 Zone Descriptor Changed Notices Not Supported
[15:15] : 0 Normal NSS Shutdown Event Not Supported
[14:14] : 0 Endurance Group Event Aggregate Log Page Change Notice Not Supported
[13:13] : 0 LBA Status Information Notices Not Supported
[12:12] : 0 Predictable Latency Event Aggregate Log Change Notices Not Supported
[11:11] : 0 Asymmetric Namespace Access Change Notices Not Supported
[9:9] : 0 Firmware Activation Notices Not Supported
[8:8] : 0 Namespace Attribute Changed Event Not Supported
ctratt : 0
[15:15] : 0 Extended LBA Formats Not Supported
[14:14] : 0 Delete NVM Set Not Supported
[13:13] : 0 Delete Endurance Group Not Supported
[12:12] : 0 Variable Capacity Management Not Supported
[11:11] : 0 Fixed Capacity Management Not Supported
[10:10] : 0 Multi Domain Subsystem Not Supported
[9:9] : 0 UUID List Not Supported
[7:7] : 0 Namespace Granularity Not Supported
[5:5] : 0 Predictable Latency Mode Not Supported
[4:4] : 0 Endurance Groups Not Supported
[3:3] : 0 Read Recovery Levels Not Supported
[2:2] : 0 NVM Sets Not Supported
[1:1] : 0 Non-Operational Power State Permissive Not Supported
[0:0] : 0 128-bit Host Identifier Not Supported
rrls : 0
cntrltype : 0
[7:2] : 0 Reserved
[1:0] : 0 Controller type not reported
fguid :
crdt1 : 0
crdt2 : 0
crdt3 : 0
nvmsr : 0
[1:1] : 0 NVM subsystem Not part of an Enclosure
[0:0] : 0 NVM subsystem Not part of an Storage Device
vwci : 0
[7:7] : 0 VPD Write Cycles Remaining field is Not valid.
[6:0] : 0 VPD Write Cycles Remaining
mec : 0
[1:1] : 0 NVM subsystem Not contains a Management Endpoint on a PCIe port
[0:0] : 0 NVM subsystem Not contains a Management Endpoint on an SMBus/I2C port
oacs : 0x17
[10:10] : 0 Lockdown Command and Feature Not Supported
[9:9] : 0 Get LBA Status Capability Not Supported
[8:8] : 0 Doorbell Buffer Config Not Supported
[7:7] : 0 Virtualization Management Not Supported
[6:6] : 0 NVMe-MI Send and Receive Not Supported
[5:5] : 0 Directives Not Supported
[4:4] : 0x1 Device Self-test Supported
[3:3] : 0 NS Management and Attachment Not Supported
[2:2] : 0x1 FW Commit and Download Supported
[1:1] : 0x1 Format NVM Supported
[0:0] : 0x1 Security Send and Receive Supported
acl : 7
aerl : 3
frmw : 0x16
[5:5] : 0 Multiple FW or Boot Update Detection Not Supported
[4:4] : 0x1 Firmware Activate Without Reset Supported
[3:1] : 0x3 Number of Firmware Slots
[0:0] : 0 Firmware Slot 1 Read/Write
lpa : 0x3
[6:6] : 0 Telemetry Log Data Area 4 Not Supported
[5:5] : 0 LID 0x0, Scope of each command in LID 0x5, 0x12, 0x13 Not Supported
[4:4] : 0 Persistent Event log Not Supported
[3:3] : 0 Telemetry host/controller initiated log page Not Supported
[2:2] : 0 Extended data for Get Log Page Not Supported
[1:1] : 0x1 Command Effects Log Page Supported
[0:0] : 0x1 SMART/Health Log Page per NS Supported
elpe : 63
npss : 4
avscc : 0x1
[0:0] : 0x1 Admin Vendor Specific Commands uses NVMe Format
apsta : 0x1
[0:0] : 0x1 Autonomous Power State Transitions Supported
wctemp : 342
[16:0] : 69 C (342 Kelvin) Warning temperature (WCTEMP)
cctemp : 345
[16:0] : 72 C (345 Kelvin) Critical temperature (CCTEMP)
mtfa : 0
hmpre : 0
hmmin : 0
tnvmcap : 128035676160
unvmcap : 0
rpmbs : 0
[31:24]: 0 Access Size
[23:16]: 0 Total Size
[5:3] : 0 Authentication Method
[2:0] : 0 Number of RPMB Units
edstt : 35
dsto : 0
fwug : 0
kas : 0
hctma : 0
[0:0] : 0 Host Controlled Thermal Management Not Supported
mntmt : 0
mxtmt : 0
sanicap : 0
[31:30] : 0 Additional media modification after sanitize operation completes successfully is not defined
[29:29] : 0 No-Deallocate After Sanitize bit in Sanitize command Supported
[2:2] : 0 Overwrite Sanitize Operation Not Supported
[1:1] : 0 Block Erase Sanitize Operation Not Supported
[0:0] : 0 Crypto Erase Sanitize Operation Not Supported
hmminds : 0
hmmaxd : 0
nsetidmax : 0
endgidmax : 0
anatt : 0
anacap : 0
[7:7] : 0 Non-zero group ID Not Supported
[6:6] : 0 Group ID does not change
[4:4] : 0 ANA Change state Not Supported
[3:3] : 0 ANA Persistent Loss state Not Supported
[2:2] : 0 ANA Inaccessible state Not Supported
[1:1] : 0 ANA Non-optimized state Not Supported
[0:0] : 0 ANA Optimized state Not Supported
anagrpmax : 0
nanagrpid : 0
pels : 0
domainid : 0
megcap : 0
sqes : 0x66
[7:4] : 0x6 Max SQ Entry Size (64)
[3:0] : 0x6 Min SQ Entry Size (64)
cqes : 0x44
[7:4] : 0x4 Max CQ Entry Size (16)
[3:0] : 0x4 Min CQ Entry Size (16)
maxcmd : 0
nn : 1
oncs : 0x1f
[8:8] : 0 Copy Not Supported
[7:7] : 0 Verify Not Supported
[6:6] : 0 Timestamp Not Supported
[5:5] : 0 Reservations Not Supported
[4:4] : 0x1 Save and Select Supported
[3:3] : 0x1 Write Zeroes Supported
[2:2] : 0x1 Data Set Management Supported
[1:1] : 0x1 Write Uncorrectable Supported
[0:0] : 0x1 Compare Supported
fuses : 0
[0:0] : 0 Fused Compare and Write Not Supported
fna : 0
[3:3] : 0 FormatNVM Broadcast NSID (FFFFFFFFh) Supported
[2:2] : 0 Crypto Erase Not Supported as part of Secure Erase
[1:1] : 0 Crypto Erase Applies to Single Namespace(s)
[0:0] : 0 Format Applies to Single Namespace(s)
vwc : 0x1
[2:1] : 0 Support for the NSID field set to FFFFFFFFh is not indicated
[0:0] : 0x1 Volatile Write Cache Present
awun : 255
awupf : 0
icsvscc : 1
[0:0] : 0x1 NVM Vendor Specific Commands uses NVMe Format
nwpc : 0
[2:2] : 0 Permanent Write Protect Not Supported
[1:1] : 0 Write Protect Until Power Supply Not Supported
[0:0] : 0 No Write Protect and Write Protect Namespace Not Supported
acwu : 0
ocfs : 0
[1:1] : 0 Controller Copy Format 1h Not Supported
[0:0] : 0 Controller Copy Format 0h Not Supported
sgls : 0
[15:8] : 0 SGL Descriptor Threshold
[1:0] : 0 Scatter-Gather Lists Not Supported
mnan : 0
maxdna : 0
maxcna : 0
subnqn :
ioccsz : 0
iorcsz : 0
icdoff : 0
fcatt : 0
[0:0] : 0 Dynamic Controller Model
msdbd : 0
ofcs : 0
[0:0] : 0 Disconnect command Not Supported
ps 0 : mp:7.60W operational enlat:0 exlat:0 rrt:0 rrl:0
rwt:0 rwl:0 idle_power:- active_power:-
ps 1 : mp:6.00W operational enlat:0 exlat:0 rrt:1 rrl:1
rwt:1 rwl:1 idle_power:- active_power:-
ps 2 : mp:5.10W operational enlat:0 exlat:0 rrt:2 rrl:2
rwt:2 rwl:2 idle_power:- active_power:-
ps 3 : mp:0.0400W non-operational enlat:210 exlat:1500 rrt:3 rrl:3
rwt:3 rwl:3 idle_power:- active_power:-
ps 4 : mp:0.0050W non-operational enlat:2200 exlat:6000 rrt:4 rrl:4
rwt:4 rwl:4 idle_power:- active_power:-
lsblk -f
NAME FSTYPE FSVER LABEL UUID FSAVAIL FSUSE% MOUNTPOINTS
sda
├─sda1
├─sda2 ntfs 1
│ 98F09C9CF09C8264
├─sda3 ext4 1.0 59be1c50-c09c-40d7-a9da-ac0ea6120f2d 89.3G 19% /home
├─sda4 ntfs 2
│ 62F2BE91F2BE6945
└─sda5 ext4 1.0 Data 857e6f02-77c7-4bbd-9bd7-d80bb6e1bde3 74.9G 18% /run/timeshift/backup
/home/kiylx/dev
nvme0n1
├─nvme0n1p1
│ vfat FAT32 SYSTEM_DRV
│ 5E1E-A8FD 224.7M 12% /boot/efi
├─nvme0n1p2
│
├─nvme0n1p3
│ ntfs Windows 6C1AF28D1AF25414
├─nvme0n1p4
│ swap 1 1cf837db-3b41-4da3-b390-396494691a67 [SWAP]
└─nvme0n1p5
ext4 1.0 6576aa1d-0f9a-4799-9abd-6e73077cbf68 16G 40% /