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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
06-18-2021, 10:26 AM
|
#1
|
Member
Registered: May 2021
Posts: 44
Rep: 
|
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?
|
|
|
06-18-2021, 11:03 AM
|
#2
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,991
|
I would rather buy a new drive, copy content - as long as you can - and forget this one.
|
|
|
06-18-2021, 11:20 AM
|
#3
|
Member
Registered: May 2021
Posts: 44
Original Poster
Rep: 
|
Oops, sorry wrong screenshot.
The following screenshot is the correct one:
https://ibb.co/VqMy7nc
|
|
|
06-18-2021, 11:25 AM
|
#4
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,991
|
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).
|
|
|
06-18-2021, 11:48 AM
|
#5
|
Member
Registered: May 2021
Posts: 44
Original Poster
Rep: 
|
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.
|
|
|
06-18-2021, 11:51 AM
|
#6
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,422
|
|
|
|
06-18-2021, 11:56 AM
|
#7
|
Member
Registered: May 2021
Posts: 44
Original Poster
Rep: 
|
Quote:
Originally Posted by business_kid
|
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.
|
|
|
06-18-2021, 11:58 AM
|
#8
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,991
|
Quote:
Originally Posted by ScatteredThunder
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.
|
|
|
All times are GMT -5. The time now is 06:57 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|