Hi

Originally Posted by
t4ggs
Thanks, I thought I should do it for the disk and not the partition.
How do I verify that those blocks are indeed blocked? Should I check for bad blocks again?
You can get the list of bad block the ext4 stores using the dumpe2fs command.
Code:
sudo dumpe2fs -b /dev/sdaX
Where X is the partition number.
From
-b print the blocks which are reserved as bad in the filesystem.
Anyway, I've just taken a better look at the image you posted in post #1.
It looks like you have an 'uncorrectable sector count' and a 'current pending sector count' of 1. You also have 3 sectors that contain 'uncorrectable errors'.
I suspect the reason why the SMART test failed is due to the 'uncorrectable errors'.
You want to be backing up any important data from that drive on a regular basic. This is alway good practice anyway, but this is especially the case with that drive.
I would have (may have depending on the situation) run fsck differently than the way you did.
I would have booted into a LiveUSB (or other live environment) and run fsck.ext4 using either the -c or -cc option; something along the lines of
Code:
sudo fsck.ext4 -cc /dev/sdYX
Where YX are the drive (Y) and the partition on that drive (X).
To understand the difference between -c and -cc....
Code:
-c This option causes e2fsck to use badblocks(8) program to do a read-only scan of the device in order to find
any bad blocks. If any bad blocks are found, they are added to the bad block inode to prevent them from
being allocated to a file or directory. If this option is specified twice, then the bad block scan will be
done using a non-destructive read-write test.
I hope that kind of helps.
Feel free to ask any more questions.
Please remember to mark this thread as SOLVED using the thread tools menu above post #1 if, at some point, you are happy this thread has answered your questions. It'll help others looking for a similar solution and is an easy way to give back to the community.
Kind regards