On 18/04/2008, Calomel 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%3Acont...
I was surprised though to find that GoogleBot doesn't appear to have
indexed most of these pages -- maybe because
http://www.openbsd.org/_packages/.html loads so
slowly?
> BadBlocks Hard Drive Validation and/or Destructive Wipe
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 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
| Davide Libenzi | [patch 7/8] fdmap v2 - implement sys_socket2 |
| Benjamin Herrenschmidt | Re: [PATCH] Remove process freezer from suspend to RAM pathway |
| Greg Kroah-Hartman | [PATCH 011/196] sysfs: Fix a copy-n-paste typo in comment |
| Greg KH | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 0/37] dccp: Feature negotiation - last call for comments |
| Rémi Denis-Courmont | [PATCH] USB host CDC Phonet network interface driver |
| David Miller | [GIT]: Networking |
git: | |
