LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-04-2019, 02:49 PM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,963

Rep: Reputation: 271Reputation: 271Reputation: 271
Capturing hard disk failure when disk is unwritable


I was listening to some audio files this morning. When I went to do something on the computer I saw hard disk failure reports scrolling past. The disk was inaccessible, read or write, but the audio file continued to play. I was too lazy to try to write down the error message. I had to use the power switch to reboot, then ran
Code:
shutdown now -Fr
. The disk checked out. The same happened to me a few days ago. There are no errors in the logs.

If I partition the disk into more partitions, keep the apps and logs on a partition separate from the data, will I be more likely to have a failure only on the data disk and still be able to run programs, capture error messages? Or is this more likely a failure of the hardware than the medium?

The computer and drive are 9 years old. Should I get a new computer or just a new disk?
 
Old 02-04-2019, 03:00 PM   #2
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
If you're starting to get disk errors on a reasonably consistent basis then you should replace the disk. Note though that the problem could be a faulty cable, connector or other component. Have you done a SMART check of the disk?

If you feel that it's time to replace your computer anyway then you can replace both computer and disk. That's your call to make as you know what your setup and requirements are.

I hope that you have your data backed up.
 
1 members found this post helpful.
Old 02-04-2019, 08:37 PM   #3
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,963

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by hydrurga View Post
If you're starting to get disk errors on a reasonably consistent basis then you should replace the disk. Note though that the problem could be a faulty cable, connector or other component. Have you done a SMART check of the disk?
No. I had forgotten about SMART. When it first appeared my disk wasn't SMART-capable; I haven't thought about it since. It's underway. Thanks.

Quote:
Originally Posted by hydrurga View Post
I hope that you have your data backed up.
Yes, of course; the PATA disk of my old computer: it's my backup disk. It's still working! (and un-SMART)
 
Old 02-05-2019, 10:06 AM   #4
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,963

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
smartd[16740]: Device: /dev/sda [SAT], FAILED SMART self-check. BACK UP DATA NOW!
smartd[16740]: Device: /dev/sda [SAT], Failed SMART usage Attribute: 5 Reallocated_Sector_Ct.
smartd[16740]: Device: /dev/sda [SAT], previous self-test completed with error (unknown test element)
How do I interpret this, other than that SMART finds problems with my disk?
 
Old 02-05-2019, 11:01 AM   #5
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Ensure your data is backed up and replace the disk.
 
Old 02-19-2019, 10:48 AM   #6
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,963

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by hydrurga View Post
Ensure your data is backed up and replace the disk.
I bought a new disk. I get the same failure. This is an internal drive in a laptop, so there is no cable. Considering the failures of the CD drive and USB ports, I should probably have replaced the whole computer. sigh.
 
Old 02-19-2019, 11:20 AM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by RandomTroll View Post
I bought a new disk. I get the same failure. This is an internal drive in a laptop, so there is no cable. Considering the failures of the CD drive and USB ports, I should probably have replaced the whole computer. sigh.
Oh well. Computers don't last forever - looks like you'll need to get a new one. At least now you have a spare drive in case anything goes wrong with the drive on the new computer.

By the way, you didn't mention the failure of the CD drive and USB ports. That would have definitely affected the diagnosis.
 
Old 02-19-2019, 09:20 PM   #8
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,963

Original Poster
Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by hydrurga View Post
you didn't mention the failure of the CD drive and USB ports. That would have definitely affected the diagnosis.
The CD stopped burning after 2 or 3 years. I switched to backing up to an external disk but could still read the occasional CD, so I forgot about it. When trying to install on a new drive, I needed to boot off something other than the hard drive, which drove me to make a boot DVD (on a library machine). Only when that didn't work did I know the CD wasn't reading anymore. I've attributed problems of USB devices to the devices, but the closer attention I had to pay to trying to make a boot USB drive finally provided the evidence that points to the USB hardware. I've replaced the keyboard twice. The CPU and RAM are enough for me; the screen is nearly perfect; now it seems the drive was good too: it seems a shame to ditch it for such minor problems.
 
  


Reply



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
config.php "Found, Unwritable" mrlucio79 Linux - Software 1 11-24-2010 08:59 AM
why does auto-mounting make files unwritable? newbiesforever Linux - General 1 08-03-2008 06:14 PM
Bootsector Unwritable hamish Linux - Software 3 04-16-2005 07:03 AM
"$Home is unwritable" error for all but root confusedpenguin Linux - Newbie 2 03-15-2005 07:45 AM
Unwritable windows partition AliasE Linux - General 6 01-13-2004 12:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:29 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