From owner-freebsd-questions@FreeBSD.ORG Fri Dec 4 04:31:37 2009 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 79764106566C for ; Fri, 4 Dec 2009 04:31:37 +0000 (UTC) (envelope-from anti_spam256@yahoo.ca) Received: from web65502.mail.ac4.yahoo.com (web65502.mail.ac4.yahoo.com [76.13.9.46]) by mx1.freebsd.org (Postfix) with SMTP id 229638FC08 for ; Fri, 4 Dec 2009 04:31:36 +0000 (UTC) Received: (qmail 55512 invoked by uid 60001); 4 Dec 2009 04:31:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.ca; s=s1024; t=1259901096; bh=yXV+M/hSON7CXdHixv3oIyfhnj28ogg1qxWNVJGfLSk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=NTFbZiO885WbXkJ3DjHju2eDiyJAsufnE17GX3nJmtgS1E/4350qCC4C2adDnwdj1Zv8oih2jzhRqWKE/gjGsPYNJ+JKE2FYsjiouLWOQzvlAFQYIXTc+I5AXLsCK0tizH1Ir/e6mzvsx8AJDpf6WSesVW2TAtJD8wU6r/QlJvM= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=M8GTuHSizGCIXkLT6Tyrx2ms/y7ZVz8jC1SvKrfXNCP87kea8+phMVKmWjnOJcFNslIdlh9YD24plPCNyVntYBPKW4LRiG7S5gFIdcdyEIc7fcT5rutc5TRpD1JhJHVj12fB/Yg+tuLBxb7wEmcANQEdPgJ91DBMYO0xOxqZBX0=; Message-ID: <358651.54127.qm@web65502.mail.ac4.yahoo.com> X-YMail-OSG: uM8LFvYVM1maMWs.abY41aeUafwx.92mo35LzI1.f5mwokqvgwcqCxIRgfzjCfXO_zjurvRXYLyKFRDq7U4CbrTFDOoyUFwIb5l_ONpNE9_rKsuDsPRY737GJrRJCbdCKr3bqFnAVx21K9NL1xhLjkXDXvnO.Ms3p2ArLGlesSi3eAIARaPLmxtmMijrpmWZU26wY0OZRT1Wv7sjR926yG6WkFn8_XFcsWc3u4.v4Gcy_R.2gAyqVeWtqJgZqNvbFmSb_R33R9rwG2ltpliZbje3bQAyJOUbJZoeKhAde0RALtqhSCu5QBuT5rjIIWO7mkGmkjh8ai9oebESdfMH.1TemQwkpnrrZJTOrx_SnbagnQ0O1iy9JSu18oSx.AuKwaxMmWIbzbPXkTN7XAqQknPIJi6UZC5pwrNEuPH8pPkhwVL7uWZAfv46_PYzc_arNTThwERpRqbq_2x0UmSEtkid0n6wSdg1uAApYjh1DLmZAAk0XJq1Ekohg9Hw2pn77RwpmHPlBho76_l_vjO41cZL5.5An64JepsjHZbAn.xqf0kJ1rC5M8CrUaFg Received: from [208.99.137.71] by web65502.mail.ac4.yahoo.com via HTTP; Thu, 03 Dec 2009 20:31:36 PST X-Mailer: YahooMailClassic/8.1.6 YahooMailWebService/0.8.100.260964 Date: Thu, 3 Dec 2009 20:31:36 -0800 (PST) From: James Phillips To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Solved] Having problems burning a DVD 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: Fri, 04 Dec 2009 04:31:37 -0000 Hello, After making two coasters with a graphical CD burning program using Ubuntu, I decided to try using FreeBSD: I want to start backing up to DVD anyway. After some searching I learned I missed some details in the handbook on the first and second reads such as: http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-dvds.html "The program growisofs(1) will be used to perform DVD recording. This command is part of the dvd+rw-tools utilities (sysutils/dvd+rw-tools). The dvd+rw-tools support all DVD media types." I had hard time finding the non-existent growisofs package! "These tools use the SCSI subsystem to access to the devices, therefore the ATAPI/CAM support must be added to your kernel. If your burner uses the USB interface this addition is useless, and you should read the Section 18.5 for more details on USB devices configuration." Using the atapicd driver generated the following error message: :-( unable to CAMGETPASSTHRU for /dev/acd0: Inappropriate ioctl for device After the command: $ growisofs -dvd-compat -Z /dev/acd0=8.0-RELEASE-i386-dvd1.iso before you ask: MD5 (8.0-RELEASE-i386-dvd1.iso) = 5336cd827991e4d4cff6d73c4a5ca105 Release announcement: 5336cd827991e4d4cff6d73c4a5ca105 I tried playing with /etc/devfs.conf as suggested by Predrag Punosevac $ id uid=1002(backup) gid=1002(backup) groups=1002(backup),5(operator),1003(Share) $ cat /etc/devfs.conf |sed 's/#.*//g' link cd0 cdrom link cd0 dvd link cd0 rdvd own cdrom root:operator own dvd root:operator own rdvd root:operator perm cd0 0660 perm cdrom 0660 perm dvd 0660 perm rdvd 0660 perm xpt0 0660 perm pass0 0660 -> that sed command was stolen from a script expecting ->originally used device acd0 (until enabling atapicam) $ cat /boot/loader.conf acpi_load="no" apm_load="yes" atapicam_load="yes" #ata_load="yes" # enabled by default scbus_load="yes" cd_load="yes" pass_load="yes" atapicd_load="no" #hw.ata.atapi_dma="1" # enabled by default With the atapicam driver I was able to somehow get growisofs to go through the motions of burning the DVD, even have a kernel message from GEOM reading the BSD label: $ tail /var/log/messages Dec 3 20:00:00 dusty newsyslog[833]: logfile turned over due to size>100K Dec 3 20:00:28 dusty kernel: GEOM_LABEL: Label for provider acd0t01 is iso9660/FreeBSD_Install. but can't read the disk to verify it: $ dd if=/dev/cd0 bs=2048 | md5 996592+0 records in 996592+0 records out 2041020416 bytes transferred in 1292.388284 secs (1579263 bytes/sec) 19b087536234b316b64232ba6b1c1799 Umm. Nevermind. I added the block size so nobody would try suggesting it has an effect :P previous error: $ dd if=/dev/cd0 | md5 dd: /dev/cd0: Invalid argument 0+0 records in 0+0 records out 0 bytes transferred in 0.000721 secs (0 bytes/sec) d41d8cd98f00b204e9800998ecf8427e I noticed that the hash does not match the ISO file. Is that normal for DVDs? For CD images I often get the md5 hash to match. The man page for atapicam(4) warns: "atapicam and ATAPI-specific target drivers (acd(4), ast(4), and afd(4)) can be configured in the same kernel. Simultaneous access to the same device through the SCSI generic drivers and the ATAPI-specific drivers may cause problems and is strongly discouraged." Is there anything special I should do to try to disable the atapicd driver? I don't think my 'atapicd_load="no"' line in /boot/loader.conf has much of an effect. Regards, James Phillips __________________________________________________________________ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/