Trouble with atapicam and DVD+RW

Ed Alley edalley at covad.net
Tue Mar 23 08:05:58 PST 2004


> Ed Alley wrote:

>> Does FreeBSD support ATA DVD writers the same way that it
>> supports CD writers? I have been to SOS's web page, and
>> have looked at hardware support info, but have found no hint at
>> whether ATA DVD writers are supported under FreeBSD.

>> Vulpes Velox replied:

> Look for dvd+rw tools.

>> Chuck Swiger replied:

> Yes-- consider using "device atapicam" + the sysutils/dvd+rw-tools port.

Thank-you Vulpes and Chuck; the atapicam mechanism looks like a fine idea.
However,
I am having problems getting it to work for me...

O.K. I am running FreeBSD 4.9. I built a new kernel with:

device          ata0    at isa? port IO_WD1 irq 14
device          ata1    at isa? port IO_WD2 irq 15
device          ata
device          atadisk                 # ATA disk drives
#device         atapicd                 # ATAPI CDROM drives
#device         atapifd                 # ATAPI floppy drives
#device         atapist                 # ATAPI tape drives
device          atapicam                # CAM device
device          scbus                   # Needed for CAM device
device          pass                    # Needed to connect scsi to cam
device          cd                      # SCSI cd connected through CAM
device
options         ATA_STATIC_ID           # Static device numbering

Some output from dmesg:


Copyright (c) 1992-2003 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD 4.9-RELEASE #0: Mon Mar 22 15:40:21 PST 2004
    root at jordan.llnl.gov:/usr/src/sys/compile/JORDAN.2

... etc

CPU: Intel(R) Pentium(R) 4 CPU 3.20GHz (3192.02-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf29  Stepping = 9
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,
  PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
real memory  = 1073168384 (1048016K bytes)
avail memory = 1041809408 (1017392K bytes)
Preloaded elf kernel "kernel" at 0xc0374000.
Warning: Pentium 4 CPU: PSE disabled
Pentium Pro MTRR support enabled

...etc

atapci0: <Intel ICH5 ATA100 controller> port
0xffa0-0xffaf,0x374-0x377,0x170-0x177,
  0x3f4-0x3f7,0x1f0-0x1f7 mem 0xfebffc00-0xfebfffff irq 9 at device 31.1
on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
atapci1: <Intel ICH5 SATA150 controller> port
0xfea0-0xfeaf,0xfe30-0xfe33,0xfe20-0xfe27,
  0xfe10-0xfe13,0xfe00-0xfe07 irq 9 at device 31.2 on pci0
ata2: at 0xfe00 on atapci1
ata3: at 0xfe20 on atapci1

...etc

ad0: 76293MB <Maxtor 6Y080L0> [155009/16/63] at ata0-master UDMA33
ad1: 38166MB <WDC WD400BB-75AUA1> [77545/16/63] at ata0-slave UDMA33
Mounting root from ufs:/dev/ad0s1a
cd0 at ata1 bus 0 target 0 lun 0
cd0: <HP CD-Writer+ 9500 1.0e> Removable CD-ROM SCSI-0 device
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
cd1 at ata1 bus 0 target 1 lun 0
cd1: <_NEC DVD+RW ND-1100A 10FD> Removable CD-ROM SCSI-0 device
cd1: 16.000MB/s transfers
cd1: Attempt to query device size failed: NOT READY, Medium not present
em0: Link is up 100 Mbps Full Duplex
cd9660: Joliet Extension (Level 1)
cd9660: Joliet Extension (Level 1)
cd9660: RockRidge Extension

------

The cd1 is an _NEC DVD+RW ND-1100A. It is connected as a slave to the HP
CD-Writer
that is the master on the second IDE channel.

I have installed growisofs and cdrtools. cdrecord version is 2.00.3.
I can mount CDs on both cd0 and cd1. I can record CDs with cdrecord on cd0,
BUT I cannot record DVDs on cd1.

I am using Memorex DVD-Rs. Rated at 4.7GB on the label.

When I execute growisofs with one of these DVD-Rs in it I get:

> growisofs -dvd-compat -Z /dev/cd1c=nycity.iso
:-( unable to open("/dev/cd1c",O_RDONLY): Device not configured

However, I can mount CDs on it. It looks as though growisofs thinks that the
device is read-only.

Any advice would be greatly appreciated; I was hoping to use this DVD
setup as
a back-up media as tapes are getting expensive.

                                Ed Alley





More information about the freebsd-questions mailing list