reboot with automatic fsck

My notebook is a little slow
I would like to force a fsck when starting
How do I reboot with automatic fsck?

Here you go…
[https://www.systutorials.com/how-to-force-a-fsck-during-next-rebooting-of-linux/

https://www.systutorials.com/docs/linux/man/8-systemd-fsck-root/](https://www.systutorials.com/how-to-force-a-fsck-during-next-rebooting-of-linux/)

I fail to see the connection between your first and your second line. fsch will make your boot even slower I assume?

And on boot, depending on the file system type, a quick check is done and a more thourough fsck then follows if needed.

I am experiencing stopd while working.
The device stops, not even the mouse moves. Sometimes for about 5 seconds and sometimes for more than 30s
There are no processes using too much CPU or Memory
Since I can’t find reasons, I think there may be problems with HD
Maybe quick check on boot is not detecting failures

fsck will only find (and when possible repair) logical errors in the file system structure. Either the file sytem is corrupt and then reading/writing files will result in breaking of programs, or it isn’t.

Hardware failures might be resolved by retrial done by a driver and /or the kernel, but are hardware and can not be repaired by fsck.

I assume checking for hardware problems on your disk is the way to go.

OK, assuming checking disk hardware problems is the way to go.
Is there any way to detect what needs to be reinstated?

You could check the drive health with smartctl. Use a live distro with diagnostic utilities to check your hardware…
https://wiki.archlinux.org/index.php/S.M.A.R.T.

Start with simple console and enter:

sudo fdisk -l

This will give you a list of your HDDs/SSDs

Assuming the OS is on /dev/sda, then type (otherwise enter the device your OS is on):

sudo smartctl -a /dev/sda

Post the output here in code-tags… :slight_smile:

The output from sudo smartctl -a /dev/sda


 
smartctl 6.6 2017-11-05 r4594 [x86_64-linux-4.12.14-lp151.28.44-default] (SUSE RPM)
Copyright (C) 2002-17, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Toshiba 2.5" HDD MQ01ABF...
Device Model:     TOSHIBA MQ01ABF050
Serial Number:    665ACJJ5T
LU WWN Device Id: 5 000039 713781c62
Firmware Version: AM0P2A
User Capacity:    500.107.862.016 bytes [500 GB]
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:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Fri Apr  3 05:22:50 2020 -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:                (  120) seconds.
Offline data collection
capabilities:                    (0x5b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        No 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:        (   2) minutes.
Extended self-test routine
recommended polling time:        ( 118) minutes.
SCT capabilities:              (0x003d) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x000b   100   100   050    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   100   100   050    Pre-fail  Offline      -       0
  3 Spin_Up_Time            0x0027   100   100   001    Pre-fail  Always       -       1317
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       1224
  5 Reallocated_Sector_Ct   0x0033   100   100   050    Pre-fail  Always       -       0
  7 Seek_Error_Rate         0x000b   100   100   050    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   100   100   050    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0032   063   063   000    Old_age   Always       -       15086
 10 Spin_Retry_Count        0x0033   124   100   030    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       1224
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       20848
192 Power-Off_Retract_Count 0x0032   100   100   000    Old_age   Always       -       151
193 Load_Cycle_Count        0x0032   056   056   000    Old_age   Always       -       443462
194 Temperature_Celsius     0x0022   100   100   000    Old_age   Always       -       43 (Min/Max 14/58)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       0
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       1032
198 Offline_Uncorrectable   0x0030   100   100   000    Old_age   Offline      -       148
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
220 Disk_Shift              0x0002   100   100   000    Old_age   Always       -       0
222 Loaded_Hours            0x0032   065   065   000    Old_age   Always       -       14275
223 Load_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
224 Load_Friction           0x0022   100   100   000    Old_age   Always       -       0
226 Load-in_Time            0x0026   100   100   000    Old_age   Always       -       271
240 Head_Flying_Hours       0x0001   100   100   001    Pre-fail  Offline      -       0

SMART Error Log Version: 1
ATA Error Count: 663 (device log contains only the most recent five errors)
        CR = Command Register [HEX]
        FR = Features Register [HEX]
        SC = Sector Count Register [HEX]
        SN = Sector Number Register [HEX]
        CL = Cylinder Low Register [HEX]
        CH = Cylinder High Register [HEX]
        DH = Device/Head Register [HEX]
        DC = Device Command Register [HEX]
        ER = Error register [HEX]
        ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 663 occurred at disk power-on lifetime: 14730 hours (613 days + 18 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 28 40 23 28 40  Error: UNC at LBA = 0x00282340 = 2630464

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 08 28 40 23 28 40 00      09:19:58.747  READ FPDMA QUEUED
  ef 10 02 00 00 00 a0 00      09:19:58.745  SET FEATURES [Enable SATA feature]
  27 00 00 00 00 00 e0 00      09:19:58.745  READ NATIVE MAX ADDRESS EXT [OBS-ACS-3]
  ec 00 00 00 00 00 a0 00      09:19:58.744  IDENTIFY DEVICE
  ef 03 45 00 00 00 a0 00      09:19:58.744  SET FEATURES [Set transfer mode]

Error 662 occurred at disk power-on lifetime: 14730 hours (613 days + 18 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 08 40 23 28 40  Error: UNC at LBA = 0x00282340 = 2630464

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 08 08 40 23 28 40 00      09:19:55.325  READ FPDMA QUEUED
  60 08 00 38 23 28 40 00      09:19:55.325  READ FPDMA QUEUED
  60 08 f0 30 23 28 40 00      09:19:55.325  READ FPDMA QUEUED
  60 08 e8 28 23 28 40 00      09:19:55.325  READ FPDMA QUEUED
  60 08 e0 20 23 28 40 00      09:19:55.324  READ FPDMA QUEUED

Error 661 occurred at disk power-on lifetime: 14729 hours (613 days + 17 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 08 10 e7 fd 40  Error: UNC at LBA = 0x00fde710 = 16639760

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 08 08 10 e7 fd 40 00      07:48:15.972  READ FPDMA QUEUED
  ef 10 02 00 00 00 a0 00      07:48:15.970  SET FEATURES [Enable SATA feature]
  27 00 00 00 00 00 e0 00      07:48:15.970  READ NATIVE MAX ADDRESS EXT [OBS-ACS-3]
  ec 00 00 00 00 00 a0 00      07:48:15.969  IDENTIFY DEVICE
  ef 03 45 00 00 00 a0 00      07:48:15.969  SET FEATURES [Set transfer mode]

Error 660 occurred at disk power-on lifetime: 14729 hours (613 days + 17 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 e0 10 e7 fd 40  Error: UNC at LBA = 0x00fde710 = 16639760

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 08 e0 10 e7 fd 40 00      07:48:12.536  READ FPDMA QUEUED
  60 10 d8 70 99 8e 40 00      07:48:12.527  READ FPDMA QUEUED
  60 d0 d0 f0 e6 8f 40 00      07:48:12.512  READ FPDMA QUEUED
  60 90 c8 70 8b 8e 40 00      07:48:12.510  READ FPDMA QUEUED
  60 20 50 50 8b 8e 40 00      07:48:12.497  READ FPDMA QUEUED

Error 659 occurred at disk power-on lifetime: 14729 hours (613 days + 17 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 b8 10 e7 fd 40  Error: UNC at LBA = 0x00fde710 = 16639760

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 08 b8 10 e7 fd 40 00      07:48:09.063  READ FPDMA QUEUED
  ef 10 02 00 00 00 a0 00      07:48:09.062  SET FEATURES [Enable SATA feature]
  27 00 00 00 00 00 e0 00      07:48:09.062  READ NATIVE MAX ADDRESS EXT [OBS-ACS-3]
  ec 00 00 00 00 00 a0 00      07:48:09.061  IDENTIFY DEVICE
  ef 03 45 00 00 00 a0 00      07:48:09.061  SET FEATURES [Set transfer mode]

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     15085         -
# 2  Short offline       Completed without error       00%     15069         -
# 3  Short offline       Completed without error       00%     15051         -
# 4  Short offline       Completed without error       00%     15034         -
# 5  Short offline       Completed without error       00%     15017         -
# 6  Short offline       Completed without error       00%     14997         -
# 7  Short offline       Completed without error       00%     14979         -
# 8  Short offline       Completed without error       00%     14958         -
# 9  Short offline       Completed without error       00%     14940         -
#10  Short offline       Completed without error       00%     14920         -
#11  Short offline       Completed without error       00%     14900         -
#12  Short offline       Completed without error       00%     14879         -
#13  Short offline       Completed without error       00%     14855         -
#14  Short offline       Completed without error       00%     14834         -
#15  Short offline       Completed without error       00%     14831         -
#16  Short offline       Completed without error       00%     14828         -
#17  Short offline       Completed without error       00%     14827         -
#18  Short offline       Completed without error       00%     14821         -
#19  Short offline       Completed without error       00%     14802         -
#20  Short offline       Completed without error       00%     14780         -
#21  Short offline       Completed without error       00%     14774         -

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.

sergio@linux-p6yn:~> 


…looks not that good for your HDD.

You could take out the HDD and do a

smartctl -t long /dev/sdX

on another opensuse with the HDD attached (replace /dev/sdX by the correct device). Then you will learn more about the status of the HDD, the test will take about 2 hours…

You could try changing the SATA cable first (if it’s not a notebook…).