HDD stopped working due to I/O error

SMART check log:

https://paste.asterisk.lol/raw/ecohurakek

relevant dmesg log:

https://paste.asterisk.lol/raw/zoxacumusi

Drive is a SATA HDD formatted as btrfs

I’ve tried btrfs check and btrfs rescue, both fail due to no BTRFS filesystem being detected (lsblk and parted show no FS too).

mount mentioned bad superblocks, but since there’s no FS the btrfs superblock rescue tool doesn’t work.

You should try to scan the disk and check for bad blocks. It appears you either have a corrupt file system or a corrupt partition. This looks more like a corrupt partition. its possible there is physical damage preventing the Kernel from accessing the filesystem.

There is testdisk you can try for checking the disk.

Best advice i could give would be to replace the HD with a 2.5" SSD drive.

1 Like

Ideally you should test the hard drive with the manufacturers test tools. In this case, that would appear to be Toshiba, but I’m not sure if they have many options available to you. I’ve not been able to find anything specific :slightly_frowning_face:

Hopefully your important data is backed up already.

I have 2 drives in here, an HDD and an SSD, the SSD works fine, but I’d like to recover the HDD as it has a lot of data.

badblocks seems to be the only utility that works, but it’ll take a long time to run.

I’ll try testdisk too.

edit: testdisk shows no partitions.

Be super careful not to run it in destructive mode, if you haven’t backed up your data.

I’m aware, I’m using it in non-destructive mode.

I don’t mind losing the data, I can rebuild it (all games, most of which are backed up in my Steam library), but it’d be nice if I could recover it.

If badblocks doesn’t work I’ll replace the drive.

1 Like

btrfs doesn’t support badblocks.

You could try HDD Regenerator it has saved HDD’s I hade problem with trueout the years.
It runs regardless of file system and if it can’t save the HDD you’re screwed or need to send it to recovery company(witch is expensive) if you have important files.
HDD REGENERATOR May take like a day to run if the disk is big just so you know.

Good luck!

Either your not using testdisk right or the drive is done and there is nothing else to read.

I had Similar issue with btfrs .Initially troubled and started working.Finally one day stopped for ever. Replaced HDD with SSD.Now seems to be fine. But btfrs is a worry on arch linux.

That’s interesting. I’ve been using btrfs for over 10 years and never had a problem with it and I switched to EOS around 2 years ago.

So, I should add that I do not agree.

1 Like

I’ve been using btrs without issue for 5 years. I’m extremely happy with btrfs, btrfs-assistant, snapper support and btrfsmaintenace with grub. So i agree with @manfredlotz.

2 Likes

Ok I gave up and just made a new GPT partition table. The drive magically works now. So it was a strange FS issue.

I don’t think it’s FS issue but more damaged partition or sectors on the drive. Bad blocks! :wink:

2 Likes

Absolutely. My laptop has become an experimental platform for world’s most talented hackers or big tech companies.
They make every technology look like a peanut. May be i am wrong. But hackers were able to breach btfrs encryption. when my laptop was offline, they even managed to change passwords. They were able to restrict CD drive to accept only Windows XP (OEM) and i could not load lubuntu, or any other linux lightest distribution. In fact i was running lubuntu on that HP Pavillion laptop for 2 years before this hack.
I have a question here. btfrs is known to accept bad hard disks with too many fragments. The more the disk is fragmented the more efficient btfrs file system.Different from NTFS, FAT 32, Ext 4 where fragmentation means disk becomes slow,dead. Physical damage it can not accept. i agree. What are bad blocks in this context?. Physical damage or fragments?

Btrfs does not provide encryption.

That doesn’t sound like you were hacked. It would be very strange for someone to go to all the bother of hacking into your computer just to change your password or put it in an oddly configured state.

Typically a hacker will either install ransomware on your computer, or just quietly add it to a botnet and move on. Not make random modifications to inconvenience you for no reason.

That is not true. Like other filesystems, Btrfs performs poorly if it becomes heavily fragmented.

https://btrfs.wiki.kernel.org/index.php/Gotchas#Fragmentation

https://btrfs.readthedocs.io/en/latest/Defragmentation.html

A heavily fragmented Btrfs filesystem can have degraded performance. Btrfs uses an extent-based system for managing file data, and when a file is fragmented into many extents it has to track more metadata. If it gets bad enough, even a small transaction can translate to a lot of IOPS and higher CPU usage.

If anything, ext4 handles fragmentation better than Btrfs–not the other way around.

2 Likes

Intentions could be anything. It could be any one. Bigtech,Sales,service network etc for new laptop or repair revenue.
“South bridge hardware and related connections to CD drive are made to behave that way. Not even a single linux distribution was booting from DVD,except
OEM DVD. Scrapped it. HP Pavillion DV 8125 NR 2005 .First 64 bit processor from AMD Turion.”
Dell Laptop password was changed while i was working on libre office software.
Logged in offline. After some time system went into sleep mode. Tried to input password. Nope. Recovery of password was also not working. after boot, press e and enter into maintenance mode. There we were supposed to insert few lines.
Not permitted. Finally re installed OS.

I don’t understand a word you’re saying.

1 Like