From owner-freebsd-questions@FreeBSD.ORG Sun Sep 9 23:23:50 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8B72816A419 for ; Sun, 9 Sep 2007 23:23:50 +0000 (UTC) (envelope-from carpetsmoker@rwxrwxrwx.net) Received: from mail.rwxrwxrwx.net (rwxrwxrwx.net [82.93.23.199]) by mx1.freebsd.org (Postfix) with ESMTP id 0AAD813C457 for ; Sun, 9 Sep 2007 23:23:49 +0000 (UTC) (envelope-from carpetsmoker@rwxrwxrwx.net) Received: by mail.rwxrwxrwx.net (Postfix, from userid 1001) id B66FE6D479; Mon, 10 Sep 2007 01:28:10 +0200 (CEST) Date: Mon, 10 Sep 2007 01:28:10 +0200 From: Martin Tournoij To: freebsd-questions@freebsd.org, questions@freebsd.org Message-ID: <20070909232810.GA41146@glitch.rwxrwxrwx.net> Mail-Followup-To: freebsd-questions@freebsd.org, questions@freebsd.org, punosevac@math.arizona.edu References: <46E47D1C.6060303@math.arizona.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46E47D1C.6060303@math.arizona.edu> User-Agent: mutt-ng/devel-r804 (FreeBSD) Cc: punosevac@math.arizona.edu Subject: Re: DVD-RW drive 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: Sun, 09 Sep 2007 23:23:50 -0000 On Sun 09 Sep 2007 16:09, Predrag Punosevac wrote: > I have a very strange problem with my DVD-RW drive. Namely the drive is for some reason recognized as read only > > acd0: DVDR at ata0-slave UDMA66 > > I am running FreeBSD 6.2 stable with generic kernel (I didn't compile nor install my own kernel) > so the following lines are present in my GENERIC > > [pedja@ /usr/src/sys/i386/conf]$ more GENERIC > > # ATA and ATAPI devices > device ata > device atadisk # ATA disk drives > device ataraid # ATA RAID drives > device atapicd # ATAPI CDROM drives > device atapifd # ATAPI floppy drives > device atapist # ATAPI tape drives > options ATA_STATIC_ID # Static device numbering > # SCSI peripherals > device scbus # SCSI bus (required for SCSI) > device ch # SCSI media changers > device da # Direct Access (disks) > device sa # Sequential Access (tape etc) > device cd # CD > device pass # Passthrough device (direct SCSI access) > device ses # SCSI Environmental Services (and SAF-TE) > > > I also edited my load.conf file with > > hw.ata.ata_dma="1" > hw.ata.atapi_dma="1" > > > I altered the permissions devfs.conf and fstab file so that I can read and write but that is not even important since I can not > write anything even from the command line > > I also get > > [pedja@ /usr/home/Pedja]$ dvd+rw-mediainfo /dev/acd0 > /dev/acd0: unable to open: Inappropriate ioctl for device > [pedja@ /usr/home/Pedja]$ dvd+rw-mediainfo /dev/cd0 > /dev/cd0: unable to open: Inappropriate ioctl for device > > Whole behavior is even more strange since the optical drive was working flawlessly on PC-BSD 1.3 which is FreeBSD 6.1 stable. > > Any suggestions. > > Thank you so much You need to use ATAPICAM if you want to use ATA cd-writers, see the FreeBSD handbook: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html#ATAPICAM A small addition to the handbook: You don't need to reboot your machine, the command: $ kldload atapicam Will load the module at runtime. Use /dev/cd0 instead of /dev/acd0 for all writing purposes. Maybe PCBSD does this automagiclly? Can't comment on that since I don't use PCBSD.