LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-06-2016, 11:56 AM   #1
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Rep: Reputation: 11
My system is running extremely slowly. No idea what happened.


I was just browsing the web with firefox and suddenly pages started taking forever to load and firefox started to hang for several seconds at a time. I terminated firefox because it was not responding, but it just hung instead. I had SMPlayer open and it started to hang as well even after trying to terminate it. Ctrl+alt+backspace just caused the system to freeze.

So I rebooted with a usb stick and ran fsck on all the partitions. The home and root partitions needed repaired, so I did that. I rebooted again and it took at least 10 minutes just to get to the desktop. Some of my configuration has been reset; the default desktop background is back, and the whisker menu settings have reverted to default. Everything is still very slow and unresponsive. I tried to play Minecraft but it's like a slideshow with all the freezing. Even web pages are slow to load and my internet is working fine.

This happened before in the past and I fixed it by either reinstalling Slackware or running fsck like I just did. Well fsck isn't fixing the problem now and I'd rather not reinstall.

I'm at a loss right now as to how I can diagnose and/or fix this. I'm afraid it might be the hard drive failing, even though it's only a few months old.

Please help me Slackware gurus!
 
Old 06-06-2016, 12:06 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Did you run smartctl test?
 
Old 06-06-2016, 12:23 PM   #3
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
one of your disk partitions might be full.... 'df'
 
Old 06-06-2016, 12:37 PM   #4
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by Emerson View Post
Did you run smartctl test?
I did this. The result is "PASSED".

Quote:
Originally Posted by 55020 View Post
one of your disk partitions might be full.... 'df'
It's just /home and / and they're both less than 20% full.
 
Old 06-06-2016, 12:47 PM   #5
55020
Senior Member
 
Registered: Sep 2009
Location: Yorks. W.R. 167397
Distribution: Slackware
Posts: 1,307
Blog Entries: 4

Rep: Reputation: Disabled
Ok, it's demons.
 
2 members found this post helpful.
Old 06-06-2016, 12:54 PM   #6
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Considering all information provided so far there seems to be filesystem corruption. Usual reason for this is dying hard drive, unless there are improper shutdowns. I'd have closer look at smartctl -a output after smartctl -t long.
 
Old 06-06-2016, 01:12 PM   #7
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Original Poster
Rep: Reputation: 11
I started the long test, it will take 2 1/2 hours. Most of the output of smartctl is over my head, but I did notice this:

Code:
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed: read failure       90%     28640         144421920
# 2  Short offline       Completed without error       00%     28639         -
I guess this is the output of the short test I did previously. That error is a bit worrying...
 
Old 06-06-2016, 01:17 PM   #8
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Last test did not pass, it failed at 10%. This hard drive is toast.
 
Old 06-06-2016, 01:43 PM   #9
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Original Poster
Rep: Reputation: 11
Well that sucks.

That output shows the LBA of the error, which appears to be somewhere in my /home partition. Can I locate the file at that LBA and do something to try and fix it? Are we positive it's the hardware?
 
Old 06-06-2016, 01:49 PM   #10
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Look at reallocated sector count and pending reallocation sector count. If these numbers are over threshold the drive is unreliable in my experience and should be replaced.
 
1 members found this post helpful.
Old 06-06-2016, 01:53 PM   #11
kjhambrick
Senior Member
 
Registered: Jul 2005
Location: Round Rock, TX
Distribution: Slackware64 15.0 + Multilib
Posts: 2,159

Rep: Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512Reputation: 1512
Quote:
Originally Posted by ahc_fan View Post
Well that sucks.

That output shows the LBA of the error, which appears to be somewhere in my /home partition. Can I locate the file at that LBA and do something to try and fix it? Are we positive it's the hardware?
Maybe boot single user mode and run fsck ?

Especially if you know the partition ( /dev/sdaN ) that contains /home/

man fsck

you might be able to clean up enough to back up essential stuff to prep for a new HDD.

HTH.

-- kjh
 
Old 06-07-2016, 03:40 AM   #12
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by ahc_fan View Post
Well that sucks.

That output shows the LBA of the error, which appears to be somewhere in my /home partition. Can I locate the file at that LBA and do something to try and fix it? Are we positive it's the hardware?
It's certainly the hard drive. Sector 144421920 is apparently unreadable.

I have an old external hard drive that was showing exactly the same thing:

Code:
# smartctl -d sat -l selftest /dev/sde
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-3.10.17] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed: read failure       50%     14418         439285046
# 2  Short offline       Completed without error       00%     14418         -
# 3  Short offline       Completed without error       00%     11265         -
# 4  Short offline       Completed without error       00%     10569         -
# 5  Extended offline    Completed: read failure       50%     10538         439285046
# 6  Short offline       Completed without error       00%     10537         -
# 7  Extended offline    Completed: read failure       50%     10537         439285046
# 8  Short offline       Completed without error       00%     10536         -
# 9  Short offline       Completed without error       00%      6517         -
#10  Short offline       Completed without error       00%      6513         -
#11  Extended offline    Completed without error       00%      6508         -
#12  Short offline       Completed without error       00%      6506         -
Look for pending sectors and reallocated events in the output of smartctl. For instance, this is what my drive was showing:

Code:
# smartctl -d sat -A /dev/sde
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-3.10.17] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
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   016    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0005   133   133   054    Pre-fail  Offline      -       138
  3 Spin_Up_Time            0x0007   113   113   024    Pre-fail  Always       -       335 (Average 344)
  4 Start_Stop_Count        0x0012   099   099   000    Old_age   Always       -       5514
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       2
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   131   131   020    Pre-fail  Offline      -       29
  9 Power_On_Hours          0x0012   098   098   000    Old_age   Always       -       14421
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       1507
192 Power-Off_Retract_Count 0x0032   096   096   000    Old_age   Always       -       5746
193 Load_Cycle_Count        0x0012   096   096   000    Old_age   Always       -       5746
194 Temperature_Celsius     0x0002   127   127   000    Old_age   Always       -       47 (Min/Max 20/58)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       2
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       1
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0
After following the steps in the Bad block HOWTO for smartmontools, I was able to force the drive to reallocate the damage sector, and now the self test passes without errors, so the drive is not really toast yet, it works. However, the possibility of developing more bad sectors is extremely high now that the first one appeared, so I simply don't trust anymore any disk in this condition. I suggest you to replace yours.

This is what smartctl reports after following the Bad block HOWTO:

Code:
# smartctl -d sat -A /dev/sde
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-3.10.17] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
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   098   098   016    Pre-fail  Always       -       5
  2 Throughput_Performance  0x0005   133   133   054    Pre-fail  Offline      -       138
  3 Spin_Up_Time            0x0007   113   113   024    Pre-fail  Always       -       335 (Average 344)
  4 Start_Stop_Count        0x0012   099   099   000    Old_age   Always       -       5514
  5 Reallocated_Sector_Ct   0x0033   100   100   005    Pre-fail  Always       -       3
  7 Seek_Error_Rate         0x000b   100   100   067    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0005   131   131   020    Pre-fail  Offline      -       29
  9 Power_On_Hours          0x0012   098   098   000    Old_age   Always       -       14422
 10 Spin_Retry_Count        0x0013   100   100   060    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       1507
192 Power-Off_Retract_Count 0x0032   096   096   000    Old_age   Always       -       5746
193 Load_Cycle_Count        0x0012   096   096   000    Old_age   Always       -       5746
194 Temperature_Celsius     0x0002   127   127   000    Old_age   Always       -       47 (Min/Max 20/58)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       3
197 Current_Pending_Sector  0x0022   100   100   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0008   100   100   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x000a   200   200   000    Old_age   Always       -       0
And no errors after the extended test:

Code:
# smartctl -d sat -t long /dev/sde  [wait until test completes, then]
# smartctl -d sat -l selftest /dev/sde
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-3.10.17] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Extended offline    Completed without error       00%     14424         -
# 2  Extended offline    Completed: read failure       50%     14418         439285046
# 3  Short offline       Completed without error       00%     14418         -
# 4  Short offline       Completed without error       00%     11265         -
# 5  Short offline       Completed without error       00%     10569         -
# 6  Extended offline    Completed: read failure       50%     10538         439285046
# 7  Short offline       Completed without error       00%     10537         -
# 8  Extended offline    Completed: read failure       50%     10537         439285046
# 9  Short offline       Completed without error       00%     10536         -
#10  Short offline       Completed without error       00%      6517         -
#11  Short offline       Completed without error       00%      6513         -
#12  Extended offline    Completed without error       00%      6508         -
#13  Short offline       Completed without error       00%      6506         -
3 of 3 failed self-tests are outdated by newer successful extended offline self-test # 1
Hope that helps.
 
7 members found this post helpful.
Old 06-07-2016, 05:01 AM   #13
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Original Poster
Rep: Reputation: 11
That has at least fixed the problem for the time being. Everything is running smooth as silk again. Hopefully it will buy me time to get another hard drive.

Thanks
 
Old 06-22-2016, 10:49 AM   #14
ahc_fan
Member
 
Registered: Jan 2009
Location: Seattle, WA
Distribution: Slackware64 14.2
Posts: 259

Original Poster
Rep: Reputation: 11
Well that worked for a while, but sure enough the bad blocks are back. But now I have a new drive. Is it possible to clone this failing drive to the new one using dd? If so, will it skip bad blocks if encountered? The last 'smartctl' scan reports no bad blocks. I just don't want to go through the process of reinstalling Slackware, updating, and rebuilding all my software right now.
 
Old 06-22-2016, 11:00 AM   #15
phenixia2003
Senior Member
 
Registered: May 2006
Location: France
Distribution: Slackware
Posts: 1,052

Rep: Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008Reputation: 1008
Hello,

Quote:
Originally Posted by ahc_fan View Post
Well that worked for a while, but sure enough the bad blocks are back. But now I have a new drive. Is it possible to clone this failing drive to the new one using dd? If so, will it skip bad blocks if encountered? The last 'smartctl' scan reports no bad blocks. I just don't want to go through the process of reinstalling Slackware, updating, and rebuilding all my software right now.
Seems that you can use dd, but with options conv=noerror,sync :

http://www.cgsecurity.org/wiki/Damag...using_.27dd.27

There's also ddrescue (shipped with slackware) as stated here.

--
SeB
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Printing is extremely slowly tonreg CentOS 16 11-12-2015 12:52 PM
AMD Radeon R7 240 graphics card causing Fedora to function extremely slowly (~1 fps) UltrasonicMadness Linux - Hardware 5 05-04-2014 06:14 PM
Fedora 12,64 bit working extremely buggy and slowly(pictures included) removed028 Linux - Desktop 2 12-30-2009 03:51 PM
Ubuntu Studio 8 runs extremely slowly MrRandomPerson Ubuntu 3 02-11-2009 08:44 PM
NeverWinter Nights running extremely slowly... Eerath Linux - Games 2 08-31-2005 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration