It freezes when cleaning disk during reboot and shutdown

The message is like this

... clean ... ?/? files ?/? blocks

I did something with a usb stick, it got some problem, and I unplugged it.
When rebooting, it freezed, after waiting for more than 10 minutes, I shutted it down manually by pressing the power button for a while.
After that, I tries to reboot again, it becomes normal.

What’s the problem?
How to solve it?

Hi @followait,

AFAIK that message is nothing to worry about. It’s caused by the fsck in the startup/shutdown hooks. It’s just saying your file system is clean.

As or why it took so long, I have no idea. Mine also sometimes take longer than other times. And I’m thinking perhaps it has something to do with the USB flashdrive and/or the flashdrive problem you had.

I’d say not to worry, unless it happens again. But to check the logs anyway, run:

journalctl -b -1 --priority=3 --priority=4 | tail -n 50

This will give you the 50 latest errors and warnings from your previous boot.

Edit:

Except if that is the exact message, in which case I have no idea what’s going on. But since you were able to start it fine again today, I don’t think you have to worry.

Bu it you prefer, you could do a SMART health test to check the health of the hard drive:

sudo smartctl --all /dev/<device>

Were <device> is the device you wish to check. For example /dev/sdb or /dev/nvme0.

It freezes after the usb stick got problem and unplugged forcibly.
It might be caused by the forcible usb unplugging.

Unsafe Shutdowns: 87
Media and Data Integrity Errors: 0
Error Information Log Entries: 3,290

It’s supposed to give you a much longer output. Mine, for example:

$ sudo smartctl --all /dev/nvme0                                     
[sudo] password for mirdarthos: 
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 SSD 960 EVO 250GB
Serial Number:                      S3ESNX0K162428H
Firmware Version:                   3B7QCXE7
PCI Vendor/Subsystem ID:            0x144d
IEEE OUI Identifier:                0x002538
Total NVM Capacity:                 250,059,350,016 [250 GB]
Unallocated NVM Capacity:           0
Controller ID:                      2
NVMe Version:                       1.2
Number of Namespaces:               1
Namespace 1 Size/Capacity:          250,059,350,016 [250 GB]
Namespace 1 Utilization:            128,116,105,216 [128 GB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            002538 5181b1e070
Local Time is:                      Sat Nov 13 15:25:49 2021 SAST
Firmware Updates (0x16):            3 Slots, no Reset required
Optional Admin Commands (0x0007):   Security Format Frmw_DL
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
Maximum Data Transfer Size:         512 Pages
Warning  Comp. Temp. Threshold:     77 Celsius
Critical Comp. Temp. Threshold:     79 Celsius

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
0 +     6.04W       -        -    0  0  0  0        0       0
1 +     5.09W       -        -    1  1  1  1        0       0
2 +     4.08W       -        -    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:                        34 Celsius
Available Spare:                    100%
Available Spare Threshold:          10%
Percentage Used:                    3%
Data Units Read:                    38,301,583 [19.6 TB]
Data Units Written:                 25,595,674 [13.1 TB]
Host Read Commands:                 532,763,050
Host Write Commands:                589,781,905
Controller Busy Time:               2,058
Power Cycles:                       1,611
Power On Hours:                     3,310
Unsafe Shutdowns:                   140
Media and Data Integrity Errors:    0
Error Information Log Entries:      554
Warning  Comp. Temperature Time:    0
Critical Comp. Temperature Time:    0
Temperature Sensor 1:               34 Celsius
Temperature Sensor 2:               40 Celsius

Error Information (NVMe Log 0x01, 16 of 64 entries)
Num   ErrCount  SQId   CmdId  Status  PELoc          LBA  NSID    VS
0        554     0  0x000a  0x4004      -            0     0     -
1        553     0  0x004c  0x4212  0x028            0     0     -
2        552     0  0x0069  0x4212  0x028            0     0     -
3        551     0  0x007c  0x4212  0x028            0     0     -
4        550     0  0x003c  0x4212  0x028            0     0     -
5        549     0  0x0036  0x4212  0x028            0     0     -
6        548     0  0x0025  0x4212  0x028            0     0     -
7        547     0  0x0066  0x4212  0x028            0     0     -
8        546     0  0x002b  0x4212  0x028            0     0     -
9        545     0  0x002e  0x4212  0x028            0     0     -
10        544     0  0x0043  0x4212  0x028            0     0     -
11        543     0  0x005c  0x4212  0x028            0     0     -
12        542     0  0x0017  0x4212  0x028            0     0     -
13        541     0  0x005e  0x4212  0x028            0     0     -
14        540     0  0x0050  0x4212  0x028            0     0     -
15        539     0  0x0068  0x4212  0x028            0     0     -
... (48 entries not read)

Also, please wrap terminal output in three backtics (```). This just formats it better for display, and thus legibility.

Edit:

This:

Looks somewhat similar, but better, than mine:

Unsafe Shutdowns:                   140
Media and Data Integrity Errors:    0
Error Information Log Entries:      554

Yeah, we get a lot of power-outs, blackouts, and so forth.

And since mine is fine, I think you’re OK.

Mine as below
Samsung 981a
I have much more “Error Information Log Entries”, some relevant comparisons as below:

  • “Total NVM Capacity” is double of yours
  • “Data Units Written” is similar
  • “Power On Hours” is 36.5% of yours
  • “Error Information Log Entries” is 594% of yours, it looks abnormal
# smartctl -a /dev/nvme0n1
smartctl 7.2 2020-12-30 r5155 [x86_64-linux-5.14.10-1-MANJARO] (local build)
Copyright (C) 2002-20, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       SAMSUNG MZVLB512HBJQ-000L2
Firmware Version:                   3L1QEXF7
PCI Vendor/Subsystem ID:            0x144d
IEEE OUI Identifier:                0x002538
Total NVM Capacity:                 512,110,190,592 [512 GB]
Unallocated NVM Capacity:           0
Controller ID:                      4
NVMe Version:                       1.3
Number of Namespaces:               1
Namespace 1 Size/Capacity:          512,110,190,592 [512 GB]
Namespace 1 Utilization:            32,451,108,864 [32.4 GB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            002538 8201c62989
Local Time is:                      Sun Nov 14 09:26:03 2021 CST
Firmware Updates (0x16):            3 Slots, no Reset required
Optional Admin Commands (0x0017):   Security Format Frmw_DL Self_Test
Optional NVM Commands (0x005f):     Comp Wr_Unc DS_Mngmt Wr_Zero Sav/Sel_Feat Timestmp
Log Page Attributes (0x03):         S/H_per_NS Cmd_Eff_Lg
Maximum Data Transfer Size:         512 Pages
Warning  Comp. Temp. Threshold:     84 Celsius
Critical Comp. Temp. Threshold:     85 Celsius

Supported Power States
St Op     Max   Active     Idle   RL RT WL WT  Ent_Lat  Ex_Lat
 0 +     8.00W       -        -    0  0  0  0        0       0
 1 +     6.30W       -        -    1  1  1  1        0       0
 2 +     3.50W       -        -    2  2  2  2        0       0
 3 -   0.0760W       -        -    3  3  3  3      210    1200
 4 -   0.0050W       -        -    4  4  4  4     2000    8000

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:                        23 Celsius
Available Spare:                    100%
Available Spare Threshold:          10%
Percentage Used:                    1%
Data Units Read:                    13,179,957 [6.74 TB]
Data Units Written:                 24,207,950 [12.3 TB]
Host Read Commands:                 167,696,760
Host Write Commands:                277,708,234
Controller Busy Time:               741
Power Cycles:                       2,768
Power On Hours:                     1,208
Unsafe Shutdowns:                   87
Media and Data Integrity Errors:    0
Error Information Log Entries:      3,291
Warning  Comp. Temperature Time:    0
Critical Comp. Temperature Time:    0
Temperature Sensor 1:               23 Celsius
Temperature Sensor 2:               21 Celsius

Error Information (NVMe Log 0x01, 16 of 64 entries)
Num   ErrCount  SQId   CmdId  Status  PELoc          LBA  NSID    VS
  0       3291     0  0x100e  0x4004      -            0     0     -

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.