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


Closed Thread
  Search this Thread
Old 06-18-2021, 10:26 AM   #1
ScatteredThunder
Member
 
Registered: May 2021
Posts: 44

Rep: Reputation: Disabled
Recovering/reallocating hard drive with bad sectors?


Okay.

I've been trying to revive a bad 3TB hard drive from Seagate with allegdly 20 bad blocks using e2fsck:

Code:
sudo e2fsck -c /dev/sdb1
https://ibb.co/GR7pzdc

What can you say about the health of this hard drive from the screenshot above?

Does that mean the 20 bad blocks were reallocated appropriately so that they will not be used by the OS?
 
Old 06-18-2021, 11:03 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,991

Rep: Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889
I would rather buy a new drive, copy content - as long as you can - and forget this one.
 
Old 06-18-2021, 11:20 AM   #3
ScatteredThunder
Member
 
Registered: May 2021
Posts: 44

Original Poster
Rep: Reputation: Disabled
Oops, sorry wrong screenshot.

The following screenshot is the correct one:

https://ibb.co/VqMy7nc
 
Old 06-18-2021, 11:25 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,991

Rep: Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889
yes, theoretically that 20 bad blocks were reallocated and will not be used any more. But you will never know if there will be another 20 bad blocks or 200 or 2000....
That drive is not 100% reliable any more (at least what I think).
 
Old 06-18-2021, 11:48 AM   #5
ScatteredThunder
Member
 
Registered: May 2021
Posts: 44

Original Poster
Rep: Reputation: Disabled
Thank you!

But like does that mean only the current OS (in this case Ubuntu) is set not to use those 20 bad blocks or any other OS will do the same too?

I guess what I'm trying to ask is did e2fsck apply a modification on a OS level or in the hard drive itself?

Last edited by ScatteredThunder; 06-18-2021 at 11:50 AM.
 
Old 06-18-2021, 11:51 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,422

Rep: Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590Reputation: 2590
FYI, there appear to be two threads already by the same OP on this same dud drive
https://www.linuxquestions.org/quest...ck-4175695779/

And

https://www.linuxquestions.org/quest...sk-4175696434/
 
Old 06-18-2021, 11:56 AM   #7
ScatteredThunder
Member
 
Registered: May 2021
Posts: 44

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
FYI, there appear to be two threads already by the same OP on this same dud drive
https://www.linuxquestions.org/quest...ck-4175695779/

And

https://www.linuxquestions.org/quest...sk-4175696434/
Of course there are.

These are different subjects: one is recovering data and the other is how to reallocate bad sectors.

If you want to help, feel free to contribute to the subject.
 
Old 06-18-2021, 11:58 AM   #8
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,991

Rep: Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889Reputation: 7889
Quote:
Originally Posted by ScatteredThunder View Post
Thank you!

But like does that mean only the current OS (in this case Ubuntu) is set not to use those 20 bad blocks or any other OS will do the same too?

I guess what I'm trying to ask is did e2fsck apply a modification on a OS level or in the hard drive itself?
it was set inside the hard drive, not on OS level.
 
Old 06-18-2021, 12:01 PM   #9
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,028
Blog Entries: 27

Rep: Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate. 3 threads that seem to be for the same issue.

https://www.linuxquestions.org/quest...sk-4175696434/

https://www.linuxquestions.org/quest...ck-4175695779/
 
  


Closed Thread


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
LVM: pvcreate fails on 5TB drive with "pe_align (2048 sectors) must not be less than pe_align_offset (8388607 sectors)" furryspider Slackware 12 10-14-2016 05:21 PM
LXer: Check Hard drive for bad sectors or bad blocks in linux LXer Syndicated Linux News 0 08-11-2014 08:00 AM
LXer: Check Hard drive for bad sectors or bad blocks in linux LXer Syndicated Linux News 0 08-10-2014 12:21 AM
re-allocated sectors count shows 2 bad sectors, in Ubuntu 10.04 disk utility james2b Linux - Hardware 4 10-12-2010 11:16 PM
How to I check a Linux formated hard drive for bad sectors NewtoLinuxWorld Linux - Hardware 1 02-27-2004 03:46 AM

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

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