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
| Linus Torvalds | Linux 2.6.27 |
| Alan Cox | [PATCH 00/76] Queued TTY Patches |
| Greg KH | [patch 10/73] VLAN: Lost rtnl_unlock() in vlan_ioctl() |
| Rusty Russell | Re: [Bug #11342] Linux 2.6.27-rc3: kernel BUG at mm/vmalloc.c - bisected |
git: | |
| Jakub Narebski | Re: [PATCH] RFC: git lazy clone proof-of-concept |
| Johannes Schindelin | cogito and remote#branch, was Re: [PATCH] Git homepage: remove all the references ... |
| Junio C Hamano | Re: Comments on recursive merge.. |
| Scott Chacon | [PATCH] add a 'pre-push' hook |
| Marcos Laufer | dmesg IBM x3650 OpenBSD 4.3 |
| L. V. Lammert | Re: OBSD's perspective on SELinux |
| Richard Stallman | Real men don't attack straw men |
| Juan Miscaro | When will OpenBSD support UTF8? |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Alan Cox | Re: [PATCH] alternative to sys_indirect, part 1 |
| Jarek Poplawski | Re: panic 2.6.27-rc3-git2, qdisc_dequeue_head |
| Patrick McHardy | Re: [PATCH 3/3] netdevice: order of synchronization of IFF_PROMISC and IFF_ALLMULTI |
