Announcement

Collapse
No announcement yet.

Extremely long boot time

Collapse
This topic has been answered.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #46
    also this please
    Code:
    journalctl -b -o short-monotonic --no-pager | awk '$1+0 >= 20 && $1+0 <= 110'
    That pulls every journal line with a monotonic timestamp between 20s and 110s, across all units — which should make disk contention (or lack of it) visible directly, rather than inferring it from ordering.
    Also worth checking
    Code:
    sudo smartctl -a /dev/sda
    ▁ ▂ ▄ ▅ ▆ ▇ █ ᄂIПЦX FӨЯ ᄂIFΣ █ ▇ ▆ ▅ ▄ ▂ ▁

    Comment


      #47
      journalctl -b -o short-monotonic --no-pager | awk '$1+0 >= 20 && $1+0 <= 110'
      No output. Immediate return to prompt.


      sudo smartctl -a /dev/sda
      [sudo: authenticate] Password:
      smartctl 7.5 2025-04-30 r5714 [x86_64-linux-7.0.0-30-generic] (local build)
      Copyright (C) 2002-25, Bruce Allen, Christian Franke, www.smartmontools.org

      === START OF INFORMATION SECTION ===
      Model Family: Hitachi Travelstar 5K500.B
      Device Model: Hitachi HTS545050B9A300
      Serial Number: 110314PBG4081727SSHV
      LU WWN Device Id: 5 000cca 5f6dfb6ca
      Firmware Version: PB4OCA1G
      User Capacity: 500,107,862,016 bytes [500 GB]
      Sector Size: 512 bytes logical/physical
      Rotation Rate: 5400 rpm
      Form Factor: 2.5 inches
      Device is: In smartctl database 7.5/5706
      ATA Version is: ATA8-ACS T13/1699-D revision 6
      SATA Version is: SATA 2.6, 3.0 Gb/s
      Local Time is: Mon Aug 24 15:56:18 2026 CDT
      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: ( 645) 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: ( 158) 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 0x002f 100 091 062 Pre-fail Always - 0
      2 Throughput_Performance 0x0025 100 100 040 Pre-fail Offline - 0
      3 Spin_Up_Time 0x0023 139 100 033 Pre-fail Always - 2
      4 Start_Stop_Count 0x0032 096 096 000 Old_age Always - 6736
      5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0
      7 Seek_Error_Rate 0x002f 100 100 067 Pre-fail Always - 0
      8 Seek_Time_Performance 0x0025 100 100 040 Pre-fail Offline - 0
      9 Power_On_Hours 0x0032 054 054 000 Old_age Always - 20430
      10 Spin_Retry_Count 0x0033 100 100 060 Pre-fail Always - 0
      12 Power_Cycle_Count 0x0032 098 098 000 Old_age Always - 4553
      183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
      184 End-to-End_Error 0x0033 100 100 097 Pre-fail Always - 0
      187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 57032871379120
      188 Command_Timeout 0x0032 096 013 000 Old_age Always - 7528
      190 Airflow_Temperature_Cel 0x0022 075 052 045 Old_age Always - 25 (Min/Max 25/25)
      191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 23
      192 Power-Off_Retract_Count 0x0032 099 099 000 Old_age Always - 13304011
      193 Load_Cycle_Count 0x0032 077 077 000 Old_age Always - 230236
      196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
      197 Current_Pending_Sector 0x0032 100 100 000 Old_age Always - 0
      198 Offline_Uncorrectable 0x0030 100 100 000 Old_age Offline - 0
      199 UDMA_CRC_Error_Count 0x0036 100 100 000 Old_age Always - 0
      223 Load_Retry_Count 0x002a 100 100 000 Old_age Always - 0

      SMART Error Log Version: 1
      No Errors Logged

      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% 1836 -
      # 2 Short offline Completed without error 00% 85 -
      # 3 Extended offline Aborted by host 90% 85 -

      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.

      The above only provides legacy SMART information - try 'smartctl -x' for more


      Slava Ukraini! 🇺🇦
      Windows no longer obstruct my view.
      Using Kubuntu Linux since March 23, 2007.
      "It is a capital mistake to theorize before one has data." - Sherlock Holmes

      Comment


        #48
        ok...ONE last test ..please lol

        Code:
        sudo time /etc/init.d/grub-common start
        ▁ ▂ ▄ ▅ ▆ ▇ █ ᄂIПЦX FӨЯ ᄂIFΣ █ ▇ ▆ ▅ ▄ ▂ ▁

        Comment


          #49
          sudo time /etc/init.d/grub-common start
          [sudo: authenticate] Password:
          Starting grub-common (via systemctl): grub-common.service.
          0.01user 0.02system 0:00.06elapsed 60%CPU (0avgtext+0avgdata 8432maxresident)k
          48inputs+0outputs (0major+2529minor)pagefaults 0swaps


          Slava Ukraini! 🇺🇦
          Windows no longer obstruct my view.
          Using Kubuntu Linux since March 23, 2007.
          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

          Comment


            #50
            ok from all we saw... the short version:
            It's not GRUB, it's not Snap, and it's not a settings problem. Your hard drive is old and wearing out, and that's what's causing the slow boot.
            -We proved the GRUB commands themselves are basically instant when run by hand — so GRUB was never actually the problem, just the thing showing the symptom.
            -Your SMART data (the drive's own internal health log) shows a Command_Timeout count that's driven that attribute down to 13 out of 100 — a score that low means this drive has racked up thousands of moments where it failed to respond to a request in time and had to retry. That's a real red flag, not a Linux config issue.
            -Your drive has also parked its read/write heads over 230,000 times and has 20,000+ hours on it — it's a well-used mechanical drive from roughly 2011, and it's aging out.
            -Put together: when your system is doing lots of things at once at boot (Snap mounting things, the daily update check, log cleanup, etc.), the drive gets overloaded and starts timing out and retrying — and that's what turns a normally-instant GRUB step into a 60-95 second wait. When you run things one at a time by hand, there's no overload, so everything looks fast — which is exactly the pattern we saw.

            Best fix: back up your data and replace this hard drive with an SSD. This will almost certainly fix the slow boot completely, and your whole system will feel faster in general.
            If you can't replace it yet: you can try reducing how often the drive spins down and back up, which puts less wear on it:
            Code:
            sudo hdparm -B 254 /dev/sda
            This won't fix the underlying wear, but may reduce how often you hit the worst-case slow boots in the meantime.
            Backup your data soon regardless — a drive with this kind of timeout history can fail without much more warning, so treat this as a "get your files off it" priority, not just a performance annoyance.
            There's nothing wrong with your Kubuntu install, your GRUB config, or Snap — this is a hardware issue that's been surfacing through software symptoms.
            ▁ ▂ ▄ ▅ ▆ ▇ █ ᄂIПЦX FӨЯ ᄂIFΣ █ ▇ ▆ ▅ ▄ ▂ ▁

            Comment


              #51
              This also seems bad:

              187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 57032871379120

              Meaning: 187 0xBB Reported Uncorrectable Errors The count of errors that could not be recovered using hardware ECC​

              My drive with 80,000+ hours is 0 and so is Command_Timeout.

              IMO however, that number seems out of whack. I'd check it once in awhile. If it's growing, the drive is dying. If it stays the same, it's likely a red herring.
              Last edited by oshunluvr; Today, 05:32 AM.

              Please Read Me

              Comment


                #52
                Thank you die.boer for all the effort you put into this to assist me in determining what is going on. oshunluvr: I Googled on the Vendor Specific SMART Attributes with Thresholds​ and ultimately giving Google's AI this information: Reported_Uncorrect 57032871379120 Toshiba/Hitachi 500GB SATA 2.5-inch HDD when it said: If you have a specific smartctl line or attribute output you are wondering about, share the attribute name, raw value, and brand of your drive and I can help you analyze

                This is what it replied with:

                A Reported_Uncorrect raw value of 57032871379120 indicates a critical hardware failure on your Toshiba/Hitachi hard drive.

                While some manufacturers pack multiple metrics into large SMART raw numbers, any non-zero value for this specific attribute means the drive's internal error correction code (ECC) could not recover corrupted data, and the read request had to be aborted.

                What This Value Means for Your Drive
                • Severe Data Corruption: Your drive has encountered sectors where data is physically unreadable. The internal software tried multiple times to fix the read error but failed completely.
                • Immediate Backup Required: This is a strong predictor of imminent drive failure. The operating system will likely experience sudden freezes, file corruption, or blue screens when trying to access the affected files.
                • Physical Media Degradation: Unlike temporary software glitches, uncorrectable errors usually stem from physical degradation of the magnetic platters, a failing read/write head, or severe scratches on the disk.
                Next Steps to Safeguard Your Data
                • Stop Stressing the Drive: Avoid running heavy disk scans, defragmentation tools, or stress tests. These activities put mechanical strain on an already failing drive and can accelerate complete failure.
                • Clone or Copy Crucial Files First: Do not try to back up the whole drive at once if it starts slowing down. Prioritize your absolute most important personal files (documents, photos) first.
                • Replace the Drive: This drive is no longer safe for operating systems, backups, or daily use. Once you harvest your data, the hardware should be replaced.
                Slava Ukraini! 🇺🇦
                Windows no longer obstruct my view.
                Using Kubuntu Linux since March 23, 2007.
                "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                Comment


                  #53
                  Welp, time for a new SSD!

                  Please Read Me

                  Comment


                    #54
                    FYI, Samsung is the way to go with SSDs. A few bucks more, but worth it. I have two old Samsung 840 PROs (2.5 SATA) with 88k and 80k power-on-hours and zero errors and no bad sectors reported.

                    If that's too rich, I also have a couple Crucial BX500s with only 8K hours, but no issues there either and about half the price of Samsung for the same size.
                    Last edited by oshunluvr; Today, 10:17 AM.

                    Please Read Me

                    Comment


                      #55
                      Originally posted by Snowhog View Post
                      Thank you die.boer for all the effort you put into this to assist me in determining what is going on. oshunluvr: I Googled on the Vendor Specific SMART Attributes with Thresholds​ and ultimately giving Google's AI this information: Reported_Uncorrect 57032871379120 Toshiba/Hitachi 500GB SATA 2.5-inch HDD when it said: If you have a specific smartctl line or attribute output you are wondering about, share the attribute name, raw value, and brand of your drive and I can help you analyze

                      This is what it replied with:

                      A Reported_Uncorrect raw value of 57032871379120 indicates a critical hardware failure on your Toshiba/Hitachi hard drive.

                      While some manufacturers pack multiple metrics into large SMART raw numbers, any non-zero value for this specific attribute means the drive's internal error correction code (ECC) could not recover corrupted data, and the read request had to be aborted.

                      What This Value Means for Your Drive
                      • Severe Data Corruption: Your drive has encountered sectors where data is physically unreadable. The internal software tried multiple times to fix the read error but failed completely.
                      • Immediate Backup Required: This is a strong predictor of imminent drive failure. The operating system will likely experience sudden freezes, file corruption, or blue screens when trying to access the affected files.
                      • Physical Media Degradation: Unlike temporary software glitches, uncorrectable errors usually stem from physical degradation of the magnetic platters, a failing read/write head, or severe scratches on the disk.
                      Next Steps to Safeguard Your Data
                      • Stop Stressing the Drive: Avoid running heavy disk scans, defragmentation tools, or stress tests. These activities put mechanical strain on an already failing drive and can accelerate complete failure.
                      • Clone or Copy Crucial Files First: Do not try to back up the whole drive at once if it starts slowing down. Prioritize your absolute most important personal files (documents, photos) first.
                      • Replace the Drive: This drive is no longer safe for operating systems, backups, or daily use. Once you harvest your data, the hardware should be replaced.
                      Do not believe on this A Reported_Uncorrect raw value of 57032871379120​ .

                      This is a well documented bug know involving hitachi drives presented with extremely high uncorrect value.

                      Look at ID 05,196,197 and 198. All of them are raw value = 0 , meaning the drive is still good.

                      Test the hitachi drive on a different system.

                      Comment

                      Users Viewing This Topic

                      Collapse

                      There is 1 user viewing this topic.

                      Working...
                      X