From owner-freebsd-usb@FreeBSD.ORG Mon Jun 25 21:24:12 2012 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79BBF106566C for ; Mon, 25 Jun 2012 21:24:12 +0000 (UTC) (envelope-from denverh@comcast.net) Received: from qmta09.westchester.pa.mail.comcast.net (qmta09.westchester.pa.mail.comcast.net [76.96.62.96]) by mx1.freebsd.org (Postfix) with ESMTP id 20C3D8FC08 for ; Mon, 25 Jun 2012 21:24:12 +0000 (UTC) Received: from omta12.westchester.pa.mail.comcast.net ([76.96.62.44]) by qmta09.westchester.pa.mail.comcast.net with comcast id SboV1j00C0xGWP859lQC2v; Mon, 25 Jun 2012 21:24:12 +0000 Received: from [192.168.0.30] ([66.41.84.80]) by omta12.westchester.pa.mail.comcast.net with comcast id SlQ71j0081jzK7m3YlQ7E8; Mon, 25 Jun 2012 21:24:07 +0000 Message-ID: <4FE8D6FA.4080109@comcast.net> Date: Mon, 25 Jun 2012 16:24:10 -0500 From: Denver Hull User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.19) Gecko/20120428 SeaMonkey/2.0.14 MIME-Version: 1.0 To: freebsd-usb@freebsd.org References: <201206241533.08745.hselasky@c2i.net> <201206251700.39759.hselasky@c2i.net> <4FE883DC.3080003@comcast.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Seagate FreeAgent GoFlex 1.5TB external HDD problems X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Jun 2012 21:24:12 -0000 maxim naumov wrote: > On Mon, Jun 25, 2012 at 4:29 PM, Denver Hull wrote: > > >> storage device. If you're interested, I can either send you the source, or >> make it available by ftp. Might be easier than cobbling something up from >> scratch. >> > Denver, that is very considerate of you. please do send me the source. > I was going to use iozone but so far couldn't figure out how to make > it work on block devices. I am also going to try msdosfs on that drive > in the meantime. > > /max > > The source is available here: http://irresistible-images.com/files/diskrand/diskrand.tgz For instructions, just type diskrand with no parameters. If you have any trouble with it let me know. It's been a while since I used it, but I can probably still figure it out. To build it, use gmake in the parent (diskrand) directory. It will figure out your platform and build diskrand in the appropriate subdirectory: BSD, LINUX, SGI, etc. Optional gmake targets you can use are all, clean, install. You may need to use clean first, then install. For FreeBSD, install puts the executable in /usr/local/bin. It's mostly a tool to check for data corruption, so the normal use automatically includes an initial data fill over the specified range unless you disable it with -n. The data consists of a pattern based on the LBA. Data compare errors result in an output of all the data that didn't match, then it stops. Other errors will also cause it to stop. Reads always include a verification of the data, and writes are always a data pattern based on the LBA. It's unique for each LBA, but always the same for a specific LBA. In normal operation everything after the initialization is random: the starting LBA, the size of the transfer, whether it's a read or write. You can override any of that with the command-line switches. You can run multiple copies of diskrand on one device by assigning a different range within the device for each copy. You can get a lot of I/O activity going with that method. I guess that's about all. Let me know if you have any questions. Thanks, Denver