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 04-11-2019, 05:25 PM   #1
Mad-Halfling
LQ Newbie
 
Registered: Apr 2012
Posts: 23

Rep: Reputation: Disabled
Bad sectors and hard drive inconsistency


My Ubuntu 16.04 system started going into emergency mode, typically as I was just digging out my external drive to actually backup data. The errors I was getting were I/O errors on sda http://imgur.com/R6imc71. I found the partition recovery link on another post on here and found almost identical errors in there where it suggested running hdparm --read-sector to confirm the bad sector number, then --write-sector to zero it. This seemed to work ok with the bad sectors running 2056-2062. Restarting then put me back in emergency mode and checking journalctl -xb gives me errors on sda1 culminating in a message set of something like the following (these are the current errors, but they suggested the same solution, ref below), all referencing /dev/sda

Quote:
One or more block group descriptor checksum are invalid. FIXED
Group descriptor 0 checksum is 0xe148, should be 0xc1b4
unexpected inconsistency; run back manually without -a or -p).
I did this and it came up with a whole list of things which I said yes to fixing, but the list went on and on so eventually I aborted it.

Any suggestions on how to proceed? Is fsck likely to do more harm than good? Is there a bootable recovery distro that might be more constructive, or at least let me try to grab my data?

I'm sure the drive is ext4 and it's my data drive so my OS drive seems ok (they're separate physical devices)

Thanks - MH
 
Old 04-11-2019, 08:07 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Assuming the system is sound I'd think that almost any live media could get your data.

I get the feeling that maybe you should take the disk to a different system maybe? No clear way to proceed. We haven't proven any part good or bad yet. Ram, cpu power supply cables or drive could be suspect at this point or even motherboard.

Others may have some ideas.
 
Old 04-12-2019, 01:29 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
i think the most important thing is to
  1. switch off the machine and/or stop mounting the drive in question in read/write mode, immediately
  2. take a deep breath
  3. gather resources (i.e. RTFM, on- and offline) and think up a strategy about how to assess the state of the drive
  4. consider taking a full copy (yes, that might mean you need to go out and buy another drive - bonus: from now on, you can use the newly purchased drive for backups)
  5. maybe try to fix the old one

and oh, did i say it already: take backups!
 
  


Reply

Tags
fsck



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 05:58 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