Re: [Solved] Having problems burning a DVD
James Phillips wrote: 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' linkcd0 cdrom linkcd0 dvd linkcd0 rdvd own cdrom root:operator own dvd root:operator own rdvdroot:operator permcd0 0660 permcdrom 0660 permdvd 0660 permrdvd0660 permxpt00660 permpass0 0660 - that sed command was stolen from a script expecting CRlf -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 size100K 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/ ___ 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 Aloha JP, This is what I use on FreeBSD from the command line to burn DVD's. I have used it on FreeBSD 8* for a while. (Simple and it works.)- ## dvdburner.doc DVD+R burner Setup and operation From sysutils/dvd+rw-tools Intall the DVD port # growisofs ( used the following from all the suggestions and it worked with Manolis DVD p1 7.2) 1st Put hw.ata.atapi_dma=1 in the /boot/loader.conf 2nd Put apticam_load=YES in the /boot/loader.conf (That 2nd 18.7.2 instruction is not clear in the Handbook section and should be added.) Then Run # growisofs -dvd-compat -Z dev/cd0=/usr/home/alp/FreeBSD_7/7.2-RELEASE-p1-i386-disc1.iso (all on one line) Then Use cd0 as a DVD burner and make the DVD-R I tested the DVD on a spare box and it installed just fine. ## ~Al Plant - Honolulu, Hawaii - Phone: 808-284-2740 + http://hawaiidakine.com + http://freebsdinfo.org + + http://aloha50.net - Supporting - FreeBSD 7.2 - 8.0 - 9* + email: n...@hdk5.net All that's really worth doing is what we do for others.- Lewis Carrol
Re: [Solved] Having problems burning a DVD
--- On Fri, 12/4/09, Al Plant n...@hdk5.net wrote: From: Al Plant n...@hdk5.net Subject: Re: [Solved] Having problems burning a DVD To: James Phillips anti_spam...@yahoo.ca Cc: freebsd-questions@freebsd.org Received: Friday, December 4, 2009, 12:26 PM James Phillips wrote: SNIP! 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. SNIP! Aloha JP, This is what I use on FreeBSD from the command line to burn DVD's. I have used it on FreeBSD 8* for a while. (Simple and it works.)- Yes, I got that far, hence the [Solved] tag. I was mainly concerned that I made a mess of my /boot/loader.conf I am also a little concerned that the DVD only reads a ~1.5MB/s (a little faster than 1x), but it appears to work. Burning happened at ~7x according to growisofs. Then Run # growisofs -dvd-compat -Z dev/cd0=/usr/home/alp/FreeBSD_7/7.2-RELEASE-p1-i386-disc1.iso (all on one line) Then UseĀ cd0 as a DVD burner and make the DVD-R I tested the DVD on a spare box and it installed just fine. I found out why the checksum didn't match: the -dvd-compat option adds 6 2048 byte sectors of zeros to the end of the disk. So, I was able to verify the md5 sum by reading only the number of sectors present in the iso file. $ dd if=/dev/dvd bs=2048 count=996586 | md5 I noticed the size discrepancy while doing a binary search using the iseek (dd)(and count) argument(s) to narrow down the location of the corruption. Regards, James Phillips __ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ ___ 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: [Solved] Having problems burning a DVD
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' linkcd0 cdrom linkcd0 dvd linkcd0 rdvd own cdrom root:operator own dvd root:operator own rdvdroot:operator permcd0 0660 permcdrom 0660 permdvd 0660 permrdvd0660 permxpt00660 permpass0 0660 - that sed command was stolen from a script expecting CRlf -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 size100K 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/ ___ 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