Questions tagged [badblocks]
Tool for searching bad blocks in block devices and partitions. Use for questions about the tool badblocks or to repair bad blocks on devices.
69 questions
1
vote
1
answer
56
views
LUKS on a device with bad blocks - doable via GUI?
I have a portable (3,5'') external drive (Seagate, 2TB, USB3) which I would love to use with my Ubuntu 25.10 laptop. But, it has a few bad blocks:
user@user-ubuntu:~$ sudo mkfs.ext4 -c -c -v /dev/sdc1
...
0
votes
0
answers
101
views
Current Pending Sector Count 1 Sector still after complete badblocks erase of the entire disk using destructive write test writing zeros Ubuntu 25.04
I use the disks program in Ubuntu 25.04 to identify the Current Pending Sector Count, and it is 1 sector. After I run badblocks to write every block on the disk, still in the disks program the ...
0
votes
0
answers
317
views
USB Memory Mount Error: 'Wrong fs type, bad option, bad superblock' (Ubuntu 24.04 LTS)
After installing Ubuntu 24.04 LTS, I encountered an issue when trying to mount my USB drive. I get the following error message:
"Error mounting: Wrong fs type, bad option, bad superblock"
5
votes
3
answers
2k
views
are both my drives bad? this doesnt make sense
back story..
i took my 2 seagate 32000641AS drives out of an old dns-323 disk array..
i put them in my dell Precision T5600 since the dns-323 was old and becoming a pain to manage.
i then created two ...
0
votes
0
answers
194
views
Trying to fix badblocks on a Linux partion: futile?
I'm on Ubuntu Linux 20.04. Over the past couple of weeks I've been noticing some erratic behaviour, like shutting down unprompted and then later booting into initramfs.
I followed the instructions ...
0
votes
1
answer
361
views
SD card ddrescue retrieved everything but badblocks lists bad blocks like crazy; how come?
It astonishes me that I was able to perfectly recover an SD card with ddrescue which was used in an RPi for quite a while. But when I'm scanning the SD card with badblocks -nvs bad blocks are listed ...
4
votes
1
answer
20k
views
Fixing bad superblock on SSD drive: Is e2fsck safe to run?
The symptoms:
I cannot boot anymore into my Xubuntu 22.04 Linux machine, and here's what happened:
At some point my home directory filesystem went into read-only (most likely as a protective measure, ...
1
vote
1
answer
22k
views
Mounting new HDD, error: wrong fs type, bad option, bad superblock, missing codepage or helper program or other error
Recentely I've installed a new HDD in my system. After making a partition with Gparted, mounting it to a folder I made called /mnt/media and writing the necessary line in /etc/fstab I get the ...
0
votes
1
answer
379
views
Is it ok to run fsck intead of e2fsck for a read only badblocks correction?
I have a hard drive with a failing block that points to inode 8 of the first partition, this falls in exactly on the journal. So I tried to run e2fsck -cpvk but the problem is that i forgot to write ...
0
votes
0
answers
298
views
Is there a way to fix bad block without unmounting?
I was thinking about running a bad sector check up on my system. Is it possible to do that without unmounting the primary filesystem? I want to check it on the system that is currently running.
0
votes
0
answers
489
views
My laptop is not showing boot partition at startup
My lenovo ideapad 330s is dual booted, windows 10 and Ubuntu 20.04. Both are on the same drive. Yesterday I was booted to windows and suddenly I got blue screen of death. And after that I restarted ...
2
votes
0
answers
3k
views
Is it natural for e2fsck taking too much time at force rewrite?
I have got some bad blocks in my HDD and I can not login now.
I boot from a USB and try to fix it.
Before e2fsck I badblocks -nvs the partition first so that I know that bad blocks are in /dev/sda3 (...
0
votes
1
answer
327
views
Translate badblocks result from 1024 block size to 4096 block size?
I have a 4TB hard drive which I ran the badblocks utility without passing in the -b block-size parameter. So I'm pretty sure it defaulted it to 1024, and my 4TB drive/filesystem is most likely setup ...
0
votes
2
answers
2k
views
Is it a problem if I have one bad sector on my HDD?
I have had this error for a while now. Is it safe to use?
2
votes
1
answer
5k
views
After badblocks found read error, the Reallocated Sector Count wasn't updated
My HD had a few corrupted files so I wanted to check all the sectors and have the HD controllers mark the failing one.
Following the advices from this answer, I have run a badblocks on my external HD. ...