login
Header Space

 
 

Re: Is there a "badblocks"-equivalent for OpenBSD?

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jon Simola <jsimola@...>
Cc: OpenBSD-Misc <misc@...>
Date: Friday, April 18, 2008 - 8:19 pm

On 18/04/2008, Calomel <avertege@calomel.org> wrote:

THANK YOU! :) I had wondered why I couldn't find badblocks among
OpenBSD's packages. This explains it. I will say in my defense ;-)
that badblocks is not ext2-specific, so while I have now seen that
it's part of these tools, possibly for historic reasons, that's not
necessarily a logical place for it to be.

Looking at the package contents (
http://www.openbsd.org/4.2_packages/i386/e2fsprogs-1.27p5.tgz-contents.html
), I've also figured out how to search for stuff like this in the
future:

http://www.google.ie/search?q=badblocks+inurl%3Aopenbsd.org+inurl%3Acontents.html&btnG...

I was surprised though to find that GoogleBot doesn't appear to have
indexed most of these pages -- maybe because
http://www.openbsd.org/<x.y>_packages/<architecture>.html loads so
slowly?


Thanks for this info as well. I wonder why googling openbsd and
badblocks didn't turn that up for me.

On 18/04/2008, Jon Simola <jsimola@gmail.com> wrote:

Ah! Those are also very good thoughts! Now Steve rightly observed that
I wanted to do a write-test, but come to think of it, something like
this should allow one to do a "badblocks -svn"-alike non-destructive
write test:

- Use dd to back up the entire device to /tmp.
- then copy /dev/arandom (or even /dev/srandom) to the device until
it's full and use tee to also duplicate what's being written to the
device to /tmp.
- md5sum the latter, duplicate file in /tmp
- md5sum the device, compare the hashes (& delete the file)
- finally, dd the original backup file back to the device and delete the backup.

This kludge could be used as a poor man's badblocks, if that's not
available, but it does require that twice the size of the device is
available in terms of disk space.
Yes, it's kinda horrible and probably useless in most situations, but
there we go. ;-)

Thanks and regards,
--ropers
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Is there a "badblocks"-equivalent for OpenBSD?, ropers, (Fri Apr 18, 2:44 pm)
Re: Is there a "badblocks"-equivalent for OpenBSD?, Jon Simola, (Fri Apr 18, 5:14 pm)
Re: Is there a "badblocks"-equivalent for OpenBSD?, ropers, (Fri Apr 18, 8:19 pm)
Re: Is there a "badblocks"-equivalent for OpenBSD?, Travers Buda, (Sat Apr 19, 12:41 am)
Re: Is there a "badblocks"-equivalent for OpenBSD?, Siegbert Marschall, (Sun Apr 20, 5:19 am)
Re: Is there a "badblocks"-equivalent for OpenBSD?, Travers Buda, (Sun Apr 20, 12:14 pm)
Re: Is there a "badblocks"-equivalent for OpenBSD?, Siegbert Marschall, (Sun Apr 20, 8:38 pm)
Re: Is there a "badblocks"-equivalent for OpenBSD?, Travers Buda, (Sun Apr 20, 10:21 pm)
Re: Is there a "badblocks"-equivalent for OpenBSD?, Steve Shockley, (Fri Apr 18, 7:49 pm)
speck-geostationary