On Sun, Jun 07, 2009 at 10:43:40AM +0100, John . wrote:
> Hello list,
> Can anyone please recommend to me a program that will stress-test a
> disk? If it matters, two are connected by firewire, another via usb.
> Filesystem is ufs. I think I have a disk that might be about to fail,
> but it only sometimes errors when under stress. I need to see if it
> was a fluke or to really make it fail, so that I can get rid of it.
I believe that the "badblocks" util is what you're looking for. It can
be found in the sysutils/e2fsprogs port. It has both destructive and
non-destructive modes. I've used it on Linux and FreeBSD, and it can
really exercise the disk well.
I've seen several mentions of "dd" in this thread, and I'll say that I've
seen several recommendations elsewhere to use a simple:
dd if=/dev/<device> of=/dev/<device>
to "refresh" the drive. That is, dd will read the block(s), then attempt to
write them back, and if there are problems, the drive should re-map the sector
to one without problems. Though the dd_rescue/ddrescue/dd-rescue ports are
more tolerant of errors than the stock dd util.
Personally, I'd recommend badblocks before trying anything else.
firstname.lastname@example.org mailing list
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"