Re: Burning CDs or DVDs with SATA drive?
from my previous message: > Does growisofs work on CDRs or only DVDs? > If 'cdrecord -scanbus' doesn't work at all, how do I get the "SCSI device" > n:n:n? Use camcontrol? > 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 could also try to build cdrkit and see if that works. At that stage I hadn't looked in the Makefile to see that cdrkit was not an option on FreeBSD 9.0 . So far, I tried cdrecord and readcd only as root, so permissions ought not yet to be an issue. amelia2# camcontrol devlist at scbus1 target 0 lun 0 (pass0,ada0) at scbus5 target 0 lun 0 (pass1,cd0) at scbus7 target 0 lun 0 (pass2,da0) at scbus7 target 0 lun 1 (pass3,ses0) at scbus8 target 0 lun 0 (da1,pass4) at scbus9 target 0 lun 0 (da2,pass5) amelia2# readcd dev=5,0,0 sectors=0-0 - readcd: Device not ready. I got same results after running "kldload atapicam". Also, cdrecord -scanbus didn't work at all. In Linux, beginning with kernel 2.6, cdrtools work with ATA or IDE CD or DVD burners without inserting a SCSI layer. Maybe I need to build and install growisofs (sysutils/dvd+rw-tools)? I have /dev/xpt0 even without "kldload atapicam", also /dev/pass*. cdrtools use "dev=n1,n2,n3", which don't have to be all zero. I had intended, and still intend, to build a Linux installation, may or may not bother with NetBSD. I want to see what Linux can do that FreeBSD can't, how and if the device drivers are superior. NetBSD has no USB 3.0 support now or in the foreseeable future, and otherwise doesn't like my hardware; I tried before installing FreeBSD. Tom ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Burning CDs or DVDs with SATA drive?
On Fri, 4 Nov 2011 09:23:13 + (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, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Burning CDs or DVDs with SATA drive?
> > I built and installed sysutils/cdrtools when there was a > > thread on burncd and SATA, but cdrecord can't see anything > > (running "cdrecord -scanbus"): > > cdrecord: Inappropriate ioctl for device. CAMIOCOMMAND ioctl failed. Cannot > > open or use SCSI driver. > > cdrecord: For possible targets try 'cdrecord -scanbus'. > > cdrecord: For possible transport specifiers try 'cdrecord dev=help'. > > Cdrecord-ProDVD-ProBD-Clone 3.00 (amd64-unknown-freebsd9.0) Copyright (C) > > 1995-2010 J?rg Schilling > > Running "cdrecord dev=help" or "cdrecord dev=HELP:" did no better. > Do you have permissions set properly? Maybe it still > tries to access per ATAPICAM, which may be non-working > just like acd - just a wild guess, I'm not using 9-RC > here so I can't be more specific. > > I had a similar problem on the older computer (i386 with ATA, > > not SATA) in NetBSD, but cdrecord ran well in Linux. CD-RW > > drive there is ATAPI. > I've been using cdrecord and cdrdao now since burncd > stopped working for me somewhere in v5. For DVDs, > growisofs should work. > While cdrecord and cdrdao address th "SCSI device" > by n:n:n, growisofs uses /dev/cdN. > -- > Polytropon 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. Does growisofs work on CDRs or only DVDs? If 'cdrecord -scanbus' doesn't work at all, how do I get the "SCSI device" n:n:n? Use camcontrol? 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 could also try to build cdrkit and see if that works. Tom ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Burning CDs or DVDs with SATA drive?
On Thu, 3 Nov 2011 10:32:16 + (GMT), Thomas Mueller wrote: > What software, base or ports, is used to burn a CD or DVD on > a SATA drive, /dev/cd0 ? > > Would burncd be appropriate, or do I need cdrtools? Or cdrkit? > > This is on FreeBSD 9.0-RC1 amd64. I can imagine that in 9.0 where acd is obsoleted by cd, burncd will either be rewritten, or be useless. In that case, using tools that work with "old-fashioned" and "now modern" cd should work fine. > I built and installed sysutils/cdrtools when there was a > thread on burncd and SATA, but cdrecord can't see anything > (running "cdrecord -scanbus"): > > > cdrecord: Inappropriate ioctl for device. CAMIOCOMMAND ioctl failed. Cannot > open or use SCSI driver. > cdrecord: For possible targets try 'cdrecord -scanbus'. > cdrecord: For possible transport specifiers try 'cdrecord dev=help'. > Cdrecord-ProDVD-ProBD-Clone 3.00 (amd64-unknown-freebsd9.0) Copyright (C) > 1995-2010 Jörg Schilling > > > Running "cdrecord dev=help" or "cdrecord dev=HELP:" did no better. Do you have permissions set properly? Maybe it still tries to access per ATAPICAM, which may be non-working just like acd - just a wild guess, I'm not using 9-RC here so I can't be more specific. > I had a similar problem on the older computer (i386 with ATA, > not SATA) in NetBSD, but cdrecord ran well in Linux. CD-RW > drive there is ATAPI. I've been using cdrecord and cdrdao now since burncd stopped working for me somewhere in v5. For DVDs, growisofs should work. While cdrecord and cdrdao address th "SCSI device" by n:n:n, growisofs uses /dev/cdN. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"