From owner-freebsd-current@FreeBSD.ORG Thu Oct 6 23:58:56 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E48A16A41F for ; Thu, 6 Oct 2005 23:58:56 +0000 (GMT) (envelope-from nge@cs.hmc.edu) Received: from turing.cs.hmc.edu (turing.cs.hmc.edu [134.173.42.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2685B43D45 for ; Thu, 6 Oct 2005 23:58:56 +0000 (GMT) (envelope-from nge@cs.hmc.edu) Received: by turing.cs.hmc.edu (Postfix, from userid 26983) id C8A0753230; Thu, 6 Oct 2005 16:58:55 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by turing.cs.hmc.edu (Postfix) with ESMTP id B2F465A92B; Thu, 6 Oct 2005 16:58:55 -0700 (PDT) Date: Thu, 6 Oct 2005 16:58:55 -0700 (PDT) From: Nate Eldredge X-X-Sender: nate@turing To: Anish Mistry In-Reply-To: <200510061940.18199.mistry.7@osu.edu> Message-ID: References: <200510061940.18199.mistry.7@osu.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-current@freebsd.org Subject: Re: burncd/atapi multisession CD issues X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2005 23:58:56 -0000 On Thu, 6 Oct 2005, Anish Mistry wrote: > I've got a couple of issues, which both appear on RELENG_6 and > -CURRENT as of today. I'm not sure when they started as I mostly > burncd multisession backups on my 4.x system. > Once I burn a CD with burncd: > mkisofs -r -J -o test.iso files > burncd -f /dev/acd0 -s max -m data test.iso fixate > The files burn just fine, but I have to eject and then close the > drive. eg. "cdcontrol eject ; cdcontrol close" before I can mount > the CD. If I try to mount the CD without the eject/close I get the > following message in the syslog: > kernel: g_vfs_done():acd0[READ(offset=32768, length=2048)]error = 5 > The same goes (eject/close except no error message) before grabbing > the multisession info with "burncd -f /dev/acd0 msinfo". > When I try to burn another session with burncd I just get > "Input/Output error" and the second session doesn't get added to the > CD. > This all seems like a problem with ata/atapi rather than burncd. I think this is true on a number of systems. I have noticed it on Linux for instance. It may be a hardware thing. Burning seems to create some sort of state which can't be read back correctly, but ejecting the disc clears it. Maybe some other sort of drive reset would suffice. But anyway the workaround is pretty simple. -- Nate Eldredge nge@cs.hmc.edu