From owner-freebsd-questions Tue Feb 18 7:33:30 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAC7537B401 for ; Tue, 18 Feb 2003 07:33:28 -0800 (PST) Received: from mx1.eskimo.com (mx1.eskimo.com [204.122.16.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD18B43F3F for ; Tue, 18 Feb 2003 07:33:26 -0800 (PST) (envelope-from ripper@eskimo.com) Received: from eskimo.com (ripper@eskimo.com [204.122.16.13]) by mx1.eskimo.com (8.9.1a/8.8.8) with ESMTP id HAA00593 for ; Tue, 18 Feb 2003 07:33:21 -0800 Received: (from ripper@localhost) by eskimo.com (8.9.1a/8.9.1) id HAA19028 for freebsd-questions@freebsd.org; Tue, 18 Feb 2003 07:33:22 -0800 (PST) Date: Tue, 18 Feb 2003 07:33:21 -0800 From: Ross Lippert To: freebsd-questions@freebsd.org Subject: umass device incomplete contents Message-ID: <20030218073321.A18209@eskimo.eskimo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i WWW-Home-Page: http://www.eskimo.com/~ripper Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, ever since we upgraded to 5.0 we have had problems with our SDR-31 compact flash reader. No interesting messages come up in dmesg to describe the problem. This is what happens, the device mounts just fine: mount -o ro -t msdos /dev/da0s1 /mnt/ but while we can see all the files with an 'ls' we cannot actually get the contents of some of the files: % ls % md5 * the ls works, but the md5 command gives an input/output error on some of the files. Really the md5 command is just a quick way to test the 'open' and 'read' calls; 'cp' likewise fails on these files. To try and diagnose this further, we did % dd if=/dev/da0s1 of=/tmp/img and took a look at /tmp/img. It is a 256MB card. The img file was only 8MB in size. When I page through the img file with vi or emacs, it is clear that the FAT is intact, and a few jpeg's are present, but not all of them are there. Thus, I conclude that somehow or another, this device appears to be 'truncated'. This is consistent with 'ls' working and md5 only working on some of the files (the ones which haven't been truncated away). Has anyone else seen this? I didn't see a PR about it in the gnats. -r To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message