From owner-freebsd-questions Wed Aug 11 21:58: 5 1999 Delivered-To: freebsd-questions@freebsd.org Received: from cc942873-a.ewndsr1.nj.home.com (cc942873-a.ewndsr1.nj.home.com [24.2.89.207]) by hub.freebsd.org (Postfix) with ESMTP id 689DB14C3F for ; Wed, 11 Aug 1999 21:57:24 -0700 (PDT) (envelope-from cjc@cc942873-a.ewndsr1.nj.home.com) Received: (from cjc@localhost) by cc942873-a.ewndsr1.nj.home.com (8.8.8/8.8.8) id AAA15216; Thu, 12 Aug 1999 00:56:54 -0400 (EDT) (envelope-from cjc) From: "Crist J. Clark" Message-Id: <199908120456.AAA15216@cc942873-a.ewndsr1.nj.home.com> Subject: Re: cdrecord help In-Reply-To: from "kf7nn1@cybertrails.com" at "Aug 11, 99 08:51:38 pm" To: kf7nn1@cybertrails.com Date: Thu, 12 Aug 1999 00:56:54 -0400 (EDT) Cc: questions@FreeBSD.ORG, vagner@www.timandpatrick.com Reply-To: cjclark@home.com X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG kf7nn1@cybertrails.com wrote, > well here is my output although i dont know if > the errors are due to the dummy write or not. > > This is with a blank cd-r in the drive that i have done nothing > with, and was wondering do i need to put a filesystem on it > or something first or can i just write it raw from another > cd-rom? No, you make a file system for a CDROM with mkisofs, then you write the resulting data to the disk in one shot. > mutsgo# cdrecord -dummy -data -speed=6 dev=0,3,0 /dev/rwdc0c > cdrecord: No such file or directory. No read access for '/dev/rwdc0c'. Sorry, typo. /dev/rwdc0c should of course be /dev/rwcd0c. > mutsgo# cdrecord -dummy -data -speed=6 dev=0,3,0 /dev/rwcd0c > Cdrecord release 1.8a22 Copyright (C) 1995-1999 Jörg Schilling > cdrecord: No such file or directory. WARNING: RR-scheduler not available, disab > ing. > scsidev: '0,3,0' > scsibus: 0 target: 3 lun: 0 > Device type : Removable CD-ROM > Version : 2 > Response Format: 2 > Capabilities : SYNC > Vendor_info : 'YAMAHA ' > Identifikation : 'CRW6416S ' > Revision : '1.0b' > Device seems to be: Generic mmc CD-RW. > Using generic SCSI-3/mmc CD-R driver (mmc_cdr). > Driver flags : SWABAUDIO > cdrecord: WARNING: Track size unknown. Data may not fit on disk. > cdrecord: Undefined error: 0. WARNING: RR-scheduler not available, disabling. > Starting to write CD/DVD at speed 6 in dummy mode for single session. > Last chance to quit, starting dummy write in 1 seconds. > cdrecord: Input/output error. write_g1: scsi sendcmd: retryable error > CDB: 2A 00 00 00 10 B6 00 00 1F 00 > status: 0x2 (CHECK CONDITION) > Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 21 00 00 00 00 00 00 00 00 00 > 0 08 00 00 00 00 00 00 08 00 > Sense Key: 0x5 Illegal Request, Segment 0 > Sense Code: 0x21 Qual 0x00 (logical block address out of range) Fru 0x0 > Sense flags: Blk 0 (not valid) > resid: 63488 > cmd finished after 2.263s timeout 40s > write track data: error after 8761344 bytes > Sense Bytes: 70 00 00 00 00 00 00 0A 00 00 00 00 00 00 00 00 00 00 > mutsgo# Hmmm... Reading my raw IDE CDROM, /dev/rwcd0c, gives me an error after about 150 MB... Lemme see... Using device /dev/wcd0c gives the same result... I wonder if... OK, it looks like the error I get is the result of getting to the end of the CD. It looks like the whole CD is copied, # cp /dev/wcd0c /var/tmp/cdimage cp: /dev/wcd0c: Input/output error # mount -t cd9660 /dev/wcd0c /cdrom # vnconfig /dev/vn0c /var/tmp/cdimage # mount -t cd9660 /dev/vn0c /mnt # diff -r /cdrom /mnt # ls -l /var/tmp/cdimage -rw-r----- 1 root bin 152764416 Aug 12 00:39 /var/tmp/cdimage # df -k /mnt /cdrom Filesystem 1K-blocks Used Avail Capacity Mounted on /dev/wcd0c 148928 148928 0 100% /cdrom /dev/vn0c 148928 148928 0 100% /mnt That is, they are exactly the same. Check in the above example if your source CD is not about 8761344 bytes. If the fact that the read is finishing on an error causes trouble, you can do like I did above and copy the CD image directly to a file on the HDD first. HTH. -- Crist J. Clark cjclark@home.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message