LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-05-2022, 08:46 AM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,613

Rep: Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618
Best disk repair tools?


My ext4 backup (rotating) disk has died. I get this error
Code:
Group 0's block bitmap at 16777216 conflicts with some other fs block.
It can't rewrite block 16777216 anyhow, and the next errors will be for groups 1,2,3, … -->∞.

I was guessing something filesystem pivotal was stored on block 16777216,which accounts for the massive error count. But likewise, block 16777216 must have a massive number of read/writes.

I don't need the data, as I have 90% of the backup backed up on an offline disk. What I do know is that surgery is required and I need the best filesystem tools to see if the disk is worth saving. Probably not.

Is there a way to prevent to repeat occurrence? Likewise, what format offers good repair tools?
 
Old 01-05-2022, 09:23 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,296
Blog Entries: 21

Rep: Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800Reputation: 4800
Probably it's the superblock. There are copies of it scattered through the filesystem and they're supposed to be identical.
 
Old 01-05-2022, 11:25 AM   #3
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 653

Rep: Reputation: 243Reputation: 243Reputation: 243
Don't know what the 'best' repair tool is but I'd check into fsck as it seems to be popular. I've personally not had to 'fix' a drive. The few times I've had 'bad' drives they were 'clicking and making funny noises' ... I just replaced. The disk format I always use is ext4 for all my systems (and backup internal and external drives). No LVM either. Just ext4. Always have had good luck with it.

Last edited by rclark; 01-05-2022 at 11:32 AM.
 
Old 01-05-2022, 11:44 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,339

Rep: Reputation: 7986Reputation: 7986Reputation: 7986Reputation: 7986Reputation: 7986Reputation: 7986Reputation: 7986Reputation: 7986Reputation: 7986Reputation: 7986Reputation: 7986
first of all I would try smartctl. And replace disk.
 
Old 01-05-2022, 01:08 PM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,613

Original Poster
Rep: Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618
It's a backup disk primarily, but it's been online 100% of the time lately. Nothing gets used except at backups and two directories. So to my mind, it's died young. I'm buying one but as an ex-maintenance guy, I'm interested.

Smartctl report attached. Looks cooked to me, certainly as a backup disk. fsck is just calls a format-specific tool, and I worry about the lack of maturity. e2fsck has been there from the year dot.

I'll clear off and buy myself a disk.
Attached Files
File Type: txt esmartctl.txt (6.5 KB, 18 views)
 
Old 01-06-2022, 08:27 AM   #6
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,885

Rep: Reputation: Disabled
As Hazel points out, it could be a bad superblock - be worth trying with a different one before consigning it to the bin.
 
Old 01-06-2022, 11:00 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,613

Original Poster
Rep: Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618
It hasn't gone in the bin.

I've ordered a 1TB to replace it, and left it aside. I did say it was probably filesystem pivotal, so I'm pretty sure it's a superblock. But I don't want it as a backup disk any more. I'll have a go at reshaping it, do the smartctl long test and use it as a media disk, maybe.

On the other filesystems, I took a look at the tools, and reiserfs or xfs look reasonably detailed fsck tools, to judge by the man pages.
 
Old 01-06-2022, 11:06 AM   #8
rclark
Member
 
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 653

Rep: Reputation: 243Reputation: 243Reputation: 243
Good plan -- replacing the drive. They are cheap and save a lot of wondering and worry. Any more, there isn't really a good reason to play around with a bad/going bad disk drive ... unless you really really really have something important you need to get off of it of course.

I also always have one replacement drive in my storage cabinet, in case my server internal backup drive goes bad. My server data drives are all SSDs. I've also added 'external' bays to my server - one 3.5 bay (hold 1 full size hdd) and one 2.5 bay (holds 6 SATA SSDs), so I don't have to open the box. Just shutdown, pull tray out and replace drive and restart.

Last edited by rclark; 01-06-2022 at 11:15 AM.
 
Old 01-06-2022, 11:52 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,613

Original Poster
Rep: Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618
The days were where a drive gradually went bad, and you could often back up mission critical stuff on the same drive, and expect to have it. Now imho, the 'going' stage has vanished out of disks. It's good, or it's gone. It's young, and nothing happened to make me say "I deserved this," so I'm a bit put out. Nevertheless, when a 600G drive starts identifying as a 1TB drive, the writing is on the wall. There's that sector, too and how many more?

I'll operate at my leisure, and expect it not to survive the operation. For instance, while the disk was good, I listed it's partuuid in /etc/fstab as "5f216f6c-01". Parted 'recovered' that partition, with partuuid "1858e3fb-01". All files are gone. Need I add more?
 
Old 01-10-2022, 01:15 PM   #10
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,613

Original Poster
Rep: Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618Reputation: 2618
Update:

My new disk purchase arrived today. Meanwhile, the old one seems to be degraded to curiosity status.

I mentioned it was oversizing itself, a 593/600G disk now identifying as 931.5/1000G. I remade the partition. Badblocks had recorded no errors. I made a single 600G partition, and copied on about 600G of data. But the disk was by now identifying the partition as 931.5G. Once you make a filesystem, the available size shrinks anyhow. But this thing thought it had hundreds of Gigs free. So I set rsync duplicating a directory of 275G, to see was it real.

For a while it was copying away fine. We went up to 682/600G + filesystem overhead, and then my rsync sat down with error 30 (broken pipe) and the disk electronically vanished. Powering the disk down, unmounting & killing all process with open files on it was next. Then it behaved itself. I can play the last but one video it copied over. It crashed on episode 12, I can play episode 10, in excess of 675/600G And it still thinks it has 189G free

But would I trust anything that goes out to lunch electronically? No way. That lasts while it lasts, and no longer. It's a curious way for a disk to go, certainly. I tried to find an error for block 16777216 with smartctl & badblocks, but no dice. And no dice with e2fsck once I remade the partition.

Last edited by business_kid; 01-10-2022 at 01:17 PM.
 
  


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
LXer: Boot Repair Tool - Repair The Most Boot Related Problems LXer Syndicated Linux News 0 06-21-2017 09:49 PM
Message: A database connection error has been detected, we are attempting to repair the server, if the repair does not resolve the issue, pl deva420patra Linux - Server 4 11-23-2016 07:40 AM
Can I repair and convert ntfs partition to vfat on linux with linux tools !? DJ_Thunderlord Linux - General 2 07-14-2011 01:11 PM
Can I repair and convert ntfs partition to vfat on linux with linux tools !? DJ_Thunderlord Linux - General 7 07-14-2011 09:42 AM
I need a Linux OS other than Ubuntu which has a repair disk or repair software jhmac77 Linux - Newbie 1 03-17-2008 07:04 AM

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

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