Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I've got thousands of lines in the course of a week like the following in /var/log/messages:
Code:
Feb 13 07:57:02 home kernel: ata1.00: exception Emask 0x0 SAct 0x40000000 SErr 0x0 action 0x0
Feb 13 07:57:02 home kernel: ata1.00: irq_stat 0x40000008
Feb 13 07:57:02 home kernel: ata1.00: failed command: READ FPDMA QUEUED
Feb 13 07:57:02 home kernel: ata1.00: cmd 60/08:f0:38:84:78/00:00:71:00:00/40 tag 30 ncq 4096 in#012 res 41/40:08:3a:84:78/00:00:71:00:00/00 Emask 0x409 (media error) <F>
Feb 13 07:57:02 home kernel: ata1.00: status: { DRDY ERR }
Feb 13 07:57:02 home kernel: ata1.00: error: { UNC }
Feb 13 07:57:02 home kernel: ata1.00: configured for UDMA/133
Feb 13 07:57:02 home kernel: sd 0:0:0:0: [sda] FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Feb 13 07:57:02 home kernel: sd 0:0:0:0: [sda] Sense Key : Medium Error [current] [descriptor]
Feb 13 07:57:02 home kernel: sd 0:0:0:0: [sda] Add. Sense: Unrecovered read error - auto reallocate failed
Feb 13 07:57:02 home kernel: sd 0:0:0:0: [sda] CDB: Read(10) 28 00 71 78 84 38 00 00 08 00
Feb 13 07:57:02 home kernel: blk_update_request: I/O error, dev sda, sector 1903723578
Feb 13 07:57:02 home kernel: ata1: EH complete
There seem to be only two sectors mentioned, the one above and more rarely sector 1534635077.
And I'm not quite sure about the status of my HDD which is rather old.
I've also run badblocks and I got this:
Code:
Checking blocks 0 to 976762583
Checking for bad blocks (read-only test): 767317536
767317537
767317538
767317539
951861788
951861789
951861790
951861791
done
Pass completed, 8 bad blocks found. (8/0/0 errors)
hdparm -I /dev/sda
Code:
ATA device, with non-removable media
Model Number: ST31000528AS
Serial Number: 9VPAQ8X7
Firmware Revision: CC46
Transport: Serial
The disk has only 3 bad sectors that have been detected thus far, and in terms of Power_On_Hours it's abot mid life (27580 hours is a little over 3 years), but I see it's a 2009 vintage drive, so by that measure it's getting a bit old. If you're in a mood to upgrade to a larger drive, by all means take this as a good time to replace it. Otherwise, take a look at the Bad block HOWTO for instructions on how to get the drive to remap those sectors and present a fault-free drive to the OS.
My data are backed up, so I'm not really worried about that. I'm actually more interested in how it behaves and how I could actually prolong its (NOT "it's", ffs )lifespan. I'll return after I've tested Ztcoracat's solution. By the way, your first link (which is useful, indeed) is the same as your second link and your third link doesn't work, but if I type "SMART" in the search box on wiki.archilinux, then I get there
Afterwards, I'll also have a look at rknichols's suggestion. Thanks!
and how I could actually prolong its (NOT "it's", ffs )lifespan.
If that's my grammar you're complaining about, I suggest you reread what I posted. Sorry about the typo in "abot", which of course should have been "about". Perhaps that confused you.
If that's my grammar you're complaining about, I suggest you reread what I posted. Sorry about the typo in "abot", which of course should have been "about". Perhaps that confused you.
It had nothing to do with whatever anyone wrote here. I didn't even notice your error, which belongs to a whole different category - it's just a common typo. I'm hardly a fluent speaker myself. I was just pointing out the fact that EVERYONE writes "it's" instead of "its". In the majority of articles about IT that I read on the internet this is how it's (or its?!) written and I find it... disturbing, because it makes no sense. And these are native speakers. But never mind that, I don't want to turn this thread into something else
My data are backed up, so I'm not really worried about that. I'm actually more interested in how it behaves and how I could actually prolong its (NOT "it's", ffs )lifespan. I'll return after I've tested Ztcoracat's solution. By the way, your first link (which is useful, indeed) is the same as your second link and your third link doesn't work, but if I type "SMART" in the search box on wiki.archilinux, then I get there
Afterwards, I'll also have a look at rknichols's suggestion. Thanks!
Sorry, just to end the grammar conflict, rknichols use of "it's" is correct.
means "it is getting a bit old"
whereas "its lifespan" means the lifespan of "it"
I also get picky about your and you're. The first being " belonging to you", the second means "you are" Don't start me on to and too!
End of anal post! Off to lie down in a darkened room again!
Play Bonny!
I never said that his use of "it's" was incorrect. I'm sorry for the confusion - what I said had NOTHING to do with anything anyone has written in this thread. I guess I should have been clearer. It was just something that stuck in my mind and it was UNRELATED to anyone here Sorry for being ambiguous.
I booted an ubuntu live cd and I tried using e2fsck -cfpv, but I can't see to be able to. I get "Cannot continue. Aborting". The hdd has two partitions, a simple ext4 boot partition (which I'm able to scan), and the second is actually LVM. I'm guessing the fact that it's lvm might have something to do with it. So where do I go from here? How can I scan a lvm partition without actually using it, i.e. outside the OS itself, with a live cd?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.