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.
|
 |
01-05-2022, 08:46 AM
|
#1
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,613
|
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?
|
|
|
01-05-2022, 09:23 AM
|
#2
|
LQ Guru
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 8,296
|
Probably it's the superblock. There are copies of it scattered through the filesystem and they're supposed to be identical.
|
|
|
01-05-2022, 11:25 AM
|
#3
|
Member
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 653
|
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.
|
|
|
01-05-2022, 11:44 AM
|
#4
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 24,339
|
first of all I would try smartctl. And replace disk.
|
|
|
01-05-2022, 01:08 PM
|
#5
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,613
Original Poster
|
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.
|
|
|
01-06-2022, 08:27 AM
|
#6
|
LQ Guru
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: One main distro, & some smaller ones casually.
Posts: 5,885
Rep: 
|
As Hazel points out, it could be a bad superblock - be worth trying with a different one before consigning it to the bin.
|
|
|
01-06-2022, 11:00 AM
|
#7
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,613
Original Poster
|
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.
|
|
|
01-06-2022, 11:06 AM
|
#8
|
Member
Registered: Jul 2008
Location: Montana USA
Distribution: KUbuntu, Fedora (KDE), PI OS
Posts: 653
|
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.
|
|
|
01-06-2022, 11:52 AM
|
#9
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,613
Original Poster
|
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?
|
|
|
01-10-2022, 01:15 PM
|
#10
|
LQ Guru
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,613
Original Poster
|
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.
|
|
|
All times are GMT -5. The time now is 06:52 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
|
|