From owner-freebsd-questions@FreeBSD.ORG Fri Nov 4 15:04:41 2011 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 558861065670 for ; Fri, 4 Nov 2011 15:04:41 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id 0261D8FC18 for ; Fri, 4 Nov 2011 15:04:39 +0000 (UTC) Received: from r56.edvax.de (port-92-195-104-16.dynamic.qsc.de [92.195.104.16]) by mx01.qsc.de (Postfix) with ESMTP id BB35D3C93D; Fri, 4 Nov 2011 16:04:38 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id pA4F4cVR002390; Fri, 4 Nov 2011 16:04:38 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Fri, 4 Nov 2011 16:04:38 +0100 From: Polytropon To: "Thomas Mueller" Message-Id: <20111104160438.1acbcb7b.freebsd@edvax.de> In-Reply-To: <0M8Ozy-1Qzehk3S1y-00w2OP@mx.kundenserver.de> References: <20111103103218.58F8D106566C@hub.freebsd.org> <20111103121444.1e7253bf.freebsd@edvax.de> <0M8Ozy-1Qzehk3S1y-00w2OP@mx.kundenserver.de> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: Burning CDs or DVDs with SATA drive? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Nov 2011 15:04:41 -0000 On Fri, 4 Nov 2011 09:23:13 +0000 (GMT), Thomas Mueller wrote: > After I failed to burn a CD in NetBSD (5.1_STABLE) on the > older computer (i386) with cdrecord, I booted into FreeBSD > 8.2 RELEASE and was successful with burncd. That drive was > CD-RW, ATAPI, that computer has ATA but no SATA. Good to see that it's still supposed to work in 8.2. :-) > Does growisofs work on CDRs or only DVDs? Haven't tested that, but it should also work for CD media instead of DVD, just the size of the ISO data is limited to the size of a CD. > If 'cdrecord -scanbus' doesn't work at all, how do I get > the "SCSI device" n:n:n? Use camcontrol? Yes. You need to have the "device ATAPICAM" option in your kernel (or the module for that functionality), then you can do: # camcontrol devlist at scbus0 target 0 lun 0 (pass0,cd0) at scbus0 target 1 lun 0 (pass1,cd1) at scbus3 target 0 lun 0 (pass2,da0) at scbus3 target 0 lun 1 (pass3,da1) at scbus3 target 0 lun 2 (pass4,da2) The first two entries are optical drives, the first one has recording capability. Device ID is 0:0:0, the corresponding device files are /dev/pass0 and /dev/cd0, _those_ are provided by ATAPICAM. Programs like cdreord and cdrdao require the 0:0:0 device, growisofs uses /dev/cd0. Note that you need to set the _permissions_ for those device files in order to use non-root access to them! You also need access to /dev/xpt0 which belongs to the "artificial SCSI subsystem". :-) You could, for example, make them owned root:operator, permission 0660, and add your user to the "operator" group. > I see both FreeBSD and NetBSD have makefs (which can make > a UFS/FFS or iso file system, taking the place of mkisofs > in cdrtools. But NetBSD has no CD or DVD burner in the > base system. I did always use mkisofs for preparing the ISO for a CD, but you can "include" that step by piping. The growisofs does this step implicitely, e. g. % growisofs -Z /dev/dvd -r -J /path/to/files This will run mkisofs - the flags -r and -J are explained in "man mkisofs". For a pre-mastered ISO file, % growisofs -dvd-compat -Z /dev/dvd=image.iso would do the job. This ISO file could have been created by mkisofs, by k9copy, or even by dd. You can also use this with VCD images, created by mkvcdfs, as far as I remember. By the way, I have symlinked /dev/dvd to /dev/cd0 so I can access this "more easily". :-) > I could also try to build cdrkit and see if that works. Haven't tested this one yet, but it seems to conflict with cdrtools, and according to the Makefile, it does not run on v9. Sounds like it's work trying. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...