Hi,
so I just received my new disk today and want to run a surface scan on it.
I would usually do this with the utility 'badblocks', which according to some googling is part of the 'e2fsprogs' package. This in turn is part of the firmware according to the listed software here: https://sites.google.com/site/altfirmware/home/software
However I am unable to find 'badblocks' in /usr/sbin, which is where it should be(?).
Any idea where I can find it? Is it not included in Alt-F?
If so, any idea on how I would do a surface scan of the disk?
Thanks in advance!
Edit: In my googling I came across this sourceforge page: http://code.google.com/p/alt-f/source/browse/trunk/alt-f/package/e2fsprogs/e2fsprogs.mk?r=2280
Which mentions badblocks and it seems to be built by default. It seems that that was when e2fsprogs was still a package, whereas with 0.1RC3 it appears to be part of the firmware.
Thanks for the reply.
I was aware that modern disks do automatic remapping of bad blocks. Now I am wondering, if this effectively renders the badblocks tool useless, because the disk is "hiding" bad blocks from the badblocks tool. I always looked at using badblocks to run a new disk through its paces and see if it works - not sure if that makes sense then.
Using smartctl I assume the "long test" is what I would want to run then?
(sorry, that these are not Alt-F related questions, but you appear to be in the know :) )
For the issue as to using badblocks with Alt-F:
I ended up installing Debian to an external NTFS drive connected to the USB port. Although the Debian install failed (I am guessing because of the NTFS),
it *did* copy the e2fsprogs package from Debian. Doing a "mount --bind /dev" to the NTFS disk and using chroot I am now running badblocks on the new disk,
which installed to a drive bay. Only question is, it makes sense to use badblocks (see above)...
I would be very grateful for an opinion. :)
Hi.
Thanks for the helpful reply.
I ran a long smart test, which ended today - without errors, yay! (took like 18 hours). I am currently considering rerunning a whole badblocks scan. But the first pass of the first time I ran it did not report any errors.
Anyway.... I looked at the smart settings page of Alt-F (services->system->smart) after activating it, and I am a little confused about the options there:
There appear to be 4 locations, where I can set, when/how often to run a scan, which confuses me:
1) Do a short disk test every:
2) Do a long disk test every:
3) Scans the drive every four hours for disk defects
4) Check disks every XX minutes
The first 2 are obviously two different options. But how do the last two options differ from the first two?
I am guessing that option 4) is with respect to the Email notification, telling Alt-F how often to check if an error was reported and if so send a mail?
Not sure what option 3) controls though ...
Badblocks is still useful as a way to stress a disk or to erase it. I agree with João that the original use for the program is probably irrelevant due to current disk firmware (I can remember when people talked in hushed tones about the upcoming availability of 2 MB hard disks and wondering what anyone would ever do to fill up such a vast amount of space).
Also, badblocks will return badblocks for a disk which is failing--perhaps due to rough handling during shipping or weakness in the vendor's QA dept. The value of running badblocks isn't mapping around badblocks, it's finding out if you have a sick disk.
I was also searching for badblocks and that brought me to this thread. With all the respect for your opinion and your work, I have a few thoughts.
You said that badblocks kind of forces the disk to remap the bad area and will exhaust the free blocks, BUT if you do not use badblocks and your drive already has bad blocks in an unused area, you are sitting on a bomb. I think I would use badblocks to scan the entire disk, at least when I buy it (or later when I am getting worried about my data and that happens frequently). If it has bad blocks to remap, then do it. If remapping is impossible because the bad area is larger than the free blocks, then I want to know about it, even if the bad blocks would not be used now.