Date: Tue, 18 Feb 2003 07:33:21 -0800 From: Ross Lippert <ripper@eskimo.com> To: freebsd-questions@freebsd.org Subject: umass device incomplete contents Message-ID: <20030218073321.A18209@eskimo.eskimo.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030218073321.A18209>