From owner-freebsd-questions@FreeBSD.ORG Fri Jul 2 21:40:36 2004 Return-Path: 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 C321316A4CE for ; Fri, 2 Jul 2004 21:40:36 +0000 (GMT) Received: from postal2.es.net (postal2.es.net [198.128.3.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id B4FBC43D48 for ; Fri, 2 Jul 2004 21:40:36 +0000 (GMT) (envelope-from oberman@es.net) Received: from ptavv.es.net ([198.128.4.29]) by postal2.es.net (Postal Node 2) with ESMTP (SSL) id IBA74465 for ; Fri, 02 Jul 2004 14:36:01 -0700 Received: from ptavv (localhost [127.0.0.1]) by ptavv.es.net (Tachyon Server) with ESMTP id DEBD85D08 for ; Fri, 2 Jul 2004 14:36:00 -0700 (PDT) To: questions@freebsd.org Date: Fri, 02 Jul 2004 14:36:00 -0700 From: "Kevin Oberman" Message-Id: <20040702213600.DEBD85D08@ptavv.es.net> Subject: Reading from ATAPICAM DVD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Jul 2004 21:40:36 -0000 I am attempting to use DVD::RIP to rip a DVD (or a piece of one). It tries to execute "tcprobe -H 10 -i /dev/cd0c" and fails with the error: [fileinfo.c:118] file read error: Invalid argument The code is "(read(fdes, buf, bytes)". (The value of bytes is 4.) I also log a system error of: dscheck(#cd/2): b_bcount 5 is not on a sector boundary (ssize 2048) Is this an ATAPICAM or ATA issue or is it required that reads start at a sector boundary? I assume that this code at least works on Linux systems and I had always assumed that, even though the disk must start a transfer at a sector boundary, the driver buffered the data to make it appear as a byte stream. Maybe I'm confused. Any suggestions on this are appreciated as I want to get a better idea of what is happening before a report the problem. -- R. Kevin Oberman, Network Engineer Energy Sciences Network (ESnet) Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) E-mail: oberman@es.net Phone: +1 510 486-8634