LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-23-2020, 09:17 AM   #16
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486

Every error displayed has the same sector count and address. To me that indicates a physical defect in the drive.

With that said, however, those errors were all recorded just 4 operational hours before the current hours and no sectors show as relocated so it may be a momentary glitch or it may be the start of a major failure. I would suggest watching it, but keeping current backups just in case.
 
Old 11-23-2020, 09:55 AM   #17
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,815

Rep: Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238
What is the filesystem on partition 3? The Bad Block HOWTO shows, for some filesystems, examples of identifying affected files and rewriting bad sectors to cause them to be reallocated.

It's really unfortunate that this drive does not report the Current_Pending_Sector count. That count would indicate whether it is worthwhile to go through the fairly lengthy steps in the Bad Block HOWTO for each bad sector.
 
Old 11-23-2020, 02:50 PM   #18
kosmo333
LQ Newbie
 
Registered: Nov 2020
Posts: 27

Original Poster
Rep: Reputation: Disabled
sdb3 ext4 filesystem.
 
Old 11-23-2020, 05:41 PM   #19
rknichols
Senior Member
 
Registered: Aug 2009
Distribution: Rocky Linux
Posts: 4,815

Rep: Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238Reputation: 2238
Quote:
Originally Posted by kosmo333 View Post
sdb3 ext4 filesystem.
The HOWTO instructions for ext2/3 should still apply.
  1. Sector offset = 241896648-7010304 = 234886344
  2. FS block = 234886344/8 = 29360793
  3. Running "debugfs /dev/sdb3" and then its "testb 29360793" command should reveal which, if any, inode is using the block. You can then use the "icheck" command to reveal which named file is affected.
Note that if the bad sector is actually holding filesystem metadata, "testb" will indicate no inode is using the block (it only checks for mapped data blocks). Determining just what metadata is using that block is difficult, but you can just zero the bad sector and let fsck figure out and correct what is now wrong with the filesystem.
 
  


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
how do I check my hard disk for errors. possible hard disk failure lgtrean Linux - Hardware 6 06-22-2011 04:06 PM
mounting linux files from another hard disk(IDE) to current hard disk(sata) the lord protector Linux - Hardware 5 05-04-2008 11:30 AM
LXer: How do I test if my Linux server SCSI / SATA hard disk going bad? LXer Syndicated Linux News 0 08-07-2007 09:01 AM
SATA Hard disk(Windows) MBR corrupted by IDE hard disk(Linux) Peter_APIIT Fedora 6 07-07-2007 12:20 AM
Errors, Errors, and more Errors (KDE 3.4.x GUI Errors) Dralnu Linux - Software 2 05-13-2006 08:30 AM

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

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