From owner-freebsd-questions@FreeBSD.ORG Sat May 27 02:24:15 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 B839C16A7F8 for ; Sat, 27 May 2006 02:24:15 +0000 (UTC) (envelope-from mikhailg@webanoide.org) Received: from cayster.site5.com (cayster.multisite.site5.com [216.118.97.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id EBFCF43D53 for ; Sat, 27 May 2006 02:24:08 +0000 (GMT) (envelope-from mikhailg@webanoide.org) Received: from ppp110-20.lns1.hba1.internode.on.net ([150.101.110.20] helo=[192.168.0.4]) by cayster.site5.com with esmtpa (Exim 4.52) id 1FjoTF-0001g8-UN for freebsd-questions@freebsd.org; Fri, 26 May 2006 22:24:06 -0400 Message-ID: <4477B841.1070603@webanoide.org> Date: Sat, 27 May 2006 12:24:01 +1000 From: Mikhail Goriachev Organization: Webanoide User-Agent: Thunderbird 1.5.0.2 (Macintosh/20060308) MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <428f57310605261258g66b820fbqecaca74d044ba1d5@mail.gmail.com> <428f57310605261630w551d531dh9e08745165f778ae@mail.gmail.com> In-Reply-To: <428f57310605261630w551d531dh9e08745165f778ae@mail.gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Antivirus-Scanner: This message has been scanned by ClamAV. X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cayster.site5.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - webanoide.org X-Source: X-Source-Args: X-Source-Dir: Subject: Re: dvd+rw problems X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 May 2006 02:24:26 -0000 Nick Pegg wrote: > On 5/26/06, Nick Pegg wrote: >> I'm having some troubles reading and writing DVD+RW discs. I've >> installed dvd+rw-tools and followed the instructions in the FreeBSD >> Handbook and searched Google without much luck. Here's the specific >> errors I'm getting: >> >> Trying to mount the disc: >> server# mount_cd9660 /dev/cd0 /cdrom >> mount_cd9660: /dev/cd0: Invalid argument >> >> Trying to burn stuff to the disc: >> server# growisofs -Z /dev/cd0 -J -R /root/dumps >> :-( unable to cam_open_pass("/dev/pass0",O_RDWR): Operation not permitted >> >> >> When trying the same operations with a DVD-R disc, I can successfully >> mount and read the disc, however I get the same error when trying to >> write to the disc. The drive can also mount and read CD media just >> fine. I've double-checked the permissions in /dev and I'm running >> everything as root, so that shouldn't be a problem. >> >> Here's some additional info to help in figuring out what my problem >> could be: >> >> server# camcontrol devlist >> at scbus1 target 1 lun 0 (cd0,pass0) >> >> Here's some relevant stuff from dmesg: >> acd0: CDR at >> ata1-master UDMA33 >> acd1: DVDR at ata1-slave UDMA33 >> (probe0:ata1:0:0:0): INQUIRY. CDB: 12 0 0 0 24 0 >> (probe0:ata1:0:0:0): CAM Status: SCSI Status Error >> (probe0:ata1:0:0:0): SCSI Status: Check Condition >> (probe0:ata1:0:0:0): ILLEGAL REQUEST info?:1000100 csi:0,1,0,1 asc:24,1 >> (probe0:ata1:0:0:0): Reserved ASC/ASCQ pair >> (probe0:ata1:0:0:0): Unretryable error >> cd0 at ata1 bus 0 target 1 lun 0 >> cd0: Removable CD-ROM SCSI-0 device >> cd0: 33.000MB/s transfers >> cd0: Attempt to query device size failed: NOT READY, Medium not present >> g_vfs_done():acd0[READ(offset=65536, length=8192)]error = 5 >> g_vfs_done():acd0[READ(offset=32768, length=2048)]error = 5 >> g_vfs_done():cd0[READ(offset=65536, length=8192)]error = 5 >> (cd0:ata1:0:1:0): READ TOC/PMA/ATIP {MMC Proposed}. CDB: 43 0 0 0 0 0 >> 0 0 4 0 >> (cd0:ata1:0:1:0): CAM Status: SCSI Status Error >> (cd0:ata1:0:1:0): SCSI Status: Check Condition >> (cd0:ata1:0:1:0): ILLEGAL REQUEST asc:24,0 >> (cd0:ata1:0:1:0): Invalid field in CDB: Command byte 6 is invalid >> (cd0:ata1:0:1:0): Unretryable error >> g_vfs_done():cd0[READ(offset=32768, length=2048)]error = 5 >> >> >> Thanks for the help! >> >> -Nick >> > > I've got an update to my problem. I can actually read the disc just > fine at securelevel 3, but I need to drop down to securelevel 1 in > order to write to it (/dev/pass0 is a protected device node at > securelevel 2 and 3). > > Is there a workaround to this, or will I have to drop into single-user > mode every time I want to write to a DVD? Hi, I ran into the same problem years ago. This might help you: http://www.freebsd.org/gnome/docs/faq2.html#q15 Cheers, Mikhail. -- Mikhail Goriachev Webanoide Telephone: +61 (0)3 62252501 Mobile Phone: +61 (0)4 38255158 E-Mail: mikhailg@webanoide.org Web: http://www.webanoide.org PGP Key ID: 0x4E148A3B PGP Key Fingerprint: D96B 7C14 79A5 8824 B99D 9562 F50E 2F5D 4E14 8A3B